Skip to content

Commit 52d17a5

Browse files
authored
Merge pull request #10 from BingAds/v13.0.28
v13.0.28
2 parents e7b5d90 + 9cf2223 commit 52d17a5

75 files changed

Lines changed: 11355 additions & 2292 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.

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.27`
179-
- Generated date: `2026-03-12T19:18:48.112570400+08:00[Asia/Shanghai]`
178+
- SDK Package version: `13.0.28`
179+
- Generated date: `2026-05-12T14:49:10.474739800+08:00[Asia/Shanghai]`

src/Api/CampaignManagementServiceApi.php

Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,9 @@ class CampaignManagementServiceApi extends AbstractServiceApi
475475
'getSupportedFonts' => [
476476
'application/json',
477477
],
478+
'getUetTagAuthKey' => [
479+
'application/json',
480+
],
478481
'getUetTagsByIds' => [
479482
'application/json',
480483
],
@@ -33463,6 +33466,225 @@ public function getSupportedFontsRequest($GetSupportedFontsRequest, string $cont
3346333466
);
3346433467
}
3346533468

33469+
/**
33470+
* Operation getUetTagAuthKey
33471+
*
33472+
* @param \Microsoft\MsAds\Rest\Model\CampaignManagementService\GetUetTagAuthKeyRequest $GetUetTagAuthKeyRequest GetUetTagAuthKeyRequest (required)
33473+
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUetTagAuthKey'] to see the possible values for this operation
33474+
*
33475+
* @throws \Microsoft\MsAds\Rest\ApiException on non-2xx response or if the response body is not in the expected format
33476+
* @throws \InvalidArgumentException
33477+
* @return \Microsoft\MsAds\Rest\Model\CampaignManagementService\GetUetTagAuthKeyResponse|\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault|\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault|\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault|\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault
33478+
*/
33479+
public function getUetTagAuthKey($GetUetTagAuthKeyRequest, string $contentType = self::contentTypes['getUetTagAuthKey'][0])
33480+
{
33481+
list($response) = $this->getUetTagAuthKeyWithHttpInfo($GetUetTagAuthKeyRequest, $contentType);
33482+
return $response;
33483+
}
33484+
33485+
/**
33486+
* Operation getUetTagAuthKeyWithHttpInfo
33487+
*
33488+
* @param \Microsoft\MsAds\Rest\Model\CampaignManagementService\GetUetTagAuthKeyRequest $GetUetTagAuthKeyRequest (required)
33489+
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUetTagAuthKey'] to see the possible values for this operation
33490+
*
33491+
* @throws \Microsoft\MsAds\Rest\ApiException on non-2xx response or if the response body is not in the expected format
33492+
* @throws \InvalidArgumentException
33493+
* @return array of \Microsoft\MsAds\Rest\Model\CampaignManagementService\GetUetTagAuthKeyResponse|\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault|\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault|\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault|\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault, HTTP status code, HTTP response headers (array of strings)
33494+
*/
33495+
public function getUetTagAuthKeyWithHttpInfo($GetUetTagAuthKeyRequest, string $contentType = self::contentTypes['getUetTagAuthKey'][0])
33496+
{
33497+
$request = $this->getUetTagAuthKeyRequest($GetUetTagAuthKeyRequest, $contentType);
33498+
33499+
try {
33500+
$options = $this->createHttpClientOption();
33501+
try {
33502+
$response = $this->client->send($request, $options);
33503+
} catch (RequestException $e) {
33504+
$response = $e->getResponse();
33505+
} catch (ConnectException $e) {
33506+
throw new ApiException(
33507+
"[{$e->getCode()}] {$e->getMessage()}",
33508+
(int) $e->getCode(),
33509+
null,
33510+
null
33511+
);
33512+
}
33513+
33514+
$statusCode = $response->getStatusCode();
33515+
33516+
33517+
switch($statusCode) {
33518+
case 200:
33519+
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\CampaignManagementService\GetUetTagAuthKeyResponse');
33520+
case 400:
33521+
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault');
33522+
case 500:
33523+
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault');
33524+
case 401:
33525+
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault');
33526+
case 403:
33527+
return $this->getResponseContent($request, $response, '\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault');
33528+
}
33529+
33530+
if ($statusCode < 200 || $statusCode > 299) {
33531+
throw new ApiException(
33532+
sprintf(
33533+
'[%d] Error connecting to the API (%s)',
33534+
$statusCode,
33535+
(string) $request->getUri()
33536+
),
33537+
$statusCode,
33538+
$response->getHeaders(),
33539+
(string) $response->getBody()
33540+
);
33541+
}
33542+
33543+
$returnType = '\Microsoft\MsAds\Rest\Model\CampaignManagementService\GetUetTagAuthKeyResponse';
33544+
return $this->getResponseContent($request, $response, $returnType);
33545+
33546+
} catch (ApiException $e) {
33547+
switch ($e->getCode()) {
33548+
case 200:
33549+
$data = ObjectSerializer::deserialize(
33550+
$e->getResponseBody(),
33551+
'\Microsoft\MsAds\Rest\Model\CampaignManagementService\GetUetTagAuthKeyResponse',
33552+
$e->getResponseHeaders()
33553+
);
33554+
$e->setResponseObject($data);
33555+
break;
33556+
case 400:
33557+
$data = ObjectSerializer::deserialize(
33558+
$e->getResponseBody(),
33559+
'\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault',
33560+
$e->getResponseHeaders()
33561+
);
33562+
$e->setResponseObject($data);
33563+
break;
33564+
case 500:
33565+
$data = ObjectSerializer::deserialize(
33566+
$e->getResponseBody(),
33567+
'\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault',
33568+
$e->getResponseHeaders()
33569+
);
33570+
$e->setResponseObject($data);
33571+
break;
33572+
case 401:
33573+
$data = ObjectSerializer::deserialize(
33574+
$e->getResponseBody(),
33575+
'\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault',
33576+
$e->getResponseHeaders()
33577+
);
33578+
$e->setResponseObject($data);
33579+
break;
33580+
case 403:
33581+
$data = ObjectSerializer::deserialize(
33582+
$e->getResponseBody(),
33583+
'\Microsoft\MsAds\Rest\Model\CampaignManagementService\ApplicationFault',
33584+
$e->getResponseHeaders()
33585+
);
33586+
$e->setResponseObject($data);
33587+
break;
33588+
}
33589+
throw $e;
33590+
}
33591+
}
33592+
33593+
/**
33594+
* Operation getUetTagAuthKeyAsync
33595+
*
33596+
* @param \Microsoft\MsAds\Rest\Model\CampaignManagementService\GetUetTagAuthKeyRequest $GetUetTagAuthKeyRequest (required)
33597+
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUetTagAuthKey'] to see the possible values for this operation
33598+
*
33599+
* @throws \InvalidArgumentException
33600+
* @return \GuzzleHttp\Promise\PromiseInterface
33601+
*/
33602+
public function getUetTagAuthKeyAsync($GetUetTagAuthKeyRequest, string $contentType = self::contentTypes['getUetTagAuthKey'][0])
33603+
{
33604+
return $this->getUetTagAuthKeyAsyncWithHttpInfo($GetUetTagAuthKeyRequest, $contentType)
33605+
->then(
33606+
function ($response) {
33607+
return $response[0];
33608+
}
33609+
);
33610+
}
33611+
33612+
/**
33613+
* Operation getUetTagAuthKeyAsyncWithHttpInfo
33614+
*
33615+
* @param \Microsoft\MsAds\Rest\Model\CampaignManagementService\GetUetTagAuthKeyRequest $GetUetTagAuthKeyRequest (required)
33616+
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUetTagAuthKey'] to see the possible values for this operation
33617+
*
33618+
* @throws \InvalidArgumentException
33619+
* @return \GuzzleHttp\Promise\PromiseInterface
33620+
*/
33621+
public function getUetTagAuthKeyAsyncWithHttpInfo($GetUetTagAuthKeyRequest, string $contentType = self::contentTypes['getUetTagAuthKey'][0])
33622+
{
33623+
$returnType = '\Microsoft\MsAds\Rest\Model\CampaignManagementService\GetUetTagAuthKeyResponse';
33624+
$request = $this->getUetTagAuthKeyRequest($GetUetTagAuthKeyRequest, $contentType);
33625+
33626+
return $this->client
33627+
->sendAsync($request, $this->createHttpClientOption())
33628+
->then(
33629+
function ($response) use ($returnType) {
33630+
return $this->onFulfilledResponse($response, $returnType);
33631+
},
33632+
function ($exception) {
33633+
$this->onRejectedResponse($exception);
33634+
}
33635+
);
33636+
}
33637+
33638+
/**
33639+
* Create request for operation 'getUetTagAuthKey'
33640+
*
33641+
* @param \Microsoft\MsAds\Rest\Model\CampaignManagementService\GetUetTagAuthKeyRequest $GetUetTagAuthKeyRequest (required)
33642+
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUetTagAuthKey'] to see the possible values for this operation
33643+
*
33644+
* @throws \InvalidArgumentException
33645+
* @return \GuzzleHttp\Psr7\Request
33646+
*/
33647+
public function getUetTagAuthKeyRequest($GetUetTagAuthKeyRequest, string $contentType = self::contentTypes['getUetTagAuthKey'][0])
33648+
{
33649+
33650+
// verify the required parameter 'GetUetTagAuthKeyRequest' is set
33651+
if ($GetUetTagAuthKeyRequest === null || (is_array($GetUetTagAuthKeyRequest) && count($GetUetTagAuthKeyRequest) === 0)) {
33652+
throw new \InvalidArgumentException(
33653+
'Missing the required parameter $GetUetTagAuthKeyRequest when calling getUetTagAuthKey'
33654+
);
33655+
}
33656+
33657+
33658+
$resourcePath = '/CampaignManagement/v13/UetTagAuthKey/Query';
33659+
$formParams = [];
33660+
$queryParams = [];
33661+
$headerParams = [];
33662+
$multipart = false;
33663+
33664+
$headers = $this->headerSelector->selectHeaders(
33665+
['application/json', ],
33666+
$contentType,
33667+
$multipart
33668+
);
33669+
33670+
return $this->setupAndSendRequest(
33671+
'POST',
33672+
$resourcePath,
33673+
$headers,
33674+
$headerParams,
33675+
$GetUetTagAuthKeyRequest,
33676+
$formParams,
33677+
$multipart,
33678+
true,
33679+
true,
33680+
false,
33681+
'getHostSettingsForgetUetTagAuthKey',
33682+
null,
33683+
[],
33684+
$queryParams
33685+
);
33686+
}
33687+
3346633688
/**
3346733689
* Operation getUetTagsByIds
3346833690
*

0 commit comments

Comments
 (0)