AI-generated Key Takeaways
-
This method gets an ad unit from a specified account and ad client using an HTTP GET request.
-
The URL uses gRPC Transcoding syntax and requires a
nameparameter specifying the account, ad client, and ad unit. -
The request body must be empty.
-
The response body contains an instance of
AdUnit. -
Authorization requires one of two specified OAuth scopes:
https://www.googleapis.com/auth/adsenseorhttps://www.googleapis.com/auth/adsense.readonly.
Gets an ad unit from a specified account and ad client.
HTTP request
GET https://adsense.googleapis.com/v2/{name=accounts/*/adclients/*/adunits/*}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name |
Required. AdUnit to get information about. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit} |
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of AdUnit.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/adsensehttps://www.googleapis.com/auth/adsense.readonly