is there a way to fetch all campaigns with adgroups?

15 views
Skip to first unread message

Ken Dan Tinio

unread,
Jan 17, 2018, 2:32:07 AM1/17/18
to AdWords API Forum
I want to fetch all campaigns along its adgroups in one API request.

Luis Xander Talag (AdWords API Team)

unread,
Jan 17, 2018, 4:09:19 AM1/17/18
to AdWords API Forum
Hi Ken,

You may try to use the AdGroupService.get() or Adgroup Performance Report to retrieve all the ad groups with their corresponding campaigns. Though you may get limited fields for the campaigns for both service and report. You may check this guide for the available fields using the AdGroupService, sample code in PHP, reporting guide and sample reporting in PHP for referencesIf the fields that you are looking for in a campaign are not available in the ad group level, then you need to create another request to get these fields via CampaignService.get() or in Campaign Performance Report.

Hope this helps!

Thanks and regards,
Luis
AdWords API Team 
Reply all
Reply to author
Forward
0 new messages