Hi,

NegativeAdGroupCriterion cannot be updated, see
http://code.google.com/apis/adwords/docs/reference/latest/AdGroupCriterionService.html#AdGroupCriterionError
for details of the error you are getting from the server. You need to
delete the negative keyword and add a new one to change a negative
keyword.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Jan 27, 8:54 pm, javeed <[email protected]> wrote:
> Hi
>
> here is the soap request when i try to publish a negative keyword.
>
> <?xml version="1.0" encoding="UTF-8"?><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
> soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
> soapenv:mustUnderstand="0" xmlns:ns1="https://adwords.google.com/api/
> adwords/cm/v200909"><ns1:applicationToken>*********</
> ns1:applicationToken><ns1:authToken xmlns:ns1="https://
> adwords.google.com/api/adwords/cm/v200909">******</
> ns1:authToken><ns1:clientCustomerId>*********</
> ns1:clientCustomerId><ns1:developerToken>**********</
> ns1:developerToken><ns1:userAgent>AdWords API Java Client Library -
> v7.1.0 - Eniro PHP Library for AdWords</
> ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly></
> ns1:RequestHeader></soapenv:Header><soapenv:Body><mutate
> xmlns="https://adwords.google.com/api/adwords/cm/
> v200909"><operations><operator>SET</operator><operand
> xsi:type="ns2:NegativeAdGroupCriterion" xmlns:ns2="https://
> adwords.google.com/api/adwords/cm/v200909"><adGroupId>1891677525</
> adGroupId><criterion xsi:type="ns2:Keyword"><id>23217530085</
> id><text>negativeKeywordTest</text><matchType>PHRASE</matchType></
> criterion><AdGroupCriterion.Type>NegativeAdGroupCriterion</
> AdGroupCriterion.Type></operand></operations></mutate></soapenv:Body></
> soapenv:Envelope>
>
> and this the response i got..
>
> <?xml version="1.0" encoding="UTF-8"?><soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/
> envelope/"><soap:Header><ResponseHeader xmlns="https://
> adwords.google.com/api/adwords/cm/
> v200909"><requestId>9a6b557f5fde12f16ae45327cba4cae9</
> requestId><operations>1</operations><responseTime>892</
> responseTime><units>3</units></ResponseHeader></
> soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</
> faultcode><faultstring>[AdGroupCriterionError.CANT_UPDATE_NEGATIVE @
> operations[0].operand.criterion.id]</
> faultstring><detail><ApiExceptionFault xmlns="https://
> adwords.google.com/api/adwords/cm/
> v200909"><message>[AdGroupCriterionError.CANT_UPDATE_NEGATIVE @
> operations[0].operand.criterion.id]</
> message><ApplicationException.Type>ApiException</
> ApplicationException.Type><errors xsi:type="AdGroupCriterionError"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-
> instance"><fieldPath>operations[0].operand.criterion.id</
> fieldPath><trigger/><ApiError.Type>AdGroupCriterionError</
> ApiError.Type><reason>CANT_UPDATE_NEGATIVE</reason></errors></
> ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
>
> Can you please tell me, what is wrong with the request. This is not a
> new keyword. Am updating the keyword.
> I have this exception for keyword with NegativeAdGroupCriterion, but
> it works fine with biddable.
>
> Please response soon. is urgent..

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to