FeedItemService.get() returns no policyData for Price Extensions

46 views
Skip to first unread message

Zweitze

unread,
Mar 22, 2017, 9:38:33 AM3/22/17
to AdWords API Forum
Using v201607, I call FeedItemService.get().
All feed items have policyData set, except the feed item that is a Price Extension.

I need the policyData to figure out which field is which.
I don't have logs of the HTTP-traffic, but I do have a recent requestID:
00054b51aed5ce380a37a009a8012863

Can someone take a look?

I have another question regarding Price Extensions:
Every price not only has a Final URL, but also a Mobile Final URL. However, the documentation on Feed Placeholders does not mention Mobile Final URLs.

Can this information be included?


Thanks in advance,
Zweitze de Vries

Shwetha Vastrad (AdWords API Team)

unread,
Mar 22, 2017, 3:29:33 PM3/22/17
to AdWords API Forum
Hi Zweitze, 

Could you confirm if you have included the value "PolicyData" in the selector for the FeedItemService.get() request? Could you also check if the UI displays any policy details for the Price Extensions which are missing the policyData in the response? The policyData may be missing when the FeedItem is pending review. 

Starting with AdWords API version v201702Mobile URLs support was added to price extensions. Thank you for pointing out that the Feed Placeholders reference page doesn't mention finalMobileUrls. I'll get in touch with the team to have the documents updated. You'll be able to retrieve the finalMobileUrls of your Price extension using the Extension Setting services in API version v201702.

Thanks,
Shwetha, AdWords API Team.

Zweitze

unread,
Mar 22, 2017, 3:51:43 PM3/22/17
to AdWords API Forum
Hi Shwetha,

You were right, the Feed Item was pending review and therefore had no policy data. Which somewhat sucks because I just need the field mappingId, which can only be found through policyData.
Now the item was approved and I got the policyData and its feedMappingId.

Thanks for pointing this out!

Shwetha Vastrad (AdWords API Team)

unread,
Mar 22, 2017, 5:16:31 PM3/22/17
to AdWords API Forum
Hi Zweitze, 

You could consider using FeedMappingService for this purpose. You'll be able to retrieve the FeedMappings and filter based on FeedId, PlaceholderType etc. in the selector to narrow down your results. 

Regards,
Shwetha Vastrad
AdWords API Team.

Zweitze

unread,
Mar 23, 2017, 10:53:44 AM3/23/17
to AdWords API Forum
Thanks for the suggestion.
It doesn't always work, some feeds have multiple mappings, and then you can't determine the right mapping for the item.

But in this case it works. Will add this to my code.
Reply all
Reply to author
Forward
0 new messages