updating shared fields in price extension

22 views
Skip to first unread message

gil magali

unread,
Mar 15, 2018, 4:29:04 PM3/15/18
to AdWords API Forum
Hi

If i want to update 1 of the shared fields [TYPE ,PRICE_QUALIFIER ,TRACKING TEMPLATE , LANGUAGE ... ] of specific price extension throw API then i need to return all the table row item also otherwise they will be deleted?

in this section its said "To prevent the new settings from overwriting the old settings, remember to send back all feed items, even if you're modifying just one item."

so my question is if im changing any field i need to return all feed items? or for example not using priceFeedItem.setTableRows() will keep my old table rows.


Thanks 
Gil

Peter Oliquino

unread,
Mar 16, 2018, 2:32:31 AM3/16/18
to AdWords API Forum
Hi Gil,

Yes, as the guide suggested, you will need first to retrieve all your extensions using the get method. Then, you will need to identify the specific feedItem which attributes you wish to update and apply the changes. Afterwards, you will need to include all those other feedItems (along with their attributes) in your request so that all of them will be retained.

As stated here, the mutate operations for both the ADD and SET operators are already treated identically. So, if you pass only one feedItem in your mutate request, only that specific feedItem will remain. Let me know if this helps and if you require more information.

Best regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages