Hi,

For excluding location in your campaign, you need to use the 
CampaignCriterionService.mutate() 
<https://developers.google.com/adwords/api/docs/reference/v201710/CampaignCriterionService#mutate>
 and 
the NegativeCampaignCriterion 
<https://developers.google.com/adwords/api/docs/reference/v201710/CampaignCriterionService.NegativeCampaignCriterion>
 as 
your object. Since you are using nodeJS, I will just provide you the sample 
SOAP request snippet that you can emulate on your end:

<soapenv:Body>
    <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201710";>
        <operations>
            <operator>ADD</operator>
            <operand 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201710"; 
*xsi:type="ns2:NegativeCampaignCriterion"*>
                <ns2:campaignId>XXXXXXXXX</ns2:campaignId>
                <ns2:criterion xsi:type="ns2:Location">
                    <ns2:id>XXXX</ns2:id>
                </ns2:criterion>
            </operand>
        </operations>
    </mutate>
</soapenv:Body>


Let me know if this helps.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3a8d4e4c-b2de-484f-a07f-1b200576f9c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to implement... 18824261965
    • Re: How to ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
    • Re: How to ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum

Reply via email to