How to set CampaignTargetingCriteria for entire "US"

172 views
Skip to first unread message

Ananth Garre

unread,
Jul 30, 2019, 6:27:08 PM7/30/19
to AdWords API and Google Ads API Forum
Hi,
   We are using AddCampaignTargetingCriteria.java to target Campaigns for required GeoLocation, however it's not clear how do we target to a specific country, as in I want to set Targeting location for a campaign to US (as shown in screenshot below) but through google ads API. 

Google Ads API Forum Advisor Prod

unread,
Jul 31, 2019, 3:42:22 AM7/31/19
to adwor...@googlegroups.com

Hi Ananth,

Thanks for posting your concern.

Could you confirm first if your concern is related AdWords API? If yes, with regard to the sample code in the provided link, you may use the CampaignCriterionService.mutate() to create a location type criterion. Then specify the criteria country code (country code for 'US' is '2840') of location that you want to target. You may refer to this link to see the complete list of the locations that you can target for your campaign.

Additionally, you may refer to this documentation to know how to make API call for targeting specific location. Let me know if there is unclear on the document that I suggested so I can provide further support.

Regards,
Ejay
Google Ads API Team



ref:_00D1U1174p._5001UEHF2A:ref
Reply all
Reply to author
Forward
0 new messages