Skip to content

Commit 20f839c

Browse files
author
Eric Urban
authored
Merge pull request #129 from BingAds/v13-0-3
proxy updates
2 parents ad4f588 + f932971 commit 20f839c

File tree

136 files changed

+2943
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+2943
-142
lines changed

samples/V13/CampaignManagementExampleHelper.php

Lines changed: 814 additions & 37 deletions
Large diffs are not rendered by default.

samples/V13/NegativeKeywords.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@
136136
print("-----\r\nAddSharedEntity:\r\n");
137137
$addSharedEntityResponse = CampaignManagementExampleHelper::AddSharedEntity(
138138
$encodedNegativeKeywordList,
139-
$negativeKeywords
139+
$negativeKeywords,
140+
null
140141
);
141142
$sharedEntityId = $addSharedEntityResponse->SharedEntityId;
142143
$listItemIds = $addSharedEntityResponse->ListItemIds;
@@ -157,7 +158,8 @@
157158

158159
print("-----\r\nSetSharedEntityAssociations:\r\n");
159160
$partialErrors = CampaignManagementExampleHelper::SetSharedEntityAssociations(
160-
$associations
161+
$associations,
162+
null
161163
);
162164
printf(
163165
"Associated CampaignId %s with Negative Keyword List Id %s.\r\n",
@@ -178,7 +180,8 @@
178180

179181
print("-----\r\nDeleteSharedEntities:\r\n");
180182
$partialErrors = CampaignManagementExampleHelper::DeleteSharedEntities(
181-
array($encodedNegativeKeywordList)
183+
array($encodedNegativeKeywordList),
184+
null
182185
);
183186
printf("Deleted Negative Keyword List Id %s\r\n", $sharedEntityId);
184187
}

src/V13/Bulk/DownloadEntity.php

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,13 @@ final class DownloadEntity
201201
/** Include Ad Group Negative In Market Audience Association records in the download that each represent the association relationship between an ad group and an in-market audience exclusion. */
202202
const AdGroupNegativeInMarketAudienceAssociations = 'AdGroupNegativeInMarketAudienceAssociations';
203203

204-
/** Include Custom Audience, In Market Audience, Product Audience, Remarketing List, and Similar Remarketing List records in the download data. */
204+
/** Include Combined List, Custom Audience, In Market Audience, Product Audience, Remarketing List, and Similar Remarketing List records in the download data. */
205205
const Audiences = 'Audiences';
206206

207-
/** Include Ad Group Custom Audience Association, Ad Group In Market Audience Association, Ad Group Product Audience Association, Ad Group Remarketing List Association, and Ad Group Similar Remarketing List Association records in the download data. */
207+
/** Include Ad Group Combined List Association, Ad Group Custom Audience Association, Ad Group In Market Audience Association, Ad Group Product Audience Association, Ad Group Remarketing List Association, and Ad Group Similar Remarketing List Association records in the download data. */
208208
const AdGroupAudienceAssociations = 'AdGroupAudienceAssociations';
209209

210-
/** Include Ad Group Negative Custom Audience Association, Ad Group Negative In Market Audience Association, Ad Group Negative Product Audience Association, Ad Group Negative Remarketing List Association, and Ad Group Negative Similar Remarketing List Association records in the download data. */
210+
/** Include Ad Group Negative Combined List Association, Ad Group Negative Custom Audience Association, Ad Group Negative In Market Audience Association, Ad Group Negative Product Audience Association, Ad Group Negative Remarketing List Association, and Ad Group Negative Similar Remarketing List Association records in the download data. */
211211
const AdGroupNegativeAudienceAssociations = 'AdGroupNegativeAudienceAssociations';
212212

213213
/** Include Product Ad Label records in the download that each represent a label applied to a product ad. */
@@ -291,10 +291,10 @@ final class DownloadEntity
291291
/** Include Responsive Search Ad Label records in the download that each represent a label applied to a responsive search ad. */
292292
const ResponsiveSearchAdLabels = 'ResponsiveSearchAdLabels';
293293

294-
/** Include Campaign Custom Audience Association, Campaign In Market Audience Association, Campaign Product Audience Association, Campaign Remarketing List Association, and Campaign Similar Remarketing List Association records in the download data. */
294+
/** Include Campaign Combined List Association, Campaign Custom Audience Association, Campaign In Market Audience Association, Campaign Product Audience Association, Campaign Remarketing List Association, and Campaign Similar Remarketing List Association records in the download data. */
295295
const CampaignAudienceAssociations = 'CampaignAudienceAssociations';
296296

297-
/** Include Campaign Negative Custom Audience Association, Campaign Negative In Market Audience Association, Campaign Negative Product Audience Association, Campaign Negative Remarketing List Association, and Campaign Negative Similar Remarketing List Association records in the download data. */
297+
/** Include Campaign Negative Combined List Association, Campaign Negative Custom Audience Association, Campaign Negative In Market Audience Association, Campaign Negative Product Audience Association, Campaign Negative Remarketing List Association, and Campaign Negative Similar Remarketing List Association records in the download data. */
298298
const CampaignNegativeAudienceAssociations = 'CampaignNegativeAudienceAssociations';
299299

