Skip to main content

datafeeds

Overview

Namedatafeeds
TypeResource
Idgoogledevelopers.content.datafeeds

Fields

NameDatatypeDescription
idstringRequired for update. The ID of the data feed.
namestringRequired for insert. A descriptive name of the data feed.
attributeLanguagestringThe two-letter ISO 639-1 language in which the attributes are defined in the data feed.
contentTypestringRequired. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - "local products" - "product inventory" - "products"
formatobject
fileNamestringRequired. The filename of the feed. All feeds must have a unique file name.
targetsarrayThe targets this feed should apply to (country, language, destinations).
kindstringIdentifies what kind of resource this is. Value: the fixed string "content#datafeed"
fetchScheduleobjectThe required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatafeedId, merchantIdRetrieves a datafeed configuration from your Merchant Center account.
listSELECTmerchantIdLists the configurations for datafeeds in your Merchant Center account.
insertINSERTmerchantIdRegisters a datafeed configuration with your Merchant Center account.
deleteDELETEdatafeedId, merchantIdDeletes a datafeed configuration from your Merchant Center account.
custombatchEXECDeletes, fetches, gets, inserts and updates multiple datafeeds in a single request.
updateEXECdatafeedId, merchantIdUpdates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.