AI-generated Key Takeaways
-
Retrieves a list of AdUnitSize objects for a given network.
-
Allows filtering, sorting, and pagination of results using query parameters.
-
Requires authorization with the
https://www.googleapis.com/auth/admanager
scope. -
Response includes an array of AdUnitSizes, a token for pagination, and the total number of results.
-
Request body should be empty for this GET request.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
API to retrieve a list of AdUnitSize objects.
HTTP request
GET https://admanager.googleapis.com/v1/{parent}/adUnitSizes
Path parameters
Parameters | |
---|---|
parent |
Required. The parent, which owns this collection of AdUnitSizes. Format: |
Query parameters
Parameters | |
---|---|
pageSize |
Optional. The maximum number of AdUnitSizes to return. The service may return fewer than this value. If unspecified, at most 50 ad unit sizes will be returned. The maximum value is 1000; values greater than 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 ListAdUnitSizesRequest containing matching AdUnitSizes.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"adUnitSizes": [
{
object ( |
Fields | |
---|---|
adUnitSizes[] |
The AdUnitSizes from the specified network. |
nextPageToken |
A token, which can be sent as |
totalSize |
Total number of AdUnitSizes. 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.