300300
/** Include Campaign Custom Audience Association records in the download that each represent the association relationship between a campaign and a custom audience. */
@@ -332,6 +332,36 @@ final class DownloadEntity
332332

333333
/** Include Feed Item records in the download data. */
334334
const FeedItems = 'FeedItems';
335+
336+
/** Reserved. */
337+
const CampaignNegativeStoreCriterions = 'CampaignNegativeStoreCriterions';
338+
339+
/** Include Promotion Ad Extension records in the download data. */
340+
const PromotionAdExtensions = 'PromotionAdExtensions';
341+
342+
/** Include Account Promotion Ad Extension records in the download that represents the association relationship between an account and a promotion ad extension. */
343+
const AccountPromotionAdExtensions = 'AccountPromotionAdExtensions';
344+
345+
/** Include Campaign Promotion Ad Extension records in the download that represents the association relationship between a campaign and a promotion ad extension. */
346+
const CampaignPromotionAdExtensions = 'CampaignPromotionAdExtensions';
347+
348+
/** Include Ad Group Promotion Ad Extension records in the download that each represent the association relationship between an ad group and a promotion ad extension. */
349+
const AdGroupPromotionAdExtensions = 'AdGroupPromotionAdExtensions';
350+
351+
/** Include Combined List records in the download data. */
352+
const CombinedLists = 'CombinedLists';
353+
354+
/** Include Ad Group Combined List Association records in the download that each represent the association relationship between an ad group and a combined list. */
355+
const AdGroupCombinedListAssociations = 'AdGroupCombinedListAssociations';
356+
357+
/** Include Ad Group Negative Combined List Association records in the download that each represent the association relationship between an ad group and a combined list exclusion. */
358+
const AdGroupNegativeCombinedListAssociations = 'AdGroupNegativeCombinedListAssociations';
359+
360+
/** Include Campaign Combined List Association records in the download that each represent the association relationship between a campaign and a combined list. */
361+
const CampaignCombinedListAssociations = 'CampaignCombinedListAssociations';
362+
363+
/** Include Campaign Negative Combined List Association records in the download that each represent the association relationship between a campaign and a combined list exclusion. */
364+
const CampaignNegativeCombinedListAssociations = 'CampaignNegativeCombinedListAssociations';
335365
}
336366

337367
}

src/V13/CampaignManagement/ActionAdExtensionActionType.php

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
final class ActionAdExtensionActionType
1313
{
14-
/** Reserved for future use. */
14+
/** The action type is either RenewNow or Reorder. */
1515
const Unknown = 'Unknown';
1616

1717
/** Use the translated version of ActNow in the action ad extension. */
@@ -35,7 +35,7 @@ final class ActionAdExtensionActionType
3535
/** Use the translated version of BookNow in the action ad extension. */
3636
const BookNow = 'BookNow';
3737

38-
/** Use the translated version of Browse in the action ad extension. */
38+
/** Use the translated version of LearnMore in the action ad extension. */
3939
const Browse = 'Browse';
4040

4141
/** Use the translated version of BuyNow in the action ad extension. */
@@ -65,7 +65,7 @@ final class ActionAdExtensionActionType
6565
/** Use the translated version of EnrollNow in the action ad extension. */
6666
const EnrollNow = 'EnrollNow';
6767

68-
/** Use the translated version of Explore in the action ad extension. */
68+
/** Use the translated version of LearnMore in the action ad extension. */
6969
const Explore = 'Explore';
7070

7171
/** Use the translated version of FileNow in the action ad extension. */
@@ -104,10 +104,10 @@ final class ActionAdExtensionActionType
104104
/** Use the translated version of LogIn in the action ad extension. */
105105
const LogIn = 'LogIn';
106106

107-
/** Use the translated version of Message in the action ad extension. */
107+
/** Use the translated version of ContactUs in the action ad extension. */
108108
const Message = 'Message';
109109

110-
/** Use the translated version of NewCars in the action ad extension. */
110+
/** Use the translated version of ViewCars in the action ad extension. */
111111
const NewCars = 'NewCars';
112112

113113
/** Use the translated version of OrderNow in the action ad extension. */
@@ -146,7 +146,7 @@ final class ActionAdExtensionActionType
146146
/** Use the translated version of SeeMenu in the action ad extension. */
147147
const SeeMenu = 'SeeMenu';
148148

149-
/** Use the translated version of SeeMore in the action ad extension. */
149+
/** Use the translated version of LearnMore in the action ad extension. */
150150
const SeeMore = 'SeeMore';
151151

152152
/** Use the translated version of SeeOffer in the action ad extension. */
@@ -167,7 +167,7 @@ final class ActionAdExtensionActionType
167167
/** Use the translated version of SignUp in the action ad extension. */
168168
const SignUp = 'SignUp';
169169

170-
/** Use the translated version of StartFree in the action ad extension. */
170+
/** Use the translated version of FreeTrial in the action ad extension. */
171171
const StartFree = 'StartFree';
172172

173173
/** Use the translated version of StartNow in the action ad extension. */
@@ -182,19 +182,19 @@ final class ActionAdExtensionActionType
182182
/** Use the translated version of TryNow in the action ad extension. */
183183
const TryNow = 'TryNow';
184184

185-
/** Use the translated version of UsedCars in the action ad extension. */
185+
/** Use the translated version of ViewCars in the action ad extension. */
186186
const UsedCars = 'UsedCars';
187187

188188
/** Use the translated version of ViewCars in the action ad extension. */
189189
const ViewCars = 'ViewCars';
190190

191-
/** Use the translated version of ViewNow in the action ad extension. */
191+
/** Use the translated version of LearnMore in the action ad extension. */
192192
const ViewNow = 'ViewNow';
193193

194194
/** Use the translated version of ViewPlans in the action ad extension. */
195195
const ViewPlans = 'ViewPlans';
196196

197-
/** Use the translated version of VisitSite in the action ad extension. */
197+
/** Use the translated version of LearnMore in the action ad extension. */
198198
const VisitSite = 'VisitSite';
199199

200200
/** Use the translated version of VoteNow in the action ad extension. */
@@ -220,6 +220,12 @@ final class ActionAdExtensionActionType
220220

221221
/** Use the translated version of VisitStore in the action ad extension. */
222222
const VisitStore = 'VisitStore';
223+
224+
/** Use the translated version of RenewNow in the action ad extension. */
225+
const RenewNow = 'RenewNow';
226+
227+
/** Use the translated version of Reorder in the action ad extension. */
228+
const Reorder = 'Reorder';
223229
}
224230

