Hello Man,

I see that you're looking to exclude the Location criteria. You may use the
CampaignCriterionService.mutate()
<https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService#mutate> operation
with isNegative field set to true to set the negative criteria. You may
refer to the AddCampaignTargetingCriteria
<https://developers.google.com/adwords/api/docs/samples/java/targeting#add-targeting-criteria-to-a-campaign> code
sample in Java as a reference to exclude criteria. Code samples in other
languages can be found here
<https://developers.google.com/adwords/api/docs/clientlibraries>. The code
sample illustrates on how to add keyword as negative criteria. Please find
sample logs below as a reference.

Request:
<operations>
<operator>ADD</operator>
<operand xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201806";
xsi:type="ns6:NegativeCampaignCriterion">
<ns6:campaignId>1581311984</ns6:campaignId>
<ns6:criterion xsi:type="ns6:Location">
<ns6:id>2484</ns6:id>
</ns6:criterion>
</operand>
</operations>

Response:
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:type="NegativeCampaignCriterion">
<campaignId>1581311984</campaignId>
<isNegative>true</isNegative>
<criterion xsi:type="Location">
<id>2484</id>
<type>LOCATION</type>
<Criterion.Type>Location</Criterion.Type>
<locationName>Mexico</locationName>
<displayType>Country</displayType>
<targetingStatus>ACTIVE</targetingStatus>
</criterion>
<CampaignCriterion.Type>NegativeCampaignCriterion</CampaignCriterion.Type>

If this does not address your concern, could you please share a screenshot
of the Google Ads UI?

Thanks,
Bharani, AdWords API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 01/23/19 10:44:27 manmohanmishr...@gmail.com wrote:


Hi,
How can I access the options of *Exclude* under the Locations option in
campaigns through the API ?
Like I'm trying to set *Exclude* as "People in, or who show interest in,
your excluded locations".

Cheers,
Man

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@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
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to adwords-api+unsubscr...@googlegroups.com.
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/58b0785c-3bd8-4380-b5df-075bf8b200b2%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/58b0785c-3bd8-4380-b5df-075bf8b200b2%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@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
--- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
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/00d12i8id80000008j5m2k000adrsmw6gmj6dpk6ko30c1g68q3gc9o%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Campaig... Man Mohan Mishra
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Man Mohan Mishra
        • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to