Datafeedstatuses: custombatch

Requires authorization

Gets multiple Merchant Center datafeed statuses in a single request. Try it now.

Request

HTTP request

POST https://www.googleapis.com/content/v2.1/datafeedstatuses/batch

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/content

Request body

In the request body, supply data with the following structure:

{
  "entries": [
    {
      "batchId": unsigned integer,
      "merchantId": unsigned long,
      "method": string,
      "datafeedId": unsigned long,
      "country": string,
      "language": string
    }
  ]
}
Property name Value Description Notes
entries[] list The request entries to be processed in the batch.
entries[].batchId unsigned integer An entry ID, unique within the batch request.
entries[].merchantId unsigned long The ID of the managing account.
entries[].method string

Acceptable values are:
  • "get"
entries[].datafeedId unsigned long The ID of the data feed to get.
entries[].country string The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that for multi-target datafeeds this parameter is required.
entries[].language string The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that for multi-target datafeeds this parameter is required.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "content#datafeedstatusesCustomBatchResponse",
  "entries": [
    {
      "batchId": unsigned integer,
      "datafeedStatus": datafeedstatuses Resource,
      "errors": {
        "errors": [
          {
            "domain": string,
            "reason": string,
            "message": string
          }
        ],
        "code": unsigned integer,
        "message": string
      }
    }
  ]
}
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "content#datafeedstatusesCustomBatchResponse".
entries[] list The result of the execution of the batch requests.
entries[].batchId unsigned integer The ID of the request entry this entry responds to.
entries[].datafeedStatus nested object The requested data feed status. Defined if and only if the request was successful.
entries[].errors nested object A list of errors defined if and only if the request failed.
entries[].errors.errors[] list A list of errors.
entries[].errors.errors[].domain string The domain of the error.
entries[].errors.errors[].reason string The error code.
entries[].errors.errors[].message string A description of the error.
entries[].errors.code unsigned integer The HTTP status of the first error in errors.
entries[].errors.message string The message of the first error in errors.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Enviar comentarios sobre…

Content API for Shopping