225231
}

src/V13/CampaignManagement/AdExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class AdExtension
5454
public $Type;
5555

5656
/**
57-
* The number of times the contents of the ad extension has been updated.
57+
* Tracks the number of times the ad extension has been updated.
5858
* @var integer
5959
*/
6060
public $Version;

src/V13/CampaignManagement/AdExtensionAdditionalField.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ final class AdExtensionAdditionalField
1717

1818
/** Request that the DisplayText element be included within each returned ImageAdExtension object. */
1919
const DisplayText = 'DisplayText';
20+
21+
/** Request that the Layouts element be included within each returned ImageAdExtension object. */
22+
const Layouts = 'Layouts';
23+
24+
/** Request that the latest ActionAdExtensionActionType values be included within each returned ActionAdExtension. */
25+
const ActionTypesPhase3 = 'ActionTypesPhase3';
2026
}
2127

2228
}

src/V13/CampaignManagement/AdExtensionsTypeFilter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ final class AdExtensionsTypeFilter
4242

4343
/** An ad extension that contains a call-to-action button. */
4444
const ActionAdExtension = 'ActionAdExtension';
45+
46+
/** An ad extension that highlights special sales and offers in your text ads. */
47+
const PromotionAdExtension = 'PromotionAdExtension';
4548
}
4649

4750
}

src/V13/CampaignManagement/AdGroup.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ final class AdGroup
125125
* @var CustomParameters
126126
*/
127127
public $UrlCustomParameters;
128+
129+
/**
130+
* Determines whether to use the account time zone or the time zone of the search user where the ads could be delivered.
131+
* @var boolean
132+
*/
133+
public $AdScheduleUseSearcherTimeZone;
128134
}
129135

130136
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace Microsoft\BingAds\V13\CampaignManagement;
4+
5+
{
6+
/**
7+
* Defines a list of optional ad group properties that you can request when calling GetAdGroupsByCampaignId and GetAdGroupsByIds.
8+
* @link https://docs.microsoft.com/en-us/advertising/campaign-management-service/adgroupadditionalfield?view=bingads-13 AdGroupAdditionalField Value Set
9+
*
10+
* @used-by GetAdGroupsByCampaignIdRequest
11+
* @used-by GetAdGroupsByIdsRequest
12+
*/
13+
final class AdGroupAdditionalField
14+
{
15+
/** Request that the AdScheduleUseSearcherTimeZone element be included within each returned AdGroup object. */
16+
const AdScheduleUseSearcherTimeZone = 'AdScheduleUseSearcherTimeZone';
17+
}
18+
19+
}

src/V13/CampaignManagement/AdGroupCriterionType.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ final class AdGroupCriterionType
7070

7171
/** The ad group criterion is a similar remarketing list association. */
7272
const SimilarRemarketingList = 'SimilarRemarketingList';
73+
74+
/** The ad group criterion is a combined list association. */
75+
const CombinedList = 'CombinedList';
7376
}
7477

7578
}

0 commit comments

Comments
 (0)