AI-generated Key Takeaways
- 
          The webpage lists ad units under a specified AdMob account using an HTTP GET request. 
- 
          The request requires a parentpath parameter specifying the account resource name.
- 
          Optional query parameters like pageSizeandpageTokencan control the number of results and pagination.
- 
          The response body contains an array of ad unit objects and an optional nextPageTokenfor continuation.
- 
          The request requires specific OAuth authorization scopes, either for monetization or read-only access. 
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Examples
- Try it!
List the ad units under the specified AdMob account.
HTTP request
GET https://admob.googleapis.com/v1beta/{parent=accounts/*}/adUnits
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| parent | 
 Required. Resource name of the account to list ad units for. Example: accounts/pub-9876543210987654 | 
Query parameters
| Parameters | |
|---|---|
| pageSize | 
 The maximum number of ad units to return. If unspecified or 0, at most 10,000 ad units will be returned. The maximum value is 20,000; values above 20,000 will be coerced to 20,000. | 
| pageToken | 
 The value returned by the last  | 
Request body
The request body must be empty.
Response body
Response for the ad units list request.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "adUnits": [
    {
      object ( | 
| Fields | |
|---|---|
| adUnits[] | 
 The resulting ad units for the requested account. | 
| nextPageToken | 
 If not empty, indicates that there may be more ad units for the request; this value should be passed in a new  | 
Authorization scopes
Requires one of the following OAuth scopes:
- https://www.googleapis.com/auth/admob.monetization
- https://www.googleapis.com/auth/admob.readonly
For more information, see the OAuth 2.0 Overview.