Method: adUnits.patch
Stay organized with collections
Save and categorize content based on your preferences.
Updates an existing ad unit.
- Returns the updated ad unit if successful.
- Returns error code
NOT_FOUND
if the ad unit does not exist.
- Returns error code
INVALID_ARGUMENT
if an immutable field is specified in updateMask
.
- Returns error code
ABORTED
if the ad unit was updated in the system after the provided updateTime timestamp.
HTTP request
PATCH https://dv360outofhomeseller.googleapis.com/v1beta1/{adUnit.name=adUnits/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
adUnit.name |
string
The resource name of the ad unit in the format: adUnits/{id} . For example adUnits/adUnit123 .
|
Query parameters
Parameters |
updateMask |
string (FieldMask format)
Required. The mask to control which fields to update. An immutable field cannot be specified here. This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo" .
|
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.
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 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["This operation updates an existing ad unit, returning the updated unit upon success."],["If the ad unit does not exist, it returns a `NOT_FOUND` error; if an immutable field is updated, it returns an `INVALID_ARGUMENT` error."],["An `ABORTED` error is returned if the ad unit was updated after the provided timestamp."],["The request utilizes the HTTP PATCH method and requires specific path and query parameters, including an update mask for field control."],["Authorization requires the `https://www.googleapis.com/auth/doubleclickbidmanager` scope."]]],[]]