À 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é.
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Options de ciblage par environnement possibles.
Enums
ENVIRONMENT_UNSPECIFIED
Valeur par défaut lorsque l'environnement n'est pas spécifié dans cette version. Cet énumérateur est un espace réservé pour la valeur par défaut et ne représente pas une option d'environnement réelle.
ENVIRONMENT_WEB_OPTIMIZED
Cible l'inventaire affiché dans les navigateurs. Cette valeur inclut les inventaires prévus pour l'appareil sur lequel ils ont été consultés (sites Web mobiles consultés sur un appareil mobile, par exemple). Si vous ciblez l'environnement ENVIRONMENT_WEB_NOT_OPTIMIZED, vous devez le supprimer avant de supprimer cette option de ciblage.
ENVIRONMENT_WEB_NOT_OPTIMIZED
Cible l'inventaire affiché dans les navigateurs. Cette valeur inclut les inventaires qui n'ont pas été prévus pour un appareil, mais sur lequel ils ont été consultés (sites Web optimisés pour les ordinateurs, mais consultés sur un appareil mobile, par exemple). ENVIRONMENT_WEB_OPTIMIZED doit être ciblé avant l'ajout de cette option de ciblage.
ENVIRONMENT_APP
Cible l'inventaire affiché dans les applications.
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/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eDisplay & Video 360 API v2 is no longer in use.\u003c/p\u003e\n"],["\u003cp\u003eThe environment targeting options allow advertisers to specify whether their ads should be displayed in web browsers (optimized or not optimized for the device) or in apps.\u003c/p\u003e\n"],["\u003cp\u003eWhen using environment targeting, \u003ccode\u003eENVIRONMENT_UNSPECIFIED\u003c/code\u003e is the default and does not represent an actual environment, while \u003ccode\u003eENVIRONMENT_WEB_OPTIMIZED\u003c/code\u003e and \u003ccode\u003eENVIRONMENT_WEB_NOT_OPTIMIZED\u003c/code\u003e target web browsers, and \u003ccode\u003eENVIRONMENT_APP\u003c/code\u003e targets app inventory.\u003c/p\u003e\n"],["\u003cp\u003eFor web targeting, if you want to target both optimized and non-optimized inventory, you should target \u003ccode\u003eENVIRONMENT_WEB_OPTIMIZED\u003c/code\u003e first and then add \u003ccode\u003eENVIRONMENT_WEB_NOT_OPTIMIZED\u003c/code\u003e.\u003c/p\u003e\n"]]],["The Display & Video 360 API v2 has been discontinued. The document details environment targeting options: `ENVIRONMENT_WEB_OPTIMIZED` targets browser inventory designed for the viewing device. `ENVIRONMENT_WEB_NOT_OPTIMIZED` targets browser inventory not designed for the device. `ENVIRONMENT_APP` targets in-app inventory. `ENVIRONMENT_UNSPECIFIED` is a default placeholder, not a real option. Specific targeting orders are outlined between optimized and not-optimized web environments.\n"],null,["# Environment\n\n| Display \\& Video 360 API v2 has sunset.\nPossible environment targeting options.\n\n| Enums ||\n|---------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `ENVIRONMENT_UNSPECIFIED` | Default value when environment is not specified in this version. This enum is a placeholder for default value and does not represent a real environment option. |\n| `ENVIRONMENT_WEB_OPTIMIZED` | Target inventory displayed in browsers. This includes inventory that was designed for the device it was viewed on, such as mobile websites viewed on a mobile device. ENVIRONMENT_WEB_NOT_OPTIMIZED, if targeted, should be deleted prior to the deletion of this targeting option. |\n| `ENVIRONMENT_WEB_NOT_OPTIMIZED` | Target inventory displayed in browsers. This includes inventory that was not designed for the device but viewed on it, such as websites optimized for desktop but viewed on a mobile device. ENVIRONMENT_WEB_OPTIMIZED should be targeted prior to the addition of this targeting option. |\n| `ENVIRONMENT_APP` | Target inventory displayed in apps. |"]]