Hi there

I’m having problems generating the correct xml to remove an adgroup
criterion.

The request xml we’re currently using can be seen below.  Note that
I'm not specifying whether the criteria is a keyword or a placement,
(although we have tried this but it still didn’t seem to work) because
presumably this doesn’t matter when you’re trying to delete it?

Either way, i keep getting the error response that can be seen below

Could you please tell me where i’m going wrong and provide an example
of a correctly formed request to remove an adgroup criterion?


Kind regards

Tam

<PRE>REQUEST:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/
v200909">
<SOAP-ENV:Header><ns1:RequestHeader>
<ns1:applicationToken>********</ns1:applicationToken>
<ns1:authToken>****</ns1:authToken>
<ns1:clientEmail>*****</ns1:clientEmail>
<ns1:developerToken>********</ns1:developerToken>
<ns1:userAgent>*****</ns1:userAgent></ns1:RequestHeader>
</SOAP-ENV:Header><SOAP-ENV:Body>
<ns1:mutate>
<ns1:operations>
<ns1:operator>REMOVE</ns1:operator>
<ns1:operand>
<ns1:adGroupId>1274081152</ns1:adGroupId>
<ns1:criterion>
<ns1:id>106745635</ns1:id>
</ns1:criterion>
</ns1:operand>
</ns1:operations>
</ns1:mutate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</PRE>
<PRE>RESPONSE:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200909">
<requestId>34b4feb0e1f99f5ef7eab7c35ab830dd</requestId>
<operations>1</operations>
<responseTime>424</responseTime>
<units>1</units></ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>[EntityNotFound.INVALID_ID @
operations[0].operand.criterion.id; trigger:'106745635']</faultstring>
<detail>
<ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/
v200909">
<message>[EntityNotFound.INVALID_ID @
operations[0].operand.criterion.id; trigger:'106745635']</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>
<trigger>106745635</trigger>
<ApiError.Type>EntityNotFound</ApiError.Type>
<reason>INVALID_ID</reason>
</errors></ApiExceptionFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
</PRE><PRE>REQUEST:
<?xml version="1.0" encoding="UTF-8"?>

-- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to adwords-...@googlegroups.com.
To unsubscribe from this group, send email to 
adwords-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en.

Reply via email to