Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
485 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We are trying to migrate to Responsive Search ads, but our SOAP requests are returning errors. It appears our information is valid, we can manually create an Ad using the same values.
The error response:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v13">78abece4-34c0-4c8b-a049-6a76a9457bc7</h:TrackingId>
</s:Header>
<s:Body>
<AddAdsResponse xmlns="https://bingads.microsoft.com/CampaignManagement/v13">
<AdIds xmlns:a="http://schemas.datacontract.org/2004/07/System" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:long i:nil="true" />
</AdIds>
<PartialErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<BatchError>
<Code>6212</Code>
<Details i:nil="true" />
<ErrorCode>CampaignServiceResponsiveSearchAdHeadlinesLessThanMinRequired</ErrorCode>
<FieldPath>Headlines</FieldPath>
<ForwardCompatibilityMap i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Index>0</Index>
<Message>The minimum number of eligible headlines has not been met. A headline is considered ineligible, for example if it includes a countdown function without a default value.</Message>
<Type>BatchError</Type>
</BatchError>
<BatchError>
<Code>6213</Code>
<Details i:nil="true" />
<ErrorCode>CampaignServiceResponsiveSearchAdDescriptionsLessThanMinRequired</ErrorCode>
<FieldPath>Descriptions</FieldPath>
<ForwardCompatibilityMap i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Index>0</Index>
<Message>The minimum number of eligible descriptions has not been met. A description is considered ineligible, for example if it includes a countdown function without a default value.</Message>
<Type>BatchError</Type>
</BatchError>
</PartialErrors>
</AddAdsResponse>
</s:Body>
</s:Envelope>
And our request SOAP:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:v13="https://bingads.microsoft.com/CampaignManagement/v13" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="https://bingads.microsoft.com/CampaignManagement/v13" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ins0="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ins1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ins2="http://schemas.datacontract.org/2004/07/System" xmlns:ins3="https://adapi.microsoft.com">
<env:Header>
<v13:CustomerAccountId>REDACTED</v13:CustomerAccountId>
<v13:CustomerId>REDACTED</v13:CustomerId>
<v13:DeveloperToken>REDACTED</v13:DeveloperToken>
<v13:AuthenticationToken>REDACTED</v13:AuthenticationToken>
</env:Header>
<env:Body>
<v13:AddAdsRequest>
<v13:AdGroupId>REDACTED</v13:AdGroupId>
<v13:Ads>
<v13:Ad xsi:type="v13:ResponsiveSearchAd">
<v13:FinalUrls>
<ins0:string>https://www.example.com/test</ins0:string>
</v13:FinalUrls>
<v13:Status>Paused</v13:Status>
<v13:Descriptions>
<v13:AssetLink>
<v13:TextAsset>
<v13:Text>Advertise with Us</v13:Text>
</v13:TextAsset>
</v13:AssetLink>
<v13:AssetLink>
<v13:TextAsset>
<v13:Text>The best in digital advertising</v13:Text>
</v13:TextAsset>
</v13:AssetLink>
<v13:AssetLink>
<v13:TextAsset>
<v13:Text>Advertise with us today</v13:Text>
</v13:TextAsset>
</v13:AssetLink>
</v13:Descriptions>
<v13:Headlines>
<v13:AssetLink>
<v13:TextAsset>
<v13:Text>Automotive Advertising</v13:Text>
</v13:TextAsset>
</v13:AssetLink>
<v13:AssetLink>
<v13:TextAsset>
<v13:Text>Digital Advertising</v13:Text>
</v13:TextAsset>
</v13:AssetLink>
<v13:AssetLink>
<v13:TextAsset>
<v13:Text>Advertise With Us</v13:Text>
</v13:TextAsset>
</v13:AssetLink>
</v13:Headlines>
</v13:Ad>
</v13:Ads>
</v13:AddAdsRequest>
</env:Body>
</env:Envelope>
We appear to have met the requirements of 3 headlines and 3 descriptions.
Thank you