Bulk edits targeting options under multiple line items. The operation will delete the assigned targeting options provided in BulkEditAssignedTargetingOptionsRequest.delete_requests
and then create the assigned targeting options provided in BulkEditAssignedTargetingOptionsRequest.create_requests
.
Requests to this endpoint cannot be made concurrently with the following requests updating the same line item:
lineItems.bulkUpdate
lineItems.patch
assignedTargetingOptions.create
assignedTargetingOptions.delete
YouTube & Partners line items cannot be created or updated using the API.
HTTP request
POST https://displayvideo.googleapis.com/v3/advertisers/{advertiserId}/lineItems:bulkEditAssignedTargetingOptions
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
advertiserId |
Required. The ID of the advertiser the line items belong to. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "lineItemIds": [ string ], "deleteRequests": [ { object ( |
Fields | |
---|---|
lineItemIds[] |
Required. The ID of the line items whose targeting is being updated. |
deleteRequests[] |
The assigned targeting options to delete in batch, specified as a list of Supported targeting types include:
|
createRequests[] |
The assigned targeting options to create in batch, specified as a list of Supported targeting types include:
|
Response body
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"updatedLineItemIds": [
string
],
"failedLineItemIds": [
string
],
"errors": [
{
object ( |
Fields | |
---|---|
updatedLineItemIds[] |
Output only. The IDs of the line items which successfully updated. |
failedLineItemIds[] |
Output only. The IDs of the line items which failed. |
errors[] |
The error information for each line item that failed to update. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/display-video
For more information, see the OAuth 2.0 Overview.