Looking for Location and Language while creating Campaign using PHP library

33 views
Skip to first unread message

Bilal Iqbal

unread,
Oct 20, 2017, 9:12:02 AM10/20/17
to AdWords API Forum
Hi, 
I have been using Google PHP library and trying to create Campaigns, Adgroups and Ads using this example. Now the issue is I also want to send Location and Language along with my Campaign, but as given in these example for creating Campaign I am unable to find anything related to adding Location or Language. Neither I got anything in Campaign class as well. 

I am using library version v201708.

Please help me so I can add them as well, while creating campaign. I am using Batch operation to create all of them using one of the batch example given in PHP library.

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Oct 20, 2017, 12:53:26 PM10/20/17
to AdWords API Forum
Hi Bilal, 

You can refer to the AddCompleteCampaignsUsingBatchJob sample in PHP to add the complete campaign using the batch job. To add the Location and Language campaign criteria please refer to Add targeting criteria to a campaign sample. Please give it a try and let me know how it goes. 

Thanks,
Sreelakshmi, AdWords API Team
Reply all
Reply to author
Forward
0 new messages