When creating complete campaigns with the BatchJobService, can I set a default locations?

16 views
Skip to first unread message

That Guy

unread,
Aug 8, 2016, 3:43:18 AM8/8/16
to AdWords API Forum
Hi everybody,

I'm creating multiple complete campaigns using the BatchJobService (C# Version: v201607) . When creating the campaigns and putting them in a operationlist, I'd like to pass an initial location along.
Unfortunately, I've only been able to find the option to add locations afterwards, when the campaigns already exist. If anybody could point me in the right direction, it would be much appreciated.

Side note: I do have the IDs of the locations available before I mutate the operationslist .

Thanks in advance!

Joyce Lava

unread,
Aug 8, 2016, 4:11:40 AM8/8/16
to AdWords API Forum, adword...@e-ss.nl
Hello,

Yes, you can use CampaignCriterionOperation to create location criteria in each campaign using BatchJobService. Please refer to this example code that shows how to add the BiddableAdGroupCriterion (highlighted line here) in the operations list. You could do the same to create CampaignCriterionOperation with criterion as Location and add it in the operations list. Hope this helps.

Best,
Joyce, AdWords API Team
Reply all
Reply to author
Forward
0 new messages