À partir du 8 septembre 2025, chaque nouvelle ligne devra indiquer si elle diffusera ou non des annonces à caractère politique dans l'Union européenne (UE). Les importations de fichiers SDF et les appels à l'API Display & Video 360 qui ne fournissent pas de déclarations échoueront. Pour savoir comment mettre à jour votre intégration afin d'effectuer cette déclaration, consultez notre page sur les abandons de compatibilité.
Mots clés à exclure qui remplaceront les mots clés existants dans la liste de mots clés à exclure, spécifiés sous la forme d'une liste de NegativeKeywords.
Corps de la réponse
Si la requête aboutit, le corps de la réponse contient des données qui ont la structure suivante :
Message de réponse pour NeuralKeywordService.Replace negativeMots clés.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003eThis documentation details the process for replacing all negative keywords within a specific negative keyword list using the Display & Video 360 API.\u003c/p\u003e\n"],["\u003cp\u003eThe API request involves specifying the advertiser and negative keyword list IDs, along with a list of new negative keywords to replace the existing ones.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful execution, the API returns the updated, full list of negative keywords present in the specified negative keyword list.\u003c/p\u003e\n"],["\u003cp\u003eThe request needs to be authorized with the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eDisplay & Video 360 API v1 has been sunset.\u003c/p\u003e\n"]]],["This document details the process for replacing negative keywords in a Display & Video 360 advertiser's negative keyword list using the API. The `POST` request is sent to the specified URL including the `advertiserId` and `negativeKeywordListId`. The request body must include a JSON with `newNegativeKeywords`, a list of keywords that will replace the existing ones. The API responds with a list of `negativeKeywords` now present in the negative keyword list. OAuth scope is required.\n"],null,["# Method: advertisers.negativeKeywordLists.negativeKeywords.replace\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 - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ReplaceNegativeKeywordsResponse.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n- [Try it!](#try-it)\n\nReplaces all negative keywords in a single negative keyword list.\n\nThe operation will replace the keywords in a negative keyword list with keywords provided in [ReplaceNegativeKeywordsRequest.new_negative_keywords](/display-video/api/reference/rest/v1/advertisers.negativeKeywordLists.negativeKeywords/replace#body.request_body.FIELDS.new_negative_keywords).\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v1/advertisers/{advertiserId}/negativeKeywordLists/{negativeKeywordListId}/negativeKeywords:replace`\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)` Required. The ID of the DV360 advertiser to which the parent negative keyword list belongs. |\n| `negativeKeywordListId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the parent negative keyword list to which the negative keywords belong. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"newNegativeKeywords\": [ { object (/display-video/api/reference/rest/v1/advertisers.negativeKeywordLists.negativeKeywords#NegativeKeyword) } ] } ``` |\n\n| Fields ||\n|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `newNegativeKeywords[]` | `object (`[NegativeKeyword](/display-video/api/reference/rest/v1/advertisers.negativeKeywordLists.negativeKeywords#NegativeKeyword)`)` The negative keywords that will replace the existing keywords in the negative keyword list, specified as a list of [NegativeKeywords](/display-video/api/reference/rest/v1/advertisers.negativeKeywordLists.negativeKeywords#NegativeKeyword). |\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nResponse message for NegativeKeywordService.ReplaceNegativeKeywords.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"negativeKeywords\": [ { object (/display-video/api/reference/rest/v1/advertisers.negativeKeywordLists.negativeKeywords#NegativeKeyword) } ] } ``` |\n\n| Fields ||\n|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `negativeKeywords[]` | `object (`[NegativeKeyword](/display-video/api/reference/rest/v1/advertisers.negativeKeywordLists.negativeKeywords#NegativeKeyword)`)` The full list of negative keywords now present in the negative keyword list. |\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)."]]