Page Summary
-
The API allows retrieval of a list of
CustomFieldobjects using an HTTP GET request. -
The API requires a
parentpath parameter to specify the network from which to retrieve the custom fields. -
Optional query parameters like
pageSize,pageToken,filter,orderBy, andskipcan be used to refine the list of custom fields returned. -
The request body for this API call must be empty.
-
The response body contains a list of
CustomFieldobjects, anextPageTokenfor pagination, and thetotalSizeof the results.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
API to retrieve a list of CustomField
objects.
HTTP request
GET https://admanager.googleapis.com/v1/{parent}/customFields
Path parameters
| Parameters | |
|---|---|
parent
|
Required. The parent, which owns this collection of CustomFields. Format: |
Query parameters
pageSize
integer
Optional. The maximum number of CustomFields
to return. The service may return fewer than this value. If unspecified, at most 50 CustomFields
will be returned. The maximum value is 1000; values greater than 1000 will be coerced to 1000.
pageToken
string
Optional. A page token, received from a previous customFields.list
call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to customFields.list
must match the call that provided the page token.
filter
string
Optional. Expression to filter the response. See syntax details at https://developers.google.com/ad-manager/api/beta/filters
Filterable fields:
-
dataType -
description -
displayName -
entityType -
name -
options.customFieldOptionId -
options.displayName -
status -
visibility
orderBy
string
Optional. Expression to specify sorting order. See syntax details at https://developers.google.com/ad-manager/api/beta/filters#order
skip
integer
Optional. Number of individual resources to skip while paginating.
Request body
The request body must be empty.
Response body
Response object for ListCustomFieldsRequest
containing matching CustomField
objects.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"customFields"
:
[
{
object (
|
| Fields | |
|---|---|
customFields[]
|
The |
nextPageToken
|
A token, which can be sent as |
totalSize
|
Total number of For more information, see https://developers.google.com/ad-manager/api/beta/field-masks |
Authorization scopes
Requires one of the following OAuth scopes:
-
https://www.googleapis.com/auth/admanager -
https://www.googleapis.com/auth/admanager.readonly
For more information, see the OAuth 2.0 Overview .

