Skip to content

Commit 44ee2c1

Browse files
authored
Merge pull request #3 from BingAds/v13.0.25
v13.0.25
2 parents 39a8b52 + c13726c commit 44ee2c1

67 files changed

Lines changed: 11674 additions & 523 deletions

File tree

Some content is hidden

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

src/Api/CampaignManagementServiceApi.php

Lines changed: 1263 additions & 153 deletions
Large diffs are not rendered by default.

src/Api/ReportingServiceApi.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ public function pollGenerateReportWithHttpInfo($PollGenerateReportRequest, strin
102102
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\ReportingService\PollGenerateReportResponse');
103103
case 400:
104104
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault');
105+
case 500:
106+
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault');
105107
case 401:
106108
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault');
107109
case 403:
108110
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault');
109-
case 500:
110-
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault');
111111
}
112112

113113
if ($statusCode < 200 || $statusCode > 299) {
@@ -144,23 +144,23 @@ public function pollGenerateReportWithHttpInfo($PollGenerateReportRequest, strin
144144
);
145145
$e->setResponseObject($data);
146146
break;
147-
case 401:
147+
case 500:
148148
$data = ObjectSerializer::deserialize(
149149
$e->getResponseBody(),
150150
'\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault',
151151
$e->getResponseHeaders()
152152
);
153153
$e->setResponseObject($data);
154154
break;
155-
case 403:
155+
case 401:
156156
$data = ObjectSerializer::deserialize(
157157
$e->getResponseBody(),
158158
'\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault',
159159
$e->getResponseHeaders()
160160
);
161161
$e->setResponseObject($data);
162162
break;
163-
case 500:
163+
case 403:
164164
$data = ObjectSerializer::deserialize(
165165
$e->getResponseBody(),
166166
'\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault',
@@ -321,12 +321,12 @@ public function submitGenerateReportWithHttpInfo($SubmitGenerateReportRequest, s
321321
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\ReportingService\SubmitGenerateReportResponse');
322322
case 400:
323323
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault');
324+
case 500:
325+
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault');
324326
case 401:
325327
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault');
326328
case 403:
327329
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault');
328-
case 500:
329-
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault');
330330
}
331331

332332
if ($statusCode < 200 || $statusCode > 299) {
@@ -363,23 +363,23 @@ public function submitGenerateReportWithHttpInfo($SubmitGenerateReportRequest, s
363363
);
364364
$e->setResponseObject($data);
365365
break;
366-
case 401:
366+
case 500:
367367
$data = ObjectSerializer::deserialize(
368368
$e->getResponseBody(),
369369
'\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault',
370370
$e->getResponseHeaders()
371371
);
372372
$e->setResponseObject($data);
373373
break;
374-
case 403:
374+
case 401:
375375
$data = ObjectSerializer::deserialize(
376376
$e->getResponseBody(),
377377
'\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault',
378378
$e->getResponseHeaders()
379379
);
380380
$e->setResponseObject($data);
381381
break;
382-
case 500:
382+
case 403:
383383
$data = ObjectSerializer::deserialize(
384384
$e->getResponseBody(),
385385
'\Microsoft\MsAds\Rest\Model\ReportingService\ApplicationFault',

src/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Configuration
114114
*
115115
* @var string
116116
*/
117-
protected string $userAgent = 'BingAdsSDKPHP.RestApi 13.0.24.1 ' . PHP_VERSION;
117+
protected string $userAgent = 'BingAdsSDKPHP.RestApi 13.0.25 ' . PHP_VERSION;
118118

119119
/**
120120
* Debug switch (default set to false)

src/Model/BulkService/BatchErrorBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Microsoft\MsAds\Rest\ObjectSerializer;
1717
use Microsoft\MsAds\Rest\ModelInterface;
1818

19-
class BatchErrorBase implements ModelInterface, ArrayAccess, \JsonSerializable
19+
class BatchErrorBase extends BatchError implements ModelInterface, ArrayAccess, \JsonSerializable
2020
{
2121
public const DISCRIMINATOR = null;
2222

src/Model/BulkService/DownloadEntity.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,12 @@ class DownloadEntity
405405

406406
public const CAMPAIGN_ACCOUNT_PLACEMENT_INCLUSION_LIST_ASSOCIATION = 'CampaignAccountPlacementInclusionListAssociation';
407407

408+
public const TOPIC = 'Topic';
409+
410+
public const CONTENT_PLACEMENT = 'ContentPlacement';
411+
412+
public const BRAND_KIT = 'BrandKit';
413+
408414

409415
// If this is an enum with flags true, you can combine multiple values with a comma i.e "value1,value2"
410416
private static bool $isFlags = false;
@@ -664,7 +670,10 @@ public static function getAllowableEnumValues(): array
664670
self::CAMPAIGN_ACCOUNT_PLACEMENT_EXCLUSION_LIST_ASSOCIATION,
665671
self::ACCOUNT_PLACEMENT_INCLUSION_LIST,
666672
self::ACCOUNT_PLACEMENT_INCLUSION_LIST_ITEM,
667-
self::CAMPAIGN_ACCOUNT_PLACEMENT_INCLUSION_LIST_ASSOCIATION
673+
self::CAMPAIGN_ACCOUNT_PLACEMENT_INCLUSION_LIST_ASSOCIATION,
674+
self::TOPIC,
675+
self::CONTENT_PLACEMENT,
676+
self::BRAND_KIT
668677
];
669678
}
670679
}

src/Model/CampaignManagementService/AdGroupAdditionalField.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class AdGroupAdditionalField
4343

4444
public const USE_PREDICTIVE_TARGETING = 'UsePredictiveTargeting';
4545

46+
public const MAX_CONVERSION_VALUE_WITH_MAX_CPC = 'MaxConversionValueWithMaxCpc';
47+
4648

4749
// If this is an enum with flags true, you can combine multiple values with a comma i.e "value1,value2"
4850
private static bool $isFlags = true;
@@ -121,7 +123,8 @@ public static function getAllowableEnumValues(): array
121123
self::MCPA_BID,
122124
self::USE_OPTIMIZED_TARGETING,
123125
self::FREQUENCY_CAP_SETTINGS,
124-
self::USE_PREDICTIVE_TARGETING
126+
self::USE_PREDICTIVE_TARGETING,
127+
self::MAX_CONVERSION_VALUE_WITH_MAX_CPC
125128
];
126129
}
127130
}

src/Model/CampaignManagementService/AdGroupCriterionType.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ class AdGroupCriterionType
8181

8282
public const PLACEMENT = 'Placement';
8383

84+
public const TOPIC = 'Topic';
85+
8486

8587
// If this is an enum with flags true, you can combine multiple values with a comma i.e "value1,value2"
8688
private static bool $isFlags = true;
@@ -178,7 +180,8 @@ public static function getAllowableEnumValues(): array
178180
self::GENRE,
179181
self::CUSTOMER_LIST,
180182
self::IMPRESSION_BASED_REMARKETING_LIST,
181-
self::PLACEMENT
183+
self::PLACEMENT,
184+
self::TOPIC
182185
];
183186
}
184187
}

0 commit comments

Comments
 (0)