Getting all adgroups regardless of campaign

11 views
Skip to first unread message

sz...@mymail.mines.edu

unread,
Jul 2, 2018, 1:10:00 PM7/2/18
to AdWords API and Google Ads API Forum
Hello,

The getadgroups.php example file pulls all the adgroups from a certain campaign, Im wondering if theres a way to get all the adgroups from an entire account regardless of the campaign.

Thanks,

Sean Zusi

Dhanya Sundararaju (AdWords API Team)

unread,
Jul 2, 2018, 3:06:08 PM7/2/18
to AdWords API and Google Ads API Forum
Hi Sean,

If you remove the predicate to filter by CampaignId in the selector, you will be able to get all AdGroups under that account. You can also use the AdGroup Peformance Report with fields as AdGroupId and AdGroupName and enable zero impressions to get the complete list of AdGroups. Please give it a try and let me know if you have any further questions.

Regards,
Dhanya, AdWords API Team

sz...@mymail.mines.edu

unread,
Jul 2, 2018, 3:48:35 PM7/2/18
to AdWords API and Google Ads API Forum
That worked perfectly! Thank you!
Reply all
Reply to author
Forward
0 new messages