AI-generated Key Takeaways
-
This method allows for the bulk editing of targeting options across multiple line items by deleting and creating assigned targeting options.
-
Concurrent requests updating the same line item using
lineItems.bulkUpdate
,lineItems.patch
,assignedTargetingOptions.create
, orassignedTargetingOptions.delete
are not permitted with this endpoint. -
YouTube & Partners line items cannot be created or updated via the API using this method.
-
The request body includes the IDs of the line items to be updated, a list of delete requests, and a list of create requests for assigned targeting options.
-
The response body indicates which line items were successfully updated, which failed, and provides error information for the failed updates.
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/v4/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.