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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-21 UTC."],[[["\u003cp\u003eCloses a specified sub-account within the AdSense platform.\u003c/p\u003e\n"],["\u003cp\u003eRequires an empty request body and returns an empty response body upon successful completion.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes a \u003ccode\u003ePOST\u003c/code\u003e request to a specific URL with the sub-account's platform and ID as path parameters.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/adsense\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["The core actions involve closing a sub-account via a POST HTTP request to a specific URL: `https://adsenseplatform.googleapis.com/v1alpha/{name=platforms/*/accounts/*}:close`. The request requires a `name` path parameter, specifying the account to close in the format `platforms/{platform}/accounts/{account_id}`. The request body must be empty. A successful response will also have an empty body. Authorization requires the OAuth scope `https://www.googleapis.com/auth/adsense`.\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/v1alpha/{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`"]]