Hello Roger, 

You can target campaigns to a specific region, which can be a geographical 
region based on the location targeting. Each targetable location is 
uniquely identified by the Criterion ID. You will have to use the 
CampaignCriterionService 
<https://developers.google.com/adwords/api/docs/reference/v201710/CampaignCriterionService.CampaignCriterionOperation>
 with 
the criterion 
<https://developers.google.com/adwords/api/docs/reference/v201710/CampaignCriterionService.Criterion>
 type 
as Location 
<https://developers.google.com/adwords/api/docs/reference/v201710/CampaignCriterionService.Location>.
 
In the Location object, you can set the ID of the criteria (for USA, the 
location ID is 2840) based on the targeting table 
<https://developers.google.com/adwords/api/docs/appendix/geotargeting>. To 
exclude geo targets, you can use NegativeCampaignCriterion 
<https://developers.google.com/adwords/api/docs/reference/v201710/CampaignCriterionService.NegativeCampaignCriterion>.
 
You may refer to this guide 
<https://developers.google.com/adwords/api/docs/guides/location-targeting> and 
the code snippet 
<https://developers.google.com/adwords/api/docs/guides/location-targeting#geo_target_campaigns_for_a_region>
 for 
additional guidance. You can also refer to the code sample in Java here 
<https://developers.google.com/adwords/api/docs/samples/java/targeting#add-targeting-criteria-to-a-campaign>.
 
Code samples in other languages are available here 
<https://developers.google.com/adwords/api/docs/clientlibraries>.

Regards,
Bharani, AdWords API Team

On Thursday, October 12, 2017 at 6:38:51 AM UTC-4, [email protected] 
wrote:
>
> How to target location across campaigns adwords api? I am creating my 
> campaign using campaignService.. The newly created campaign location is 
> always 
> All countries and territories, I want it to be United States.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0812e2ad-1ae2-428d-852f-540b07c81253%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to target... roger
    • Re: How ... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum

Reply via email to