Seeing incorrect AttributeValues for PlaceholderFeedItemReport

27 views
Skip to first unread message

Matthew Macchia

unread,
Jul 12, 2017, 7:49:37 AM7/12/17
to AdWords API Forum
Using the Java API (v201705) we run the PlaceholderFeedItemReport and grab the attribute values to sync up the site link details.
However, we're seeing a problem where the attribute values are in the wrong order. Often, coming back with different indexes.

According to this document:

We should get back FinalUrls as index 5 and line2 as index 3, etc. and here you can see they are in the incorrect position.
Problem converting descriptive text, placeholderType: Sitelink, attributeValues=[1->Contact Us,3->[http://www.smile-clinic.co.uk/contact-us/],5->Contact Us Information Details,6->Page.]

I have seen it recently where we'll get back the finalUrls as index 8. 

We're seeing thousands of these a night.

Am I looking at the wrong field mapping? How can we rely on know what field is what?
Thanks
matt

Shwetha Vastrad (AdWords API Team)

unread,
Jul 12, 2017, 1:15:10 PM7/12/17
to AdWords API Forum
Hi Matt, 

Although the FieldId 5 represents the Final Url of a sitelink, it doesn't necessarily mean that FeedAttributeId 5 will contain that information. The Attribute's ID could be a random number and is useful in uniquely identifying the attribute when you set up the feed's mapping. This mapping is the one that uses the Placeholder IDs as mentioned on the page that is linked. You need to use FeedMappingService.get() to get the FeedMapping associated with your Feed. The FeedMapping represents a mapping between between feed attributes in a specific feed and placeholder fields for a specific placeholder type. In this particular case, your Feed should have a mapping between feedAttributeId 8 and fieldId 5.

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