Method: accounts.productInputs.insert

Uploads a product input to your Merchant Center account. If an input with the same contentLanguage, offerId, and dataSource already exists, this method replaces that entry.

After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved.

HTTP request

POST https://merchantapi.googleapis.com/products/v1beta/{parent=accounts/*}/productInputs:insert

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The account where this product will be inserted. Format: accounts/{account}

Query parameters

Parameters
dataSource

string

Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. Format: accounts/{account}/dataSources/{datasource}.

Request body

The request body contains an instance of ProductInput.

Response body

If successful, the response body contains an instance of ProductInput.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.