- [HTTP request](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.adUnits/batchUpdate.md.txt#body.HTTP_TEMPLATE)
- [Path parameters](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.adUnits/batchUpdate.md.txt#body.PATH_PARAMETERS)
- [Request body](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.adUnits/batchUpdate.md.txt#body.request_body)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.adUnits/batchUpdate.md.txt#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.adUnits/batchUpdate.md.txt#body.response_body)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.adUnits/batchUpdate.md.txt#body.BatchUpdateAdUnitsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.adUnits/batchUpdate.md.txt#body.aspect)
- [UpdateAdUnitRequest](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.adUnits/batchUpdate.md.txt#UpdateAdUnitRequest)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.adUnits/batchUpdate.md.txt#UpdateAdUnitRequest.SCHEMA_REPRESENTATION)
- [Try it!](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.adUnits/batchUpdate.md.txt#try-it)

Batch updates `AdUnit` objects.

### HTTP request

`POST https://admanager.googleapis.com/v1/{parent}/adUnits:batchUpdate`

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent resource where `AdUnits` will be updated. Format: `networks/{networkCode}` The parent field in the UpdateAdUnitRequest must match this field. |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "requests": [ { object (`UpdateAdUnitRequest`) } ] } ``` |

| Fields ||
|---|---|
| `requests[]` | ``object (`UpdateAdUnitRequest`)`` Required. The `AdUnit` objects to update. A maximum of 100 objects can be updated in a batch. |

### Response body

Response object for `adUnits.batchUpdate` method.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "adUnits": [ { object (`AdUnit`) } ] } ``` |

| Fields ||
|---|---|
| `adUnits[]` | ``object (`AdUnit`)`` The `AdUnit` objects updated. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/admanager`

For more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2).

## UpdateAdUnitRequest

Request object for `adUnits.patch` method.

| JSON representation |
|---|
| ``` { "adUnit": { object (`AdUnit`) }, "updateMask": string } ``` |

| Fields ||
|---|---|
| `adUnit` | ``object (`AdUnit`)`` Required. The `AdUnit` to update. The `AdUnit`'s name is used to identify the `AdUnit` to update. Format: `networks/{networkCode}/adUnits/{adUnitId}` |
| `updateMask` | ``string (`FieldMask` format)`` Optional. The list of fields to update. This is a comma-separated list of fully qualified names of fields. Example: `"user.displayName,photo"`. |