try to using AdGroupAdService to add ads but fail

20 views
Skip to first unread message

RAN HU

unread,
Nov 8, 2018, 6:43:58 PM11/8/18
to AdWords API and Google Ads API Forum

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:tns="https://adwords.google.com/api/adwords/cm/v201809" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"><soap:Header><ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" xmlns="https://adwords.google.com/api/adwords/cm/v201809"><ns1:developerToken>xxxx</ns1:developerToken><ns1:userAgent>xxx</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:clientCustomerId>xxx-xxx-xxxx</ns1:clientCustomerId></ns1:RequestHeader></soap:Header><soap:Body><mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809"><operations><operator>ADD</operator><operand><adGroupId>64560939249</adGroupId><ad><url>www.google.ca</url><displayUrl>www.google.ca</displayUrl><finalUrls>www.google.ca</finalUrls><type>TEXT_AD</type></ad></operand></operations></mutate></soap:Body></soap:Envelope>



resopnse [EntityNotFound.INVALID_ID @ operations[0].operand.ad.id; trigger:'<null>']

i am trying to add ads using AdGroupAdService, why i need ad id

Luis Xander Talag (AdWords API Team)

unread,
Nov 9, 2018, 2:19:51 AM11/9/18
to AdWords API and Google Ads API Forum
Hi Ran,

Based on the logs you've provided, it seems that you are trying to create a text ad from this line <type>TEXT_AD</type>. This type of ad is no longer supported for creation and I suggest you upgrade to expanded text ads instead (refer here for more information). You may follow the Java (available also in other languages) code example on this link to create an expanded text ad. If you still encounter any issues after using expanded text ads, please provide your clientCustomerId, and the complete SOAP request and response logs so I can further investigate the issue on my end. you can send it to me via Reply privately to author.

Let me know if you have further clarifications.

Thanks,
Luis
AdWords API Team
Reply all
Reply to author
Forward
0 new messages