Unable to create ExpandedTextAd for an Adgroup? Got some weird exception?

11 views
Skip to first unread message

Suresh Kumar Shenbagam

unread,
Jul 22, 2019, 6:47:57 AM7/22/19
to AdWords API and Google Ads API Forum
Hi, 

I was trying to create simple ExpandedTextAd for an adgroup. The adgroup is a valid one and I am able to read ads using google adwords java APIs. But I am unable to create an ad. 

Getting the following exception:
AxisFault
 faultCode
: {http://schemas.xmlsoap.org/soap/envelope/}Client
 faultSubcode
:
 faultString
: [EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId; trigger:'AdGroupId: 76463905157']
 faultActor
:
 faultNode
:
 faultDetail
:
 
{https://adwords.google.com/api/adwords/cm/v201809}ApiExceptionFault:<message>[EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId; trigger:'AdGroupId: 76463905157']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="EntityNotFound"><fieldPath>operations[0].operand.adGroupId</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>adGroupId</field></fieldPathElements><trigger>AdGroupId: 76463905157</trigger><errorString>EntityNotFound.INVALID_ID</errorString><ApiError.Type>EntityNotFound</ApiError.Type><reason>INVALID_ID</reason></errors>


ApiException{applicationExceptionType=ApiException, errors=[EntityNotFound{apiErrorType=EntityNotFound, errorString=EntityNotFound.INVALID_ID, fieldPath=operations[0].operand.adGroupId, fieldPathElements=[FieldPathElement{field=operations, index=0}, FieldPathElement{field=operand}, FieldPathElement{field=adGroupId}], reason=INVALID_ID, trigger=AdGroupId: 76463905157}]}
 at sun
.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun
.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
 at sun
.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
 at java
.lang.reflect.Constructor.newInstance(Unknown Source)



SOAP Request:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   
<soapenv:Header>
       
<ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" soapenv:mustUnderstand="0">
           
<ns1:clientCustomerId>2176918037</ns1:clientCustomerId>
           
<ns1:developerToken>REDACTED</ns1:developerToken>
           
<ns1:userAgent>unknown (AwApi-Java, AdWords-Axis/4.3.0, Common-Java/4.3.0, Axis/1.4, Java/1.8.0_202, maven, SelectorBuilder)</ns1:userAgent>
           
<ns1:validateOnly>false</ns1:validateOnly>
           
<ns1:partialFailure>false</ns1:partialFailure>
       
</ns1:RequestHeader>
   
</soapenv:Header>
   
<soapenv:Body>
       
<mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809">
           
<operations>
               
<operator>ADD</operator>
               
<operand>
                   
<adGroupId>76463905157</adGroupId>
                   
<ad xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809" xsi:type="ns2:ExpandedTextAd">
                       
<ns2:finalUrls>http://cloudsense.com</ns2:finalUrls>
                       
<ns2:headlinePart1>Test Headline1</ns2:headlinePart1>
                       
<ns2:headlinePart2>Test Headline2</ns2:headlinePart2>
                       
<ns2:description>Description1</ns2:description>
                   
</ad>
                   
<status>PAUSED</status>
               
</operand>
           
</operations>
       
</mutate>
   
</soapenv:Body>
</soapenv:Envelope>


62177    [main] INFO c.g.a.a.a.l.c.A.soapXmlLogger [] - SOAP response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   
<soap:Header>
       
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809">
           
<requestId>00058e42bed5c8660a6282cbb10a6311</requestId>
           
<serviceName>AdGroupAdService</serviceName>
           
<methodName>mutate</methodName>
           
<operations>1</operations>
           
<responseTime>146</responseTime>
       
</ResponseHeader>
   
</soap:Header>
   
<soap:Body>
       
<soap:Fault>
           
<faultcode>soap:Client</faultcode>
           
<faultstring>[EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId; trigger:'AdGroupId: 76463905157']</faultstring>
           
<detail>
               
<ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809">
                   
<message>[EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId; trigger:'AdGroupId: 76463905157']</message>
                   
<ApplicationException.Type>ApiException</ApplicationException.Type>
                   
<errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="EntityNotFound">
                       
<fieldPath>operations[0].operand.adGroupId</fieldPath>
                       
<fieldPathElements>
                           
<field>operations</field>
                           
<index>0</index>
                       
</fieldPathElements>
                       
<fieldPathElements>
                           
<field>operand</field>
                       
</fieldPathElements>
                       
<fieldPathElements>
                           
<field>adGroupId</field>
                       
</fieldPathElements>
                       
<trigger>AdGroupId: 76463905157</trigger>
                       
<errorString>EntityNotFound.INVALID_ID</errorString>
                       
<ApiError.Type>EntityNotFound</ApiError.Type>
                       
<reason>INVALID_ID</reason>
                   
</errors>
               
</ApiExceptionFault>
           
</detail>
       
</soap:Fault>
   
</soap:Body>
</soap:Envelope>




Could you please look into this?

Suresh
Reply all
Reply to author
Forward
0 new messages