Method: platforms.accounts.close
Stay organized with collections
Save and categorize content based on your preferences.
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 2024-08-21 UTC.
[null,null,["Last updated 2024-08-21 UTC."],[[["\u003cp\u003eThis endpoint allows you to close a sub-account using an HTTP POST request to a specified URL.\u003c/p\u003e\n"],["\u003cp\u003eYou need to provide the account's platform and ID as path parameters in the request URL.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should be empty, and a successful operation results in an empty response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/adsense\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["The core action is closing a sub-account via a POST request to a specific URL. The URL path is structured using gRPC Transcoding, requiring a `name` parameter indicating the account to close, formatted as `platforms/{platform}/accounts/{account_id}`. The request body must be empty. A successful operation results in an empty response body. The operation requires the `https://www.googleapis.com/auth/adsense` OAuth scope for authorization.\n"],null,["# Method: platforms.accounts.close\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCloses a sub-account.\n\n### HTTP request\n\n`POST https://adsenseplatform.googleapis.com/v1/{name=platforms/*/accounts/*}:close`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|-----------------------------------------------------------------------------------------|\n| `name` | `string` Required. Account to close. Format: platforms/{platform}/accounts/{account_id} |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/adsense`"]]