Method: accounts.adclients.adunits.get
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 |
string
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/adsense
https://www.googleapis.com/auth/adsense.readonly
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."],[[["Retrieves information for a specific ad unit within a given account and ad client."],["Requires an HTTP GET request specifying the account, ad client, and ad unit using a defined URL structure."],["The request body should be empty, and a successful response includes details about the ad unit."],["Authorization is necessary using specific OAuth scopes associated with AdSense access."]]],[]]