Method: platforms.accounts.close

  • This endpoint allows you to close a sub-account using an HTTP POST request to a specified URL.

  • You need to provide the account's platform and ID as path parameters in the request URL.

  • The request body should be empty, and a successful operation results in an empty response body.

  • Authorization requires the https://www.googleapis.com/auth/adsense OAuth scope.

Closes a sub-account.

HTTP request

POST https://adsenseplatform.googleapis.com/v1/{name=platforms/*/accounts/*}:close

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Account to close. Format: platforms/{platform}/accounts/{account_id}

Request body

The request body must be empty.

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

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