Method: termsOfService.accept
Accepts a TermsOfService
. Executing this method requires admin access.
HTTP request
GET https://merchantapi.googleapis.com/accounts/v1beta/{name=termsOfService/*}:accept
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. The resource name of the terms of service version. Format: termsOfService/{version}
|
Query parameters
Parameters |
account |
string
Required. The account for which to accept the ToS.
|
regionCode |
string
Required. Region code as defined by CLDR. This is either a country when the ToS applies specifically to that country or 001 when it applies globally.
|
Request body
The request body must be empty.
Response body
If successful, the response body is an empty JSON object.
Authorization scopes
Requires the following OAuth scope:
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-23 UTC.
[null,null,["Last updated 2025-01-23 UTC."],[[["This document outlines how to accept the Terms of Service (ToS) for a specific account using the provided HTTP request format."],["It details the required path and query parameters, including the ToS version, account, and region code."],["The request body should be empty, and a successful response results in an empty JSON object."],["Admin access and authorization with the `https://www.googleapis.com/auth/content` scope are necessary to execute this request."]]],["This API method accepts a Terms of Service agreement. It utilizes a `GET` HTTP request with a specific URL structure defined by gRPC Transcoding. The `name` path parameter indicates the terms of service version, and the query parameters include the `account` and `regionCode`. Admin access is required. The request body must be empty. Upon successful execution, it returns an empty JSON object. The `content` OAuth scope is needed for authorization. The \"Try it!\" functionality is available.\n"]]