Skip to content

Commit 6e475e7

Browse files
authored
Merge pull request #4 from BingAds/v13.0.25.1
v13.0.25.1
2 parents 44ee2c1 + 2a68691 commit 6e475e7

9 files changed

Lines changed: 425 additions & 19 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,5 +175,5 @@ Logs will be generated in the base directory of the project with the request and
175175

176176
## About this package
177177

178-
- SDK Package version: `13.0.24.1`
179-
- Generated date: `2025-06-11T22:35:13.192919100-04:00[America/New_York]`
178+
- SDK Package version: `13.0.25.1`
179+
- Generated date: `2025-07-31T13:28:36.717081200+08:00[Asia/Shanghai]`

src/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class Configuration
110110
];
111111

112112
/**
113-
* User agent of the HTTP request, set to "BingAdsSDKPHP.RestApi 13.0.24.1" by default
113+
* User agent of the HTTP request, set to "BingAdsSDKPHP.RestApi 13.0.25.1" by default
114114
*
115115
* @var string
116116
*/
@@ -506,7 +506,7 @@ public static function toDebugReport(): string
506506
$report .= ' OS: ' . php_uname() . PHP_EOL;
507507
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
508508
$report .= ' The version of the OpenAPI document: 1.0.0' . PHP_EOL;
509-
$report .= ' SDK Package Version: 13.0.24.1' . PHP_EOL;
509+
$report .= ' SDK Package Version: 13.0.25.1' . PHP_EOL;
510510
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
511511

512512
return $report;

src/Model/CampaignManagementService/GetUetTagsByIdsRequest.php

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ class GetUetTagsByIdsRequest implements ModelInterface, ArrayAccess, \JsonSerial
3333
* @var string[]
3434
*/
3535
protected static array $openAPITypes = [
36-
'TagIds' => 'string[]'
36+
'TagIds' => 'string[]',
37+
'ReturnAdditionalFields' => '\Microsoft\MsAds\Rest\Model\CampaignManagementService\UetTagAdditionalField'
3738
];
3839

3940
/**
@@ -44,7 +45,8 @@ class GetUetTagsByIdsRequest implements ModelInterface, ArrayAccess, \JsonSerial
4445
* @psalm-var array<string, string|null>
4546
*/
4647
protected static array $openAPIFormats = [
47-
'TagIds' => 'int64'
48+
'TagIds' => 'int64',
49+
'ReturnAdditionalFields' => null
4850
];
4951

5052
/**
@@ -53,7 +55,8 @@ class GetUetTagsByIdsRequest implements ModelInterface, ArrayAccess, \JsonSerial
5355
* @var boolean[]
5456
*/
5557
protected static array $openAPINullables = [
56-
'TagIds' => true
58+
'TagIds' => true,
59+
'ReturnAdditionalFields' => false
5760
];
5861

5962
/**
@@ -142,7 +145,8 @@ public function isNullableSetToNull(string $property): bool
142145
* @var string[]
143146
*/
144147
protected static array $attributeMap = [
145-
'TagIds' => 'TagIds'
148+
'TagIds' => 'TagIds',
149+
'ReturnAdditionalFields' => 'ReturnAdditionalFields'
146150
];
147151

148152
/**
@@ -151,7 +155,8 @@ public function isNullableSetToNull(string $property): bool
151155
* @var string[]
152156
*/
153157
protected static array $setters = [
154-
'TagIds' => 'setTagIds'
158+
'TagIds' => 'setTagIds',
159+
'ReturnAdditionalFields' => 'setReturnAdditionalFields'
155160
];
156161

157162
/**
@@ -160,7 +165,8 @@ public function isNullableSetToNull(string $property): bool
160165
* @var string[]
161166
*/
162167
protected static array $getters = [
163-
'TagIds' => 'getTagIds'
168+
'TagIds' => 'getTagIds',
169+
'ReturnAdditionalFields' => 'getReturnAdditionalFields'
164170
];
165171

