enum EnvironmentType (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Enum for the valid environments in which ads can be shown.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Enumeration |
Description |
BROWSER
|
A regular web browser.
|
VIDEO_PLAYER
|
Video players.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eEnvironmentType is an enumeration used to specify the environment where ads will be displayed, such as a web browser or video player.\u003c/p\u003e\n"],["\u003cp\u003eThis enum includes two values: \u003ccode\u003eBROWSER\u003c/code\u003e for regular web browsers and \u003ccode\u003eVIDEO_PLAYER\u003c/code\u003e for video players.\u003c/p\u003e\n"],["\u003cp\u003eIt is used by several services, including ForecastService, LineItemService, ProposalLineItemService, and SuggestedAdUnitService, to define the environment for ad requests.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for EnvironmentType is \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e.\u003c/p\u003e\n"]]],["The content defines the `EnvironmentType` enumeration, specifying valid environments for ad display. The core environments are `BROWSER` (regular web browser) and `VIDEO_PLAYER` (video players). This enumeration is found within the namespace `https://www.google.com/apis/ads/publisher/v202411`. It is associated with multiple services, namely, `ForecastService`, `InventoryService`, `LineItemService`, `ProposalLineItemService` and `SuggestedAdUnitService`, and depends on `AdUnitSize`.\n"],null,["# enum EnvironmentType (v202411)\n\n**Service** \n[ForecastService](/ad-manager/api/reference/v202411/ForecastService.EnvironmentType) **InventoryService** [LineItemService](/ad-manager/api/reference/v202411/LineItemService.EnvironmentType) [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.EnvironmentType) [SuggestedAdUnitService](/ad-manager/api/reference/v202411/SuggestedAdUnitService.EnvironmentType) **Dependencies** \n[AdUnitSize](/ad-manager/api/reference/v202411/InventoryService.AdUnitSize) \n▼\n**EnvironmentType**\n\nEnum for the valid environments in which ads can be shown.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|----------------|------------------------|\n| `BROWSER` | A regular web browser. |\n| `VIDEO_PLAYER` | Video players. |"]]