A partir de 8 de setembro de 2025, todos os novos itens de linha precisarão declarar se vão veicular anúncios políticos da União Europeia (UE). As APIs do Display & Video 360 e os uploads de SDF que não fornecem declarações vão falhar. Consulte nossa página de suspensões de uso para mais detalhes sobre como atualizar sua integração e fazer essa declaração.
Exclui um item de linha. Retorna o código de erro NOT_FOUND se o item de linha não existir. Para excluir o item de linha, ele precisa ser arquivado primeiro, ou seja, definir entityStatus como ENTITY_STATUS_ARCHIVED.
[null,null,["Última atualização 2025-07-25 UTC."],[[["\u003cp\u003eDisplay & Video 360 API v1 is sunset and this documentation details deleting a line item via the API.\u003c/p\u003e\n"],["\u003cp\u003eTo delete a line item, it must first be archived by setting its entityStatus to \u003ccode\u003eENTITY_STATUS_ARCHIVED\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe DELETE request requires specifying the advertiser ID and line item ID in the URL path.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful deletion results in an empty response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["The core content describes how to delete a line item using the Display & Video 360 API. It specifies a `DELETE` HTTP request to a URL containing the `advertiserId` and `lineItemId`. The line item must be archived beforehand by setting its `entityStatus` to `ENTITY_STATUS_ARCHIVED`. The request body should be empty, and a successful response also has an empty body. It uses gRPC Transcoding syntax. This action requires the `https://www.googleapis.com/auth/display-video` authorization scope.\n"],null,["# Method: advertisers.lineItems.delete\n\n| Display \\& Video 360 API v1 has been sunset.\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDeletes 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](/display-video/api/reference/rest/v1/advertisers.lineItems#LineItem.FIELDS.entity_status) to `ENTITY_STATUS_ARCHIVED`, to be able to delete it.\n\n### HTTP request\n\n`DELETE https://displayvideo.googleapis.com/v1/advertisers/{advertiserId}/lineItems/{lineItemId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the advertiser this line item belongs to. |\n| `lineItemId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the line item to delete. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/display-video`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]