FeedMappings - modifying feed to include SitelinkDescriptionLine1 and 2

87 views
Skip to first unread message

Giles Bodger

unread,
Feb 22, 2016, 12:27:57 PM2/22/16
to AdWords API Forum
HI all,

For about a year, we had FeedMappings for our sitelinks that supported SitelinkText and Url. Then we migrated to using FinalUrls. Now we are trying to add the SitelinkDescriptionLine1 and 2 into our feeds.

When the Auto migration happened for Final Urls, we found that we had half of our Feeds migrated to include all possible sitelink placeholder fields - which was great. For some reason though, we migrated the other half ourselves, but with those we only added the mapping required at the time.

So, those feeds that we migrated ourselves, did not have the SitelinkDescriptionLine1 and 2 as attributes, and now i am looking to add those

My work flow is the following.

1. Add the Feed Attributes to a Feed that requires them
2. Remove the current FeedMapping for that Feed
3. Add a new FeedMapping that includes the references to the placeholder constants for SitelinkDescriptionLine1 and 2

If i do this then any feed item that was originally allowed within the feed, should STILL be allowed, AND we can now start adding FeedItems containing the SitelinkDescriptionLine1 and 2 fields 

However,   am seeing an error for which i have no idea how to resolve

FeedMappingError.CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED, FieldPath: operations[0].operand

I have no idea what a "Typed" feed is nor can i find any documentation anywhere that tells me what one is - all i can find is a page that tells me the errors i may encounter when using the feedmapping service 


So firstly could you tell me if this is the right way to go about adding SitelinkDescriptionLine1 to our feeds 
and secondly just what is a Typed feed ???

many thanks

Giles






Yin Niu

unread,
Feb 22, 2016, 1:02:19 PM2/22/16
to AdWords API Forum
Hi Giles,

You can update sitelink feedItems using CampaignExtensionSettingService

Thanks,
Yin, AdWords API Team. 

Giles Bodger

unread,
Feb 22, 2016, 1:25:21 PM2/22/16
to AdWords API Forum
Hi Yin - i am not sure you read the question fully - i am trying to add The SitelinkDescriptionLine1 and 2 to items that i am going to add to a feed.

If the feed doesnt have a feedmapping that states what feed attribute is to be used to map to the field id of the sitelink placeholder (https://developers.google.com/adwords/api/docs/appendix/placeholders - look for Line1 and Line2 where it talks about Sitelinks)  - then i dont think that i can add the Feed Item to my feed - in fact i get an error when adding to the feed

Yin Niu

unread,
Feb 22, 2016, 2:06:49 PM2/22/16
to AdWords API Forum
Hi Giles, 

You are getting the FeedMappingError.CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED because the sitelink placeholder type is for the SITELINK feed type. Please take a look at the extension setting service migration steps. You will have to delete the old custom feeds and then use the extension setting service to create new SiteLinkFeedItems. 

Shin Ucla

unread,
May 5, 2016, 2:48:27 PM5/5/16
to AdWords API Forum
HI Yin,

We are running into the same issue as well. We are using our own sitelink feed, and we need to update the feedMapping to include the additional fields for line1 and line2. The documentation says that we can use SET operation to update FeedMapping, but we received an API error when we used it. Can we use SET operation to update FeedMapping or does it have to be deleted and recreated? 

Thanks!

Shwetha Vastrad (AdWords API Team)

unread,
May 5, 2016, 3:50:06 PM5/5/16
to AdWords API Forum
Hi Shin,

The mutate method of FeedMappingService supports only the ADD and REMOVE operators. If you use the SET operator, you would encounter an OperatorError. You would have to create a new feed with the updated information and delete the old one. 

I hope this helps. 

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