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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-30 UTC.
[null,null,["Last updated 2025-01-30 UTC."],[[["This operation uploads or updates Merchant Center account credentials using an HTTP POST request."],["It requires an `accountId` as a path parameter to specify the merchant account."],["The request body should contain AccountCredentials data, as detailed in the provided link."],["Successful execution results in a response containing the updated AccountCredentials."],["Authorization requires the `https://www.googleapis.com/auth/content` scope."]]],[]]