This is working for production but not the sandbox:
Request:
<soap:Header>SANITIZED</soap:Header>
<soap:Body>
<mutate
xmlns="https://adwords.google.com/api/adwords/cm/v201109">
<operations>
<operator>ADD</operator>
<operand>
<campaignId>SANITIZED</campaignId>
<criterion xsi:type="Location">
<id>2840</id>
</criterion>
</operand>
</operations>
</mutate>
</soap:Body>
</soap:Envelope>
Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader
xmlns="https://adwords.google.com/api/adwords/cm/
v201109">
<requestId>SANITIZED</requestId>
<serviceName>CampaignCriterionService</serviceName>
<methodName>mutate</methodName>
<operations>1</operations>
<responseTime>86</responseTime>
<units>1</units>
</ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>[CriterionError.INVALID_CRITERION_ID @
operations[0].operand.criterion; trigger:'2840']</faultstring>
<detail>
<ApiExceptionFault
xmlns="https://adwords.google.com/api/adwords/
cm/v201109">
<message>[CriterionError.INVALID_CRITERION_ID @
operations[0].operand.criterion; trigger:'2840']</message>
<ApplicationException.Type>ApiException</
ApplicationException.Type>
<errors
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="CriterionError">
<fieldPath>operations[0].operand.criterion</fieldPath>
<trigger>2840</trigger>
<errorString>CriterionError.INVALID_CRITERION_ID</errorString>
<ApiError.Type>CriterionError</ApiError.Type>
<reason>INVALID_CRITERION_ID</reason>
</errors>
</ApiExceptionFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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