For anyone else who stumbles on to this - we were using the account number in the past, but it looks you must pass the account id now.
The account id can be found using the customer management api : https://learn.microsoft.com/en-us/advertising/customer-management-service/findaccounts?view=bingads-13
you would pass the account number into the AccountFilter body element
Responsive Search Ad Error - code 119 InvalidAccountId
Matt King
6
Reputation points
We are trying to migrate from Expanded Text to Responsive Search ads. We cannot seem to create an ad with the following SOAP request - personal info has been redacted, but note that these same headers are allowing us to create the older ad formats. We get the error
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>s:Server</faultcode><faultstring xml:lang="en-US">Invalid client data. Check the SOAP fault details for more information. TrackingId: 44415b0c-8d42-4ba9-8158-9b523c24a4dd.</faultstring><detail><AdApiFaultDetail xmlns="https://adapi.microsoft.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><TrackingId>44415b0c-8d42-4ba9-8158-9b523c24a4dd</TrackingId><Errors><AdApiError><Code>119</Code><Detail i:nil="true"/><ErrorCode>InvalidAccountId</ErrorCode><Message>The account ID is invalid.</Message></AdApiError></Errors></AdApiFaultDetail></detail></s:Fault></s:Body></s:Envelope>
The SOAP request follows:
<?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>Active</v13:Status>
<v13:Descriptions>
<v13:AssetLink>
<v13:TextAsset xsi:type="TextAsset">
<v13:Text>Advertise with Us</v13:Text>
</v13:TextAsset>
</v13:AssetLink>
</v13:Descriptions>
<v13:Descriptions>
<v13:AssetLink>
<v13:Asset xsi:type="TextAsset">
<v13:Text>Market your website with Us</v13:Text>
</v13:Asset>
</v13:AssetLink>
</v13:Descriptions>
<v13:Descriptions>
<v13:AssetLink>
<v13:Asset xsi:type="TextAsset">
<v13:Text>Automotive marketing with Us</v13:Text>
</v13:Asset>
</v13:AssetLink>
</v13:Descriptions>
<v13:Headlines>
<v13:AssetLink>
<v13:Asset xsi:type="TextAsset">
<v13:Text>Digital Advertising</v13:Text>
</v13:Asset>
</v13:AssetLink>
</v13:Headlines>
<v13:Headlines>
<v13:AssetLink>
<v13:Asset xsi:type="TextAsset">
<v13:Text>Digital Marketing</v13:Text>
</v13:Asset>
</v13:AssetLink>
</v13:Headlines>
<v13:Headlines>
<v13:AssetLink>
<v13:Asset xsi:type="TextAsset">
<v13:Text>Digital Automotive Agency</v13:Text>
</v13:Asset>
</v13:AssetLink>
</v13:Headlines>
</v13:Ad>
</v13:Ads>
</v13:AddAdsRequest>
</env:Body>
</env:Envelope>
Thank you
1 answer
Sort by: Most helpful
-
Matt King 6 Reputation points
2022-08-10T20:35:02.383+00:00