Hi Adwords team,
I failed to remove AgeRange via API AdGroupCriterionService, server raised
fault said that "[EntityNotFound.INVALID_ID @
operations[0].operand.criterion.id; trigger:'CriterionId{id=503005}']"
Id "503005" stands for age between 55 ~ 64, and its status is enabled on
adwords web.
The following are SOAP and suds messages:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tns="https://adwords.google.com/api/adwords/cm/v201708"
xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201708">
<SOAP-ENV:Header>
<tns:RequestHeader>
<tns:clientCustomerId>SECRET CLIENT ID</tns:clientCustomerId>
<tns:developerToken>REDACTED</tns:developerToken>
<tns:userAgent>adwords-robot (AwApi-Python, googleads/7.0.0,
Python/2.7.13)</tns:userAgent>
<tns:validateOnly>false</tns:validateOnly>
<tns:partialFailure>false</tns:partialFailure>
</tns:RequestHeader>
</SOAP-ENV:Header>
<ns0:Body>
<ns1:mutate>
<ns1:operations>
<ns1:operator>*REMOVE*</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId>SECRET ADGROUP ID</ns1:adGroupId>
<ns1:criterion>
<ns1:id>*503005*</ns1:id>
</ns1:criterion>
<ns1:AdGroupCriterion.Type>*BiddableAdGroupCriterion*
</ns1:AdGroupCriterion.Type>
</ns1:operand>
</ns1:operations>
</ns1:mutate>
</ns0:Body>
</SOAP-ENV:Envelope>
[2017-09-26 17:49:42,519 - suds.client - DEBUG] HTTP failed - 500 -
Internal Server Error:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader
xmlns="https://adwords.google.com/api/adwords/cm/v201708"><requestId>00055a14982870110a62db84b70f3446</requestId><serviceName>AdGroupCriterionService</serviceName><methodName>mutate</methodName><operations>1</operations><responseTime>161</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[EntityNotFound.INVALID_ID
@ operations[0].operand.criterion.id;
trigger:'CriterionId{id=503005}']</faultstring><detail><ApiExceptionFault
xmlns="https://adwords.google.com/api/adwords/cm/v201708"><message>[EntityNotFound.INVALID_ID
@ operations[0].operand.criterion.id;
trigger:'CriterionId{id=503005}']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="EntityNotFound"><fieldPath>operations[0].operand.criterion.id</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>criterion</field></fieldPathElements><fieldPathElements><field>id</field></fieldPathElements><trigger>CriterionId{id=503005}</trigger><errorString>EntityNotFound.INVALID_ID</errorString><ApiError.Type>EntityNotFound</ApiError.Type><reason>INVALID_ID</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
[2017-09-26 17:49:42,522 - suds.metrics - DEBUG] <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader
xmlns="https://adwords.google.com/api/adwords/cm/v201708"><requestId>00055a14982870110a62db84b70f3446</requestId><serviceName>AdGroupCriterionService</serviceName><methodName>mutate</methodName><operations>1</operations><responseTime>161</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[EntityNotFound.INVALID_ID
@ operations[0].operand.criterion.id;
trigger:'CriterionId{id=503005}']</faultstring><detail><ApiExceptionFault
xmlns="https://adwords.google.com/api/adwords/cm/v201708"><message>[EntityNotFound.INVALID_ID
@ operations[0].operand.criterion.id;
trigger:'CriterionId{id=503005}']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="EntityNotFound"><fieldPath>operations[0].operand.criterion.id</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>criterion</field></fieldPathElements><fieldPathElements><field>id</field></fieldPathElements><trigger>CriterionId{id=503005}</trigger><errorString>EntityNotFound.INVALID_ID</errorString><ApiError.Type>EntityNotFound</ApiError.Type><reason>INVALID_ID</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
<https://lh3.googleusercontent.com/-xcBoYwPQBng/WcomI73gogI/AAAAAAAAAA4/YtYhh_MlsEUmECjl8f6MEpoOFsmsHRjNACLcBGAs/s1600/adwords-age-range.tiff>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/1cd0f148-04ec-4892-9e2c-b22030516cab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.