AI-generated Key Takeaways
- 
          Display & Video 360 API v1 has been sunset. 
- 
          This method allows for the bulk editing of targeting options under a single line item by first deleting specified options and then creating new ones. 
- 
          Concurrent requests using lineItems.patch,assignedTargetingOptions.create, orassignedTargetingOptions.deleteon the same line item are not permitted with this bulk edit operation.
- 
          The request requires the advertiser and line item IDs as path parameters and includes request bodies for specifying targeting options to delete and create. 
- 
          A successful response includes a list of the assigned targeting options that were successfully created. 
Bulk edits targeting options under a single line item. The operation will delete the assigned targeting options provided in BulkEditLineItemAssignedTargetingOptionsRequest.delete_requests and then create the assigned targeting options provided in BulkEditLineItemAssignedTargetingOptionsRequest.create_requests.
Requests to this endpoint cannot be made concurrently with the following requests updating the same line item:
HTTP request
POST https://displayvideo.googleapis.com/v1/advertisers/{advertiserId}/lineItems/{lineItemId}:bulkEditLineItemAssignedTargetingOptions
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| advertiserId | 
 Required. The ID of the advertiser the line item belongs to. | 
| lineItemId | 
 Required. The ID of the line item the assigned targeting option will belong to. | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "deleteRequests": [ { object ( | 
| Fields | |
|---|---|
| deleteRequests[] | 
 The assigned targeting options to delete in batch, specified as a list of  | 
| createRequests[] | 
 The assigned targeting options to create in batch, specified as a list of  | 
Response body
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "createdAssignedTargetingOptions": [
    {
      object ( | 
| Fields | |
|---|---|
| createdAssignedTargetingOptions[] | 
 The list of assigned targeting options that have been successfully created. This list will be absent if empty. | 
Authorization Scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/display-video
For more information, see the OAuth 2.0 Overview.