Locations codes in creation campaign shopping

14 views
Skip to first unread message

Ruido Siri

unread,
Jun 12, 2018, 6:55:52 PM6/12/18
to AdWords API and Google Ads API Forum
hi, i need help with the locations fields in the creation of a shopping campaign.
I want set a country code, eg: "AR".

any idea? thanks

Teja Makani

unread,
Jun 12, 2018, 9:56:10 PM6/12/18
to AdWords API and Google Ads API Forum
Hello Ruido,

Using the API you can set the location targets using the CampaignCriterionService. Please check the AddCampaignTargetingCriteria sample in Java to understand how to add the location as targeting criteria. To set "AR" as the targeting location, you will need to use 2032 as the criteria Id instead of the criteria id in this code sample. To find the criteria id of locations, please use the Geotargets table. Please note that you may need to remove the other types of criterion from the code samples while working with the shopping campaign. Samples in other languages can also be found here. Please let me know if you have any additional questions. 

Regards,
Sai Teja, AdWords API Team.

Ruido Siri

unread,
Jun 13, 2018, 3:52:17 PM6/13/18
to AdWords API and Google Ads API Forum
Hi Sai, thanks a lot.
The answer was very useful.
Reply all
Reply to author
Forward
0 new messages