À 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é.
Obligatoire. Options de ciblage attribuées à créer et à ajouter.
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\u003eDisplay & Video 360 API v2 is no longer in use.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation details creating and adding assigned targeting options for specific targeting types within campaigns.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the targeting type and providing a list of assigned targeting options with their respective configurations.\u003c/p\u003e\n"]]],["The Display & Video 360 API v2 has been discontinued. To manage targeting, a request to list assigned targeting options must be made. This request includes a `targetingType` which specifies the type of targeting, and an array `assignedTargetingOptions` containing the targeting options to be added. `targetingType` is an enumerated type, and the `assignedTargetingOptions` is an object type. Both fields are required for the request.\n"],null,["# CreateAssignedTargetingOptionsRequest\n\n| Display \\& Video 360 API v2 has sunset.\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA request listing which assigned targeting options of a given targeting type should be created and added.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"targetingType\": enum (/display-video/api/reference/rest/v2/TargetingType), \"assignedTargetingOptions\": [ { object (/display-video/api/reference/rest/v2/advertisers.campaigns.targetingTypes.assignedTargetingOptions#AssignedTargetingOption) } ] } ``` |\n\n| Fields ||\n|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `targetingType` | `enum (`[TargetingType](/display-video/api/reference/rest/v2/TargetingType)`)` Required. Identifies the type of this assigned targeting option. |\n| `assignedTargetingOptions[]` | `object (`[AssignedTargetingOption](/display-video/api/reference/rest/v2/advertisers.campaigns.targetingTypes.assignedTargetingOptions#AssignedTargetingOption)`)` Required. The assigned targeting options to create and add. |"]]