Method: accounts.merchantReviews.insert

  • This documentation outlines the process for inserting or replacing a Merchant Center account review using the Merchant Center API.

  • It involves sending a POST request to a specific endpoint with details about the review and the target account.

  • Required parameters include the account ID and the data source for the review.

  • The request and response bodies both utilize the MerchantReview object to structure the review data.

  • Authorization using OAuth 2.0 with the https://www.googleapis.com/auth/content scope is necessary for this operation.

Inserts a review for your Merchant Center account. If the review already exists, then the review is replaced with the new instance.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The account where the merchant review will be inserted. Format: accounts/{account}

Query parameters

Parameters
dataSource

string

Required. The data source of the merchantreview Format: accounts/{account}/dataSources/{datasource}.

Request body

The request body contains an instance of MerchantReview.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.