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 sub-account details using a GET request to a specified URL with platform and account IDs.\u003c/p\u003e\n"],["\u003cp\u003eRequires an empty request body and returns an "Account" object upon successful execution.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with either "adsense" or "adsense.readonly" OAuth scopes.\u003c/p\u003e\n"],["\u003cp\u003eURL format follows gRPC Transcoding syntax with path parameters for platform and account identification.\u003c/p\u003e\n"]]],["The core content describes how to retrieve information about a specific sub-account. A `GET` request is sent to a URL structured using gRPC Transcoding syntax: `https://adsenseplatform.googleapis.com/v1/{name=platforms/*/accounts/*}`. The `name` path parameter, specifying the account, is mandatory, and the request body must be empty. Successful requests return an `Account` instance in the response body. Authorization requires either the `adsense` or `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/v1/{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/v1/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`"]]