AI-generated Key Takeaways
-
Creates a new, unassigned label within a specified Google Merchant Center account.
-
Requires a POST request to a specific endpoint with the parent account in the URL.
-
Includes an
AccountLabel
object in the request body, defining the label properties. -
Returns the newly created
AccountLabel
object in the response if successful. -
Needs authorization with the
https://www.googleapis.com/auth/content
scope.
Creates a new label, not assigned to any account.
HTTP request
POST https://css.googleapis.com/v1/{parent=accounts/*}/labels
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent account. Format: accounts/{account} |
Request body
The request body contains an instance of AccountLabel
.
Response body
If successful, the response body contains a newly created instance of AccountLabel
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.