- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Accepts a TermsOfService
. Executing this method requires admin access.
HTTP request
POST https://merchantapi.googleapis.com/accounts/v1beta/{name=termsOfService/*}:accept
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The resource name of the terms of service version. Format: |
Query parameters
Parameters | |
---|---|
account |
Required. The account for which to accept the ToS. Format: |
regionCode |
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
Response message for the termsOfService.accept
method.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"termsOfServiceAgreementState": {
object ( |
Fields | |
---|---|
termsOfServiceAgreementState |
The agreement state after accepting the ToS. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.