Getting Type of AdWords Feed

80 views
Skip to first unread message

bitsmuggler

unread,
May 22, 2017, 3:24:10 PM5/22/17
to AdWords API Forum, Andreas Schürmann
Hi there

With the FeedService I'm getting the Feeds in the shared data.


FeedPage page = feedService.query(
"SELECT Id, Name, Attributes where FeedStatus='ENABLED' and Origin='ADWORDS'");

Is there a chance to get the type of the Feed without parsing the name of the feed?

For the Sitelink Feed I'm getting the following result:

Feed Name: Primärer Sitelink-Feed
FeedAttribute: SitelinkName 1 STRING
FeedAttribute: SitelinkUrl 2 URL
FeedAttribute: SitelinkDescription1 3 STRING
FeedAttribute: SitelinkDescription2 4 STRING
FeedAttribute: SitelinkFinalUrls 5 URL_LIST
FeedAttribute: SitelinkFinalMobileUrls 6 URL_LIST
FeedAttribute: SitelinkTrackingUrl 7 URL


Is there only one default Sitelink-Feed (created by AdWords)?

Thanks for your help.

Patrick



Shwetha Vastrad (AdWords API Team)

unread,
May 22, 2017, 5:00:17 PM5/22/17
to AdWords API Forum, an.sch...@gmail.com
Hi Patrick, 

Feeds which are managed by the system (Origin='ADWORDS') only support one feed per extension type. Only one feed mapping for a placeholder type is allowed per feed or customer and a feed mapping for a system generated feed cannot be operated on. You can use FeedMappingService to retrieve a list of FeedMappings for a particular pladeholderType. Please see this guide for the IDs of different placeholder types. 

Regards,
Shwetha, AdWords API Team.

bitsmuggler

unread,
May 27, 2017, 6:25:43 AM5/27/17
to AdWords API Forum, an.sch...@gmail.com
Hi Shwetha,

Thanks - that helped me.

Regards, Patrick
Reply all
Reply to author
Forward
0 new messages