166172
/**
@@ -221,6 +227,7 @@ public function getModelName(): string
221227
public function __construct(?array $data = null)
222228
{
223229
$this->setIfExists('TagIds', $data ?? [], null);
230+
$this->setIfExists('ReturnAdditionalFields', $data ?? [], null);
224231
}
225232

226233
/**
@@ -301,6 +308,42 @@ public function setTagIds($TagIds)
301308

302309
return $this;
303310
}
311+
312+
/**
313+
* Gets ReturnAdditionalFields
314+
*
315+
* @return \Microsoft\MsAds\Rest\Model\CampaignManagementService\UetTagAdditionalField|mixed|null
316+
*/
317+
public function getReturnAdditionalFields()
318+
{
319+
if (!isset($this->container['ReturnAdditionalFields']) || is_null($this->container['ReturnAdditionalFields'])) {
320+
return null;
321+
}
322+
if ((is_object($this->container['ReturnAdditionalFields']) || is_string($this->container['ReturnAdditionalFields'])) && method_exists($this->container['ReturnAdditionalFields'], 'getValue')) {
323+
return $this->container['ReturnAdditionalFields']->getValue();
324+
}
325+
return $this->container['ReturnAdditionalFields'];
326+
}
327+
328+
/**
329+
* Sets ReturnAdditionalFields
330+
*
331+
* @param \Microsoft\MsAds\Rest\Model\CampaignManagementService\UetTagAdditionalField|mixed|null $ReturnAdditionalFields ReturnAdditionalFields
332+
*
333+
* @return self
334+
*/
335+
public function setReturnAdditionalFields($ReturnAdditionalFields)
336+
{
337+
if (is_null($ReturnAdditionalFields)) {
338+
throw new \InvalidArgumentException('non-nullable ReturnAdditionalFields cannot be null');
339+
}
340+
if (!$ReturnAdditionalFields instanceof \Microsoft\MsAds\Rest\Model\CampaignManagementService\UetTagAdditionalField) {
341+
$ReturnAdditionalFields = new \Microsoft\MsAds\Rest\Model\CampaignManagementService\UetTagAdditionalField($ReturnAdditionalFields);
342+
}
343+
$this->container['ReturnAdditionalFields'] = $ReturnAdditionalFields;
344+
345+
return $this;
346+
}
304347
/**
305348
* Returns true if offset exists. False otherwise.
306349
*

src/Model/CampaignManagementService/UetTag.php

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ class UetTag implements ModelInterface, ArrayAccess, \JsonSerializable
3939
'TrackingScript' => 'string',
4040
'TrackingNoScript' => 'string',
4141
'TrackingStatus' => '\Microsoft\MsAds\Rest\Model\CampaignManagementService\UetTagTrackingStatus',
42-
'CustomerShare' => '\Microsoft\MsAds\Rest\Model\CampaignManagementService\CustomerShare'
42+
'CustomerShare' => '\Microsoft\MsAds\Rest\Model\CampaignManagementService\CustomerShare',
43+
'Industry' => '\Microsoft\MsAds\Rest\Model\CampaignManagementService\UetTagIndustry'
4344
];
4445

4546
/**
@@ -56,7 +57,8 @@ class UetTag implements ModelInterface, ArrayAccess, \JsonSerializable
5657
'TrackingScript' => null,
5758
'TrackingNoScript' => null,
5859
'TrackingStatus' => null,
59-
'CustomerShare' => null
60+
'CustomerShare' => null,
61+
'Industry' => null
6062
];
6163

6264
/**
@@ -71,7 +73,8 @@ class UetTag implements ModelInterface, ArrayAccess, \JsonSerializable
7173
'TrackingScript' => true,
7274
'TrackingNoScript' => true,
7375
'TrackingStatus' => false,
74-
'CustomerShare' => true
76+
'CustomerShare' => true,
77+
'Industry' => false
7578
];
7679

7780
/**
@@ -166,7 +169,8 @@ public function isNullableSetToNull(string $property): bool
166169
'TrackingScript' => 'TrackingScript',
167170
'TrackingNoScript' => 'TrackingNoScript',
168171
'TrackingStatus' => 'TrackingStatus',
169-
'CustomerShare' => 'CustomerShare'
172+
'CustomerShare' => 'CustomerShare',
173+
'Industry' => 'Industry'
170174
];
171175

172176
/**
@@ -181,7 +185,8 @@ public function isNullableSetToNull(string $property): bool
181185
'TrackingScript' => 'setTrackingScript',
182186
'TrackingNoScript' => 'setTrackingNoScript',
183187
'TrackingStatus' => 'setTrackingStatus',
184-
'CustomerShare' => 'setCustomerShare'
188+
'CustomerShare' => 'setCustomerShare',
189+
'Industry' => 'setIndustry'
185190
];
186191

187192
/**
@@ -196,7 +201,8 @@ public function isNullableSetToNull(string $property): bool
196201
'TrackingScript' => 'getTrackingScript',
197202
'TrackingNoScript' => 'getTrackingNoScript',
198203
'TrackingStatus' => 'getTrackingStatus',
199-
'CustomerShare' => 'getCustomerShare'
204+
'CustomerShare' => 'getCustomerShare',
205+
'Industry' => 'getIndustry'
200206
];
201207

202208
/**
@@ -263,6 +269,7 @@ public function __construct(?array $data = null)
263269
$this->setIfExists('TrackingNoScript', $data ?? [], null);
264270
$this->setIfExists('TrackingStatus', $data ?? [], null);
265271
$this->setIfExists('CustomerShare', $data ?? [], null);
272+
$this->setIfExists('Industry', $data ?? [], null);
266273
}
267274

268275
/**
@@ -564,6 +571,42 @@ public function setCustomerShare($CustomerShare)
564571

565572
return $this;
566573
}
574+
575+
/**
576+
* Gets Industry
577+
*
578+
* @return \Microsoft\MsAds\Rest\Model\CampaignManagementService\UetTagIndustry|mixed|null
579+
*/
580+
public function getIndustry()
581+
{
582+
if (!isset($this->container['Industry']) || is_null($this->container['Industry'])) {
583+
return null;
584+
}
585+
if ((is_object($this->container['Industry']) || is_string($this->container['Industry'])) && method_exists($this->container['Industry'], 'getValue')) {
586+
return $this->container['Industry']->getValue();
587+
}
588+
return $this->container['Industry'];
589+
}
590+
591+
/**
592+
* Sets Industry
593+
*
594+
* @param \Microsoft\MsAds\Rest\Model\CampaignManagementService\UetTagIndustry|mixed|null $Industry Industry
595+
*
596+
* @return self
597+
*/
598+
public function setIndustry($Industry)
599+
{
600+
if (is_null($Industry)) {
601+
throw new \InvalidArgumentException('non-nullable Industry cannot be null');
602+
}
603+
if (!$Industry instanceof \Microsoft\MsAds\Rest\Model\CampaignManagementService\UetTagIndustry) {
604+
$Industry = new \Microsoft\MsAds\Rest\Model\CampaignManagementService\UetTagIndustry($Industry);
605+
}
606+
$this->container['Industry'] = $Industry;
607+
608+
return $this;
609+
}
567610
/**
568611
* Returns true if offset exists. False otherwise.
569612
*
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<?php
2+
/**
3+
* UetTagAdditionalField
4+
* CampaignManagementService
5+
*
6+
* PHP version 7.4
7+
*
8+
* @category Class
9+
* @package Microsoft\MsAds\Rest\Model\CampaignManagementService
10+
* @author Microsoft Advertising
11+
*/
12+
13+
namespace Microsoft\MsAds\Rest\Model\CampaignManagementService;
14+
use Microsoft\MsAds\Rest\ObjectSerializer;
15+
use Microsoft\MsAds\Rest\ModelInterface;
16+
17+
class UetTagAdditionalField
18+
{
19+
/**
20+
* Possible values of this enum
21+
*/
22+
public const NONE = 'None';
23+
24+
public const INDUSTRY = 'Industry';
25+
26+
27+
// If this is an enum with flags true, you can combine multiple values with a comma i.e "value1,value2"
28+
private static bool $isFlags = true;
29+
private $value;
30+
31+
/**
32+
* Constructor
33+
*/
34+
public function __construct($value)
35+
{
36+
$this->setValue($value);
37+
}
38+
39+
/**
40+
* Gets the value of the enum
41+
*/
42+
public function getValue()
43+
{
44+
return $this->value;
45+
}
46+
47+
/**
48+
* Sets the value of the enum
49+
*/
50+
public function setValue($value)
51+
{
52+
$this->validateValue($value);
53+
if (is_array($value) && self::$isFlags) {
54+
$value = implode(',', $value);
55+
}
56+
$this->value = $value;
57+
}
58+
59+
public static function isFlags(): bool
60+
{
61+
return self::$isFlags;
62+
}
63+
64+
public static function validateValue($value): bool
65+
{
66+
$values = (self::$isFlags)
67+
? ((is_string($value) ? explode(',', $value) : $value))
68+
: [$value];
69+
foreach ($values as $v) {
70+
if (!in_array($v, self::getAllowableEnumValues(), true)) {
71+
throw new \InvalidArgumentException(sprintf(
72+
'Invalid value for enum %s, must be one of: %s',
73+
__CLASS__,
74+
implode(', ', self::getAllowableEnumValues())
75+
));
76+
}
77+
}
78+
return true;
79+
}
80+
81+
public function __toString()
82+
{
83+
return strval($this->value);
84+
}
85+
86+
/**
87+
* Gets allowable values of the enum
88+
* @return string[]
89+
*/
90+
public static function getAllowableEnumValues(): array
91+
{
92+
return [
93+
self::NONE,
94+
self::INDUSTRY
95+
];
96+
}
97+
}

0 commit comments

Comments
 (0)