Method: platforms.accounts.get
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\u003eRetrieves detailed data on a specified AdSense sub-account.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes a \u003ccode\u003eGET\u003c/code\u003e request sent to a structured URL including platform and account identifiers.\u003c/p\u003e\n"],["\u003cp\u003eRequires an empty request body and returns an \u003ccode\u003eAccount\u003c/code\u003e object with the sub-account's information upon success.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with either \u003ccode\u003eadsense\u003c/code\u003e or \u003ccode\u003eadsense.readonly\u003c/code\u003e OAuth scopes for access.\u003c/p\u003e\n"]]],["The core content describes how to retrieve information about a specific sub-account. A `GET` request is sent to the provided URL, using the required `name` path parameter, which specifies the account in the format `platforms/{platform}/accounts/{account_id}`. The request body must be empty. A successful response will contain an instance of the `Account` resource. Authorization requires either `https://www.googleapis.com/auth/adsense` or `https://www.googleapis.com/auth/adsense.readonly` OAuth scope.\n"],null,["# Method: platforms.accounts.get\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\nGets information about the selected sub-account.\n\n### HTTP request\n\n`GET https://adsenseplatform.googleapis.com/v1alpha/{name=platforms/*/accounts/*}`\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 get information about. 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 contains an instance of [Account](/adsense/platforms/reference/rest/v1alpha/platforms.accounts#Account).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/adsense`\n- `\n https://www.googleapis.com/auth/adsense.readonly`"]]