How to get the primary sitelink feed without parsing the name of the feed

34 views
Skip to first unread message

bitsmuggler

unread,
May 29, 2017, 8:31:53 AM5/29/17
to AdWords API Forum
Hi

Is there a chance via api to get the id of the primary sitelink feed without parsing the name?

Thanks in advance.

regards, patrick

Peter Oliquino

unread,
May 30, 2017, 12:21:30 AM5/30/17
to AdWords API Forum
Hi Patrick,

You may choose to retrieve the FeedId depending on the level you associated it to. For customer level, you may use the CustomerExtensionSettingService.get to get the FeedId of the SitelinkFeedItem. For campaign and adgroup level, you may use the CampaignExtensionSettingService.get (FeedId) and the AdGroupExtensionSettingService.get (FeedId) respectively. Let me know if this is what you need.

Best regards,
Peter
AdWords API Team

bitsmuggler

unread,
May 30, 2017, 2:20:21 AM5/30/17
to AdWords API Forum
Hi Peter

Thanks for your answer. Yes - but how can I get the FeedId if I don't know which of the feeds are the e.g. primary sitelink feed which was created by adwords?

Thanks.

Patrick

Peter Oliquino

unread,
May 30, 2017, 2:51:01 AM5/30/17
to AdWords API Forum
Hi Patrick,

My apologies if I misunderstood your concern. For this, you could use the FeedService.get to retrieve the feed's Id and you may also retrieve the Origin field to identify whether the feed was created by the User or by AdWords.

bitsmuggler

unread,
May 31, 2017, 4:56:41 AM5/31/17
to AdWords API Forum
Hi Peter

Thanks - I will try this way. Is there any scenario which could be two e.g. sitelink feeds with origin=adwords?

Regards, Patrick

Peter Oliquino

unread,
May 31, 2017, 5:54:09 AM5/31/17
to AdWords API Forum
Hi Patrick,

It seems that my colleague has already provided you with an answer in this similar thread. If you have any additional questions, please feel free to ask.
Reply all
Reply to author
Forward
0 new messages