Bing 广告 API - GetGeoLocationsFileUrlRequest
Bing ADs API - GetGeoLocationsFileUrlRequest
使用 soap 触发时的以下 soap 请求 ui returns 有效响应。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v11="https://bingads.microsoft.com/CampaignManagement/v11">
<soapenv:Header>
<v11:DeveloperToken>DeveloperToken</v11:DeveloperToken>
<v11:CustomerId>CustomerId</v11:CustomerId>
<v11:CustomerAccountId>AccountId</v11:CustomerAccountId>
<v11:AuthenticationToken>Auth Token</v11:AuthenticationToken>
</soapenv:Header>
<soapenv:Body>
<v11:GetGeoLocationsFileUrlRequest>
<!--Optional:-->
<v11:Version>2.0</v11:Version>
<!--Optional:-->
<v11:LanguageLocale>en</v11:LanguageLocale>
</v11:GetGeoLocationsFileUrlRequest>
</soapenv:Body>
</soapenv:Envelope>
然而,当我尝试通过在 Bing 广告 API 中填充详细信息来触发相同的请求时,我看到 "Authentication token expired. Please renew it or obtain a new token." 下面是我正在使用的代码 -
var getGeoLocationsFileUrlRequest = new GetGeoLocationsFileUrlRequest(null, "Auth Token", "Account ID", "Customer ID", "Developer Token", null, null, "2.0", "en");
CampaignManagementServiceClient client = new CampaignManagementServiceClient();
var getGeoLocationsFileUrlResponse = client.GetGeoLocationsFileUrl(getGeoLocationsFileUrlRequest);
访问令牌最多持续一个小时,因此您需要通过 Authorization Code Grant Flow. Also in case it helps here 获取新的访问和刷新令牌是通过 ServiceClient 的 GetGeoLocationsFileUrl C# 示例。
使用 soap 触发时的以下 soap 请求 ui returns 有效响应。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v11="https://bingads.microsoft.com/CampaignManagement/v11">
<soapenv:Header>
<v11:DeveloperToken>DeveloperToken</v11:DeveloperToken>
<v11:CustomerId>CustomerId</v11:CustomerId>
<v11:CustomerAccountId>AccountId</v11:CustomerAccountId>
<v11:AuthenticationToken>Auth Token</v11:AuthenticationToken>
</soapenv:Header>
<soapenv:Body>
<v11:GetGeoLocationsFileUrlRequest>
<!--Optional:-->
<v11:Version>2.0</v11:Version>
<!--Optional:-->
<v11:LanguageLocale>en</v11:LanguageLocale>
</v11:GetGeoLocationsFileUrlRequest>
</soapenv:Body>
</soapenv:Envelope>
然而,当我尝试通过在 Bing 广告 API 中填充详细信息来触发相同的请求时,我看到 "Authentication token expired. Please renew it or obtain a new token." 下面是我正在使用的代码 -
var getGeoLocationsFileUrlRequest = new GetGeoLocationsFileUrlRequest(null, "Auth Token", "Account ID", "Customer ID", "Developer Token", null, null, "2.0", "en");
CampaignManagementServiceClient client = new CampaignManagementServiceClient();
var getGeoLocationsFileUrlResponse = client.GetGeoLocationsFileUrl(getGeoLocationsFileUrlRequest);
访问令牌最多持续一个小时,因此您需要通过 Authorization Code Grant Flow. Also in case it helps here 获取新的访问和刷新令牌是通过 ServiceClient 的 GetGeoLocationsFileUrl C# 示例。