Method: networks.customFields.batchUpdate
Stay organized with collections
Save and categorize content based on your preferences.
API to batch update CustomField
objects.
HTTP request
POST https://admanager.googleapis.com/v1/{parent}/customFields:batchUpdate
Path parameters
Parameters |
parent |
string
Required. The parent resource where CustomFields will be updated. Format: networks/{networkCode} The parent field in the UpdateCustomFieldRequest must match this field.
|
Request body
The request body contains data with the following structure:
Fields |
requests[] |
object (UpdateCustomFieldRequest )
Required. The CustomField objects to update. A maximum of 100 objects can be updated in a batch.
|
Response body
Response object for customFields.batchUpdate
method.
If successful, the response body contains data with the following structure:
JSON representation |
{
"customFields": [
{
object (CustomField )
}
]
} |
Fields |
customFields[] |
object (CustomField )
The CustomField objects updated.
|
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/admanager
For more information, see the OAuth 2.0 Overview.
UpdateCustomFieldRequest
Request object for customFields.patch
method.
JSON representation |
{
"customField": {
object (CustomField )
},
"updateMask": string
} |
Fields |
customField |
object (CustomField )
Required. The CustomField to update. The CustomField 's name is used to identify the CustomField to update.
|
updateMask |
string (FieldMask format)
Required. The list of fields to update. This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo" .
|
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 2025-09-05 UTC.
[null,null,["Last updated 2025-09-05 UTC."],[],[],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.BatchUpdateCustomFieldsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [UpdateCustomFieldRequest](#UpdateCustomFieldRequest)\n - [JSON representation](#UpdateCustomFieldRequest.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nAPI to batch update `CustomField` objects.\n\nHTTP request\n\n`POST https://admanager.googleapis.com/v1/{parent}/customFields:batchUpdate`\n\nPath parameters\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent resource where `CustomFields` will be updated. Format: `networks/{networkCode}` The parent field in the UpdateCustomFieldRequest must match this field. |\n\nRequest body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requests\": [ { object (/ad-manager/api/beta/reference/rest/v1/networks.customFields/batchUpdate#UpdateCustomFieldRequest) } ] } ``` |\n\n| Fields ||\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requests[]` | `object (`[UpdateCustomFieldRequest](/ad-manager/api/beta/reference/rest/v1/networks.customFields/batchUpdate#UpdateCustomFieldRequest)`)` Required. The `CustomField` objects to update. A maximum of 100 objects can be updated in a batch. |\n\nResponse body Response object for `customFields.batchUpdate` method.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------|\n| ``` { \"customFields\": [ { object (/ad-manager/api/beta/reference/rest/v1/networks.customFields#CustomField) } ] } ``` |\n\n| Fields ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| `customFields[]` | `object (`[CustomField](/ad-manager/api/beta/reference/rest/v1/networks.customFields#CustomField)`)` The `CustomField` objects updated. |\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/admanager`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2).\n\nUpdateCustomFieldRequest Request object for `customFields.patch` method.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"customField\": { object (/ad-manager/api/beta/reference/rest/v1/networks.customFields#CustomField) }, \"updateMask\": string } ``` |\n\n| Fields ||\n|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `customField` | `object (`[CustomField](/ad-manager/api/beta/reference/rest/v1/networks.customFields#CustomField)`)` Required. The `CustomField` to update. The `CustomField`'s `name` is used to identify the `CustomField` to update. |\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Required. The list of fields to update. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |"]]