Starting today, the Datafeeds service will allow you to use the Content API for Shopping to set up data feeds that target multiple countries and/or languages, which a recent update added to the Merchant Center. The update to the Datafeeds service will also allow you more control over the destinations for products in data feeds managed via the Content API.
What's changing?
To handle feeds that target multiple countries and/or languages, a new
The following now-redundant fields are being deprecated: Currently, code that uses these deprecated fields will continue to work as before for managing feeds with a single target. Any changes made via these deprecated fields will also appear as a single target in the new
To support feeds that have multiple targets, the Datafeedstatuses.get method now takes two additional parameters: These new parameters must be supplied for feeds that have multiple targets, since the status of a feed may differ depending on the target. These parameters can be omitted when retrieving the status of a feed with a single target.
Similarly, when retrieving all feed statuses using the Datafeedstatuses.list method, you will receive multiple entries for a feed with multiple targets, where each entry corresponds to a particular target.
What do I need to do?
To manage feeds that use any of the following features, you must update your code to use the new
Otherwise, your existing code will continue to work as before. However, since we may remove the old fields in the future, we recommend you update your code for managing data feeds to use the new
Note: To use the new
If you have any questions or feedback about the changes to data feed management or other questions about the Content API for Shopping, please let us know on the forum.
What's changing?
To handle feeds that target multiple countries and/or languages, a new
targets
field is being added. This field contains a list of targets, and each target contains the following fields: - country - the target country
- language - the content language for this target
- includedDestinations - a list of destinations to include for this target
- excludedDestinations - a list of destinations to exclude for this target
The following now-redundant fields are being deprecated: Currently, code that uses these deprecated fields will continue to work as before for managing feeds with a single target. Any changes made via these deprecated fields will also appear as a single target in the new
targets
field, and vice versa if the targets
field contains a single target. These deprecated fields will not be returned when retrieving feeds with multiple targets. Since these deprecated fields may be removed in the future, we recommend migrating your code to use the new targets
field now.To support feeds that have multiple targets, the Datafeedstatuses.get method now takes two additional parameters: These new parameters must be supplied for feeds that have multiple targets, since the status of a feed may differ depending on the target. These parameters can be omitted when retrieving the status of a feed with a single target.
Similarly, when retrieving all feed statuses using the Datafeedstatuses.list method, you will receive multiple entries for a feed with multiple targets, where each entry corresponds to a particular target.
What do I need to do?
To manage feeds that use any of the following features, you must update your code to use the new
targets
field: - Feeds that target multiple countries and/or languages
- Feeds that exclude destinations that are included by default
country
and language
parameters when retrieving the status of a feed that has multiple targets.Otherwise, your existing code will continue to work as before. However, since we may remove the old fields in the future, we recommend you update your code for managing data feeds to use the new
targets
field.Note: To use the new
targets
field and the new country
and language
parameters if you are using one of the Content API client libraries, update to a version published on or after Sep 21, 2017.If you have any questions or feedback about the changes to data feed management or other questions about the Content API for Shopping, please let us know on the forum.