AI-generated Key Takeaways
-
The
lookupmethod retrieves information about a sub-account using itscreationRequestId. -
This method requires either the
https://www.googleapis.com/auth/adsenseorhttps://www.googleapis.com/auth/adsense.readonlyOAuth scope for authorization. -
The request uses a
GETHTTP method and includes aparentpath parameter specifying the platform. -
The response, if successful, contains a JSON object with the account's
name.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Looks up information about a sub-account for a specified creationRequestId. If no account exists for the given creationRequestId, returns 404.
HTTP request
GET https://adsenseplatform.googleapis.com/v1/{parent=platforms/*}/accounts:lookup
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. Platform who parents the account. Format: platforms/{platform} |
Query parameters
| Parameters | |
|---|---|
creationRequestId |
Optional. The creationRequestId provided when calling createAccount. |
Request body
The request body must be empty.
Response body
Response definition for the lookup account rpc.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "name": string } |
| Fields | |
|---|---|
name |
The name of the Account Format: platforms/{platform}/accounts/{account_id} |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonly