adgroup id,adgroup name,campaign id,campaign name in getkeywords api

16 views
Skip to first unread message

Bhairavi

unread,
Feb 2, 2018, 6:54:37 AM2/2/18
to AdWords API Forum
Hi,

Can i get adgroup id,adgroup name,campaign id,campaign name from GetKeywords API in php?

Thanks ,
Bhairavi

Milind Sankeshware (AdWords API Team)

unread,
Feb 2, 2018, 3:00:26 PM2/2/18
to AdWords API Forum
Hi Bhairavi,

The GetKeywords sample uses AdGroupCriterionService. You will be able to get adGroup id from the AdGroupCriterionService.get() API call. You can then retrieve adGroup namecampaign id and campaign name using AdGroupService.get() by filtering with the AdGroupId. You will need to specify the fieldsthat you wish to have in your API response in the selector. 

Let me know if have any further questions.

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