Page Summary
-
This method updates an existing ad unit using a PATCH HTTP request.
-
The ad unit to be updated is specified by its resource name in the path parameters.
-
A required query parameter,
updateMask, is used to specify which fields of the ad unit should be updated. -
The request body contains the updated
AdUnitresource, and the response body returns the successfully updatedAdUnit. -
Successful updates require the
https://www.googleapis.com/auth/doubleclickbidmanagerOAuth scope.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- Examples
Updates an existing ad unit.
- Returns the updated ad unit if successful.
- Returns error code
NOT_FOUNDif the ad unit does not exist. - Returns error code
INVALID_ARGUMENTif an immutable field is specified inupdateMaskand a change is requested.
HTTP request
PATCH https://dv360outofhomeseller.googleapis.com/v1/{adUnit.name=sellers/*/adUnits/*}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
adUnit.name |
The resource name of the ad unit in the format: |
Query parameters
| Parameters | |
|---|---|
updateMask |
Required. The mask to control which fields to update. This is a comma-separated list of fully qualified names of fields. Example: |
Request body
The request body contains an instance of AdUnit.
Response body
If successful, the response body contains an instance of AdUnit.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/doubleclickbidmanager
For more information, see the OAuth 2.0 Overview.