Skip to content

Commit 099bd8f

Browse files
1 parent fb79181 commit 099bd8f

7 files changed

Lines changed: 25 additions & 377 deletions

src/DisplayVideo.php

Lines changed: 0 additions & 261 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@ class DisplayVideo extends \Google\Service
5757
public $advertisers_adGroups_youtubeAssetTypes_youtubeAssetAssociations;
5858
public $advertisers_assets;
5959
public $advertisers_campaigns;
60-
public $advertisers_campaigns_targetingTypes_assignedTargetingOptions;
6160
public $advertisers_channels;
6261
public $advertisers_channels_sites;
6362
public $advertisers_creatives;
6463
public $advertisers_insertionOrders;
65-
public $advertisers_insertionOrders_targetingTypes_assignedTargetingOptions;
6664
public $advertisers_invoices;
6765
public $advertisers_lineItems;
6866
public $advertisers_lineItems_targetingTypes_assignedTargetingOptions;
@@ -713,37 +711,6 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
713711
'type' => 'string',
714712
],
715713
],
716-
],'listAssignedTargetingOptions' => [
717-
'path' => 'v4/advertisers/{+advertiserId}/campaigns/{+campaignId}:listAssignedTargetingOptions',
718-
'httpMethod' => 'GET',
719-
'parameters' => [
720-
'advertiserId' => [
721-
'location' => 'path',
722-
'type' => 'string',
723-
'required' => true,
724-
],
725-
'campaignId' => [
726-
'location' => 'path',
727-
'type' => 'string',
728-
'required' => true,
729-
],
730-
'filter' => [
731-
'location' => 'query',
732-
'type' => 'string',
733-
],
734-
'orderBy' => [
735-
'location' => 'query',
736-
'type' => 'string',
737-
],
738-
'pageSize' => [
739-
'location' => 'query',
740-
'type' => 'integer',
741-
],
742-
'pageToken' => [
743-
'location' => 'query',
744-
'type' => 'string',
745-
],
746-
],
747714
],'patch' => [
748715
'path' => 'v4/advertisers/{+advertiserId}/campaigns/{+campaignId}',
749716
'httpMethod' => 'PATCH',
@@ -767,77 +734,6 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
767734
]
768735
]
769736
);
770-
$this->advertisers_campaigns_targetingTypes_assignedTargetingOptions = new DisplayVideo\Resource\AdvertisersCampaignsTargetingTypesAssignedTargetingOptions(
771-
$this,
772-
$this->serviceName,
773-
'assignedTargetingOptions',
774-
[
775-
'methods' => [
776-
'get' => [
777-
'path' => 'v4/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}',
778-
'httpMethod' => 'GET',
779-
'parameters' => [
780-
'advertiserId' => [
781-
'location' => 'path',
782-
'type' => 'string',
783-
'required' => true,
784-
],
785-
'campaignId' => [
786-
'location' => 'path',
787-
'type' => 'string',
788-
'required' => true,
789-
],
790-
'targetingType' => [
791-
'location' => 'path',
792-
'type' => 'string',
793-
'required' => true,
794-
],
795-
'assignedTargetingOptionId' => [
796-
'location' => 'path',
797-
'type' => 'string',
798-
'required' => true,
799-
],
800-
],
801-
],'list' => [
802-
'path' => 'v4/advertisers/{+advertiserId}/campaigns/{+campaignId}/targetingTypes/{+targetingType}/assignedTargetingOptions',
803-
'httpMethod' => 'GET',
804-
'parameters' => [
805-
'advertiserId' => [
806-
'location' => 'path',
807-
'type' => 'string',
808-
'required' => true,
809-
],
810-
'campaignId' => [
811-
'location' => 'path',
812-
'type' => 'string',
813-
'required' => true,
814-
],
815-
'targetingType' => [
816-
'location' => 'path',
817-
'type' => 'string',
818-
'required' => true,
819-
],
820-
'filter' => [
821-
'location' => 'query',
822-
'type' => 'string',
823-
],
824-
'orderBy' => [
825-
'location' => 'query',
826-
'type' => 'string',
827-
],
828-
'pageSize' => [
829-
'location' => 'query',
830-
'type' => 'integer',
831-
],
832-
'pageToken' => [
833-
'location' => 'query',
834-
'type' => 'string',
835-
],
836-
],
837-
],
838-
]
839-
]
840-
);
841737
$this->advertisers_channels = new DisplayVideo\Resource\AdvertisersChannels(
842738
$this,
843739
$this->serviceName,
@@ -1219,37 +1115,6 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
12191115
'type' => 'string',
12201116
],
12211117
],
1222-
],'listAssignedTargetingOptions' => [
1223-
'path' => 'v4/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}:listAssignedTargetingOptions',
1224-
'httpMethod' => 'GET',
1225-
'parameters' => [
1226-
'advertiserId' => [
1227-
'location' => 'path',
1228-
'type' => 'string',
1229-
'required' => true,
1230-
],
1231-
'insertionOrderId' => [
1232-
'location' => 'path',
1233-
'type' => 'string',
1234-
'required' => true,
1235-
],
1236-
'filter' => [
1237-
'location' => 'query',
1238-
'type' => 'string',
1239-
],
1240-
'orderBy' => [
1241-
'location' => 'query',
1242-
'type' => 'string',
1243-
],
1244-
'pageSize' => [
1245-
'location' => 'query',
1246-
'type' => 'integer',
1247-
],
1248-
'pageToken' => [
1249-
'location' => 'query',
1250-
'type' => 'string',
1251-
],
1252-
],
12531118
],'patch' => [
12541119
'path' => 'v4/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}',
12551120
'httpMethod' => 'PATCH',
@@ -1273,122 +1138,6 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
12731138
]
12741139
]
12751140
);
1276-
$this->advertisers_insertionOrders_targetingTypes_assignedTargetingOptions = new DisplayVideo\Resource\AdvertisersInsertionOrdersTargetingTypesAssignedTargetingOptions(
1277-
$this,
1278-
$this->serviceName,
1279-
'assignedTargetingOptions',
1280-
[
1281-
'methods' => [
1282-
'create' => [
1283-
'path' => 'v4/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions',
1284-
'httpMethod' => 'POST',
1285-
'parameters' => [
1286-
'advertiserId' => [
1287-
'location' => 'path',
1288-
'type' => 'string',
1289-
'required' => true,
1290-
],
1291-
'insertionOrderId' => [
1292-
'location' => 'path',
1293-
'type' => 'string',
1294-
'required' => true,
1295-
],
1296-
'targetingType' => [
1297-
'location' => 'path',
1298-
'type' => 'string',
1299-
'required' => true,
1300-
],
1301-
],
1302-
],'delete' => [
1303-
'path' => 'v4/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}',
1304-
'httpMethod' => 'DELETE',
1305-
'parameters' => [
1306-
'advertiserId' => [
1307-
'location' => 'path',
1308-
'type' => 'string',
1309-
'required' => true,
1310-
],
1311-
'insertionOrderId' => [
1312-
'location' => 'path',
1313-
'type' => 'string',
1314-
'required' => true,
1315-
],
1316-
'targetingType' => [
1317-
'location' => 'path',
1318-
'type' => 'string',
1319-
'required' => true,
1320-
],
1321-
'assignedTargetingOptionId' => [
1322-
'location' => 'path',
1323-
'type' => 'string',
1324-
'required' => true,
1325-
],
1326-
],
1327-
],'get' => [
1328-
'path' => 'v4/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}',
1329-
'httpMethod' => 'GET',
1330-
'parameters' => [
1331-
'advertiserId' => [
1332-
'location' => 'path',
1333-
'type' => 'string',
1334-
'required' => true,
1335-
],
1336-
'insertionOrderId' => [
1337-
'location' => 'path',
1338-
'type' => 'string',
1339-
'required' => true,
1340-
],
1341-
'targetingType' => [
1342-
'location' => 'path',
1343-
'type' => 'string',
1344-
'required' => true,
1345-
],
1346-
'assignedTargetingOptionId' => [
1347-
'location' => 'path',
1348-
'type' => 'string',
1349-
'required' => true,
1350-
],
1351-
],
1352-
],'list' => [
1353-
'path' => 'v4/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}/targetingTypes/{+targetingType}/assignedTargetingOptions',
1354-
'httpMethod' => 'GET',
1355-
'parameters' => [
1356-
'advertiserId' => [
1357-
'location' => 'path',
1358-
'type' => 'string',
1359-
'required' => true,
1360-
],
1361-
'insertionOrderId' => [
1362-
'location' => 'path',
1363-
'type' => 'string',
1364-
'required' => true,
1365-
],
1366-
'targetingType' => [
1367-
'location' => 'path',
1368-
'type' => 'string',
1369-
'required' => true,
1370-
],
1371-
'filter' => [
1372-
'location' => 'query',
1373-
'type' => 'string',
1374-
],
1375-
'orderBy' => [
1376-
'location' => 'query',
1377-
'type' => 'string',
1378-
],
1379-
'pageSize' => [
1380-
'location' => 'query',
1381-
'type' => 'integer',
1382-
],
1383-
'pageToken' => [
1384-
'location' => 'query',
1385-
'type' => 'string',
1386-
],
1387-
],
1388-
],
1389-
]
1390-
]
1391-
);
13921141
$this->advertisers_invoices = new DisplayVideo\Resource\AdvertisersInvoices(
13931142
$this,
13941143
$this->serviceName,
@@ -1536,16 +1285,6 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
15361285
'required' => true,
15371286
],
15381287
],
1539-
],'generateDefault' => [
1540-
'path' => 'v4/advertisers/{+advertiserId}/lineItems:generateDefault',
1541-
'httpMethod' => 'POST',
1542-
'parameters' => [
1543-
'advertiserId' => [
1544-
'location' => 'path',
1545-
'type' => 'string',
1546-
'required' => true,
1547-
],
1548-
],
15491288
],'get' => [
15501289
'path' => 'v4/advertisers/{+advertiserId}/lineItems/{+lineItemId}',
15511290
'httpMethod' => 'GET',

src/DisplayVideo/BiddingStrategy.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ public function getFixedBid()
4545
return $this->fixedBid;
4646
}
4747
/**
48-
* * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`,
48+
* A strategy that automatically adjusts the bid to optimize to your
49+
* performance goal while spending the full budget. At insertion order level,
50+
* the markup_type of line items cannot be set to
51+
* `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, the
52+
* performance_goal_type value assigned to an insertion order determines the
53+
* possible line_item_type values available for line items under that
54+
* insertion order: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`,
4955
* `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, and
5056
* `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` only allow for
5157
* `LINE_ITEM_TYPE_DISPLAY_DEFAULT` or `LINE_ITEM_TYPE_VIDEO_DEFAULT` line

src/DisplayVideo/InsertionOrder.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,12 @@ public function getAdvertiserId()
213213
}
214214
/**
215215
* Optional. The bidding strategy of the insertion order. By default,
216-
* fixed_bid is set.
216+
* fixed_bid is set. If the budget field automationType is set to
217+
* `INSERTION_ORDER_AUTOMATION_TYPE_BUDGET` or
218+
* `INSERTION_ORDER_AUTOMATION_TYPE_BID_BUDGET`, the insertion order will
219+
* impose this bidding strategy on its line items. If an imposed bidding
220+
* strategy is not compatible with a line item's enableOptimizedTargeting
221+
* setting, the optimized targeting setting will be updated.
217222
*
218223
* @param BiddingStrategy $bidStrategy
219224
*/

