AI-generated Key Takeaways
- 
          The Display & Video 360 API v2 has sunset. 
- 
          This endpoint allows bulk editing of targeting options for multiple line items by deleting and then creating assigned targeting options. 
- 
          Concurrent requests to update the same line item using this endpoint are not allowed with several other line item and assigned targeting option update requests. 
- 
          YouTube & Partners line items cannot be created or updated using this API. 
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/v2/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.