AI-generated Key Takeaways
-
Retrieves sub-account details using a GET request to a specified URL with platform and account IDs.
-
Requires an empty request body and returns an "Account" object upon successful execution.
-
Needs authorization with either "adsense" or "adsense.readonly" OAuth scopes.
-
URL format follows gRPC Transcoding syntax with path parameters for platform and account identification.
Gets information about the selected sub-account.
HTTP request
GET https://adsenseplatform.googleapis.com/v1/{name=platforms/*/accounts/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. Account to get information about. Format: platforms/{platform}/accounts/{account_id} |
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Account
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/adsense
https://www.googleapis.com/auth/adsense.readonly