Placeholder Feed Item attributeValues Price extension currency codes

68 views
Skip to first unread message

Tiana S.

unread,
Oct 26, 2017, 7:34:36 AM10/26/17
to AdWords API Forum
Hi guys!

Just wondering how you can derive the currency code for Price extensions from the attributeValues in the Placeholder feed item report: https://developers.google.com/adwords/api/docs/appendix/reports/placeholder-feed-item-report#attributevalues

I found the Feed placeholders for the Price extension here: https://developers.google.com/adwords/api/docs/appendix/placeholders#price
There it states e.g. ID 102 is of type "Price" with a currency ("e.g,. 30 USD"). Checking the output however, it has ID 7 and looks as follows:
'7': {
   currency_code_
: [ 85, 83, 68 ],
   amount_micros_
: 60000000,
   optional_0_
: 3,
   isMutable
: true,
   cachedSize
: -1
}


As you can see the currency code property contains an Array with numeric values instead of a currency code such as USD.
I tried finding valid values for the returned values (e.g. 85), but I can't seem to find something to map it to.

Is this return value by design? And if so, how can I find the correct currency code for the values returned?

Thanks,

Tiana

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Oct 26, 2017, 11:50:50 AM10/26/17
to AdWords API Forum
Hi Tiana, 

Thanks for pointing this out. The Placeholder Feed Item report seems to be returning currency code as ASCII equivalent of the actual currency code listed here. E.g., "USA" would be "[85,83,68]" in the report. You could either have a logic in your application to convert the ASCII equivalent to the currency codes or use the FeedItemService.get() to get the attribute values corresponding to the FeedItem. In the meantime, I will check with the team to see if the reports can be updated to return the currency codes. 

Thanks,
Sreelakshmi, AdWords API Team

Tiana S.

unread,
Oct 27, 2017, 4:00:11 AM10/27/17
to AdWords API Forum
Hi Sreelakshmi,

Ah I see, thank you! Would indeed be great if they can update it to the actual currency codes instead of the ASCII variant. :)

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Oct 27, 2017, 10:50:44 AM10/27/17
to AdWords API Forum
Hi Tiana, 

I have already informed the team about this. Please follow our blog for any updates about the future releases. 
Reply all
Reply to author
Forward
0 new messages