A partir del
8 de septiembre de 2025, cada elemento de la línea nuevo deberá declarar si publicará anuncios políticos de la Unión Europea (UE). Las cargas de la API de Display & Video 360 y del SDF que no proporcionen declaraciones fallarán. Consulta nuestra
página de bajas para obtener más detalles sobre cómo actualizar tu integración y realizar esta declaración.
Method: advertisers.creatives.delete
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Borra una creatividad. Devuelve el código de error NOT_FOUND
si la creatividad no existe. Primero, se debe archivar la creatividad, es decir, establecer entityStatus
como ENTITY_STATUS_ARCHIVED
, para poder borrarla.
Para realizar esta solicitud, se requiere un rol de usuario"Estándar" o superior para el anunciante o socio superior.
Solicitud HTTP
DELETE https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/creatives/{creativeId}
La URL usa la sintaxis de la transcodificación gRPC.
Parámetros de ruta de acceso
Parámetros |
advertiserId |
string (int64 format)
Es el ID del anunciante al que pertenece esta creatividad.
|
creativeId |
string (int64 format)
Es el ID de la creatividad que se borrará.
|
Cuerpo de la solicitud
El cuerpo de la solicitud debe estar vacío.
Cuerpo de la respuesta
Si se ejecuta correctamente, el cuerpo de la respuesta es un objeto JSON vacío.
Permisos de autorización
Requiere el siguiente alcance de OAuth:
https://www.googleapis.com/auth/display-video
Para obtener más información, consulta OAuth 2.0 Overview.
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-25 (UTC)
[null,null,["Última actualización: 2025-07-25 (UTC)"],[],["The Display & Video 360 API v4, in beta, allows the deletion of creatives via a `DELETE` request. A \"Standard\" user or greater role is required. Creatives must be archived first, with `entityStatus` set to `ENTITY_STATUS_ARCHIVED`. The request URL includes `advertiserId` and `creativeId` path parameters. The request body should be empty, and a successful response returns an empty JSON object. The operation requires the `https://www.googleapis.com/auth/display-video` OAuth scope.\n"],null,["# Method: advertisers.creatives.delete\n\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 creative. Returns error code `NOT_FOUND` if the creative does not exist. The creative should be archived first, i.e. set [entityStatus](/display-video/api/reference/rest/v4/advertisers.creatives#Creative.FIELDS.entity_status) to `ENTITY_STATUS_ARCHIVED`, before it can be deleted.\n\nA [\"Standard\" user role](//support.google.com/displayvideo/answer/2723011) or greater for the parent advertiser or partner is required to make this request.\n\n### HTTP request\n\n`DELETE https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/creatives/{creativeId}`\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 creative belongs to. |\n| `creativeId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the creative to be deleted. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\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](/identity/protocols/OAuth2)."]]