Method: accounts.credentials.create

Uploads credentials for the Merchant Center account. If credentials already exist for this Merchant Center account and purpose, this method updates them.

HTTP request

POST https://shoppingcontent.googleapis.com/content/v2.1/accounts/{accountId}/credentials

Path parameters

Parameters
accountId

string (int64 format)

Required. The merchant id of the account these credentials belong to.

Request body

The request body contains an instance of AccountCredentials.

Response body

If successful, the response body contains a newly created instance of AccountCredentials.

Authorization scopes

Requires one of the following OAuth scopes:

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

For more information, see the OAuth 2.0 Overview.