src/DisplayVideo/Resource/AdvertisersCampaigns.php

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
namespace Google\Service\DisplayVideo\Resource;
1919

20-
use Google\Service\DisplayVideo\BulkListCampaignAssignedTargetingOptionsResponse;
2120
use Google\Service\DisplayVideo\Campaign;
2221
use Google\Service\DisplayVideo\DisplayvideoEmpty;
2322
use Google\Service\DisplayVideo\ListCampaignsResponse;
@@ -133,50 +132,6 @@ public function listAdvertisersCampaigns($advertiserId, $optParams = [])
133132
$params = array_merge($params, $optParams);
134133
return $this->call('list', [$params], ListCampaignsResponse::class);
135134
}
136-
/**
137-
* Lists assigned targeting options of a campaign across targeting types.
138-
* (campaigns.listAssignedTargetingOptions)
139-
*
140-
* @param string $advertiserId Required. The ID of the advertiser the campaign
141-
* belongs to.
142-
* @param string $campaignId Required. The ID of the campaign to list assigned
143-
* targeting options for.
144-
* @param array $optParams Optional parameters.
145-
*
146-
* @opt_param string filter Allows filtering by assigned targeting option
147-
* fields. Supported syntax: * Filter expressions are made up of one or more
148-
* restrictions. * Restrictions can be combined by the `OR` logical operator. *
149-
* A restriction has the form of `{field} {operator} {value}`. * All fields must
150-
* use the `EQUALS (=)` operator. Supported fields: * `targetingType` *
151-
* `inheritance` Examples: * `AssignedTargetingOption` resources of targeting
152-
* type `TARGETING_TYPE_LANGUAGE` or `TARGETING_TYPE_GENDER`:
153-
* `targetingType="TARGETING_TYPE_LANGUAGE" OR
154-
* targetingType="TARGETING_TYPE_GENDER"` * `AssignedTargetingOption` resources
155-
* with inheritance status of `NOT_INHERITED` or `INHERITED_FROM_PARTNER`:
156-
* `inheritance="NOT_INHERITED" OR inheritance="INHERITED_FROM_PARTNER"` The
157-
* length of this field should be no more than 500 characters. Reference our
158-
* [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for
159-
* more information.
160-
* @opt_param string orderBy Field by which to sort the list. Acceptable values
161-
* are: * `targetingType` (default) The default sorting order is ascending. To
162-
* specify descending order for a field, a suffix "desc" should be added to the
163-
* field name. Example: `targetingType desc`.
164-
* @opt_param int pageSize Requested page size. The size must be an integer
165-
* between `1` and `5000`. If unspecified, the default is `5000`. Returns error
166-
* code `INVALID_ARGUMENT` if an invalid value is specified.
167-
* @opt_param string pageToken A token that lets the client fetch the next page
168-
* of results. Typically, this is the value of next_page_token returned from the
169-
* previous call to `BulkListCampaignAssignedTargetingOptions` method. If not
170-
* specified, the first page of results will be returned.
171-
* @return BulkListCampaignAssignedTargetingOptionsResponse
172-
* @throws \Google\Service\Exception
173-
*/
174-
public function listAssignedTargetingOptions($advertiserId, $campaignId, $optParams = [])
175-
{
176-
$params = ['advertiserId' => $advertiserId, 'campaignId' => $campaignId];
177-
$params = array_merge($params, $optParams);
178-
return $this->call('listAssignedTargetingOptions', [$params], BulkListCampaignAssignedTargetingOptionsResponse::class);
179-
}
180135
/**
181136
* Updates an existing campaign. Returns the updated campaign if successful.
182137
* (campaigns.patch)

0 commit comments

Comments
 (0)