AI-generated Key Takeaways
-
This content details how to delete a line item using the Display & Video 360 API v1, which has been sunset.
-
To successfully delete a line item, its entityStatus must first be set to ENTITY_STATUS_ARCHIVED.
-
The HTTP request method is DELETE and requires the advertiserId and lineItemId as path parameters.
-
The request body must be empty, and a successful response body will also be empty.
-
Authorization requires the https://www.googleapis.com/auth/display-video OAuth scope.
Deletes a line item. Returns error code NOT_FOUND
if the line item does not exist. The line item should be archived first, i.e. set entityStatus
to ENTITY_STATUS_ARCHIVED
, to be able to delete it.
HTTP request
DELETE https://displayvideo.googleapis.com/v1/advertisers/{advertiserId}/lineItems/{lineItemId}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
advertiserId |
The ID of the advertiser this line item belongs to. |
lineItemId |
The ID of the line item to delete. |
Request body
The request body must be empty.
Response body
If successful, the response body is empty.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/display-video
For more information, see the OAuth 2.0 Overview.