get sitelinks for all adgroups for a given campaign (java)

14 views
Skip to first unread message

Geofrey F

unread,
Jan 13, 2020, 3:48:54 PM1/13/20
to AdWords API and Google Ads API Forum
Is there an easier way to fetch all sitelinks for a given campaign on both campaign and ad-group level? 

currently we're doing a few things:
- fetch all campaign-level sitelinks using CampaignExtensionSettingService
- fetch all adgroups for a given campaign using CampaignService
- for each adgroup fetch sitelinks using AdgroupExtensionSettingService

 just looking to see if there's a more efficient way of doing this.

Geofrey F

unread,
Jan 13, 2020, 3:53:48 PM1/13/20
to AdWords API and Google Ads API Forum
Just to add I noticed that there is an AdGroupFeedService that can give you feed items for a given campaign, but not sure if this API would return sitelinks, and if it does, how to filter to process sitelinks only.

Google Ads API Forum Advisor Prod

unread,
Jan 13, 2020, 4:11:54 PM1/13/20
to geofre...@gmail.com, adwor...@googlegroups.com

Hi Geofrey,

Thank you for reaching out to us. Unfortunately there is no way to fetch all sitelinks on both the campaign and ad-group level. The AdGroupFeedService will return a list of AdGroupFeeds, which is used to link a feed to an adgroup. Fields returned include feedId, adGroupId, matchingFunction, placeholderTypes, Status, baseCampaignId, and baseAdGroupId. Please let me know if you have further questions.

Thank you,
Bryan, Google Ads API Team

ref:_00D1U1174p._5001USwLxR:ref
Reply all
Reply to author
Forward
0 new messages