How do I get all ad groups with their extensions using campaign id?

22 views
Skip to first unread message

JC Lee

unread,
Mar 15, 2017, 3:48:35 PM3/15/17
to AdWords API Forum
I want to achieve something similar to AdWords UI's Campaign -> Ad extensions -> Callout extensions -> Ad group extensions where a table of ad groups and their extensions are displayed.

Therefore, I need to get all the ad groups with extensions in an API call. What's the most efficient way to do this?

AdGroupExtensionSettingService has no campaign id selector. 

Must I first get all the ad group ids and use those as the selector? This would require 2 separate calls one after the other which means it takes much longer to load.

Shwetha Vastrad (AdWords API Team)

unread,
Mar 15, 2017, 5:31:27 PM3/15/17
to AdWords API Forum
Hi,

Yes, you need to retrieve the AdGroupId in a previous request and use these Ids in a predicate in the AdGroupExtensionSettingService selector. If your extensions have non-zero impressions, you could try using the Placeholder Feed Item Report

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages