API to retrieve a list of AdUnit objects.
HTTP request
GET https://admanager.googleapis.com/v1/{parent}/adUnits
Path parameters
Parameters | |
---|---|
parent |
Required. The parent, which owns this collection of AdUnits. Format: |
Query parameters
Parameters | |
---|---|
pageSize |
Optional. The maximum number of AdUnits to return. The service may return fewer than this value. If unspecified, at most 50 ad units will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
filter |
Optional. Expression to filter the response. See syntax details at https://developers.google.com/ad-manager/api/beta/filters |
orderBy |
Optional. Expression to specify sorting order. See syntax details at https://developers.google.com/ad-manager/api/beta/filters#order |
skip |
Optional. Number of individual resources to skip while paginating. |
Request body
The request body must be empty.
Response body
Response object for ListAdUnitsRequest containing matching AdUnit resources.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"adUnits": [
{
object ( |
Fields | |
---|---|
adUnits[] |
The AdUnit from the specified network. |
nextPageToken |
A token, which can be sent as |
totalSize |
Total number of AdUnits. If a filter was included in the request, this reflects the total number after the filtering is applied.
For more information, see https://developers.google.com/ad-manager/api/beta/field-masks |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/admanager
For more information, see the OAuth 2.0 Overview.