enum VideoPosition.Type (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Represents a targetable position within a video.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Enumeration |
Description |
UNKNOWN
|
The value returned if the actual value is not exposed by the requested API version.
|
ALL
|
This position targets all of the above video positions.
|
PREROLL
|
The position defined as showing before the video starts playing.
|
MIDROLL
|
The position defined as showing within the middle of the playing video.
|
POSTROLL
|
The position defined as showing after the video is completed.
|
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\u003e\u003ccode\u003eVideoPosition.Type\u003c/code\u003e identifies the placement of ads within a video stream (pre-roll, mid-roll, post-roll, or all positions).\u003c/p\u003e\n"],["\u003cp\u003eIt's used within Google Ad Manager to target ads effectively to different video content sections.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for this enumeration is \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUNKNOWN\u003c/code\u003e is a default value returned if the specific video position isn't exposed through the API, and \u003ccode\u003eALL\u003c/code\u003e targets all positions within the video.\u003c/p\u003e\n"]]],["The content defines the `VideoPosition.Type` within a video advertising context. It outlines targetable positions including `UNKNOWN`, `ALL`, `PREROLL` (before video), `MIDROLL` (during video), and `POSTROLL` (after video). These types are used by various services like `AdRuleService`, `ForecastService`, `LineItemService`, `NativeStyleService`, `ProposalLineItemService`, `ProposalService`, `PublisherQueryLanguageService`, `TargetingPresetService`, and `YieldGroupService` to define where ads can be displayed.\n"],null,["# enum VideoPosition.Type (v202411)\n\n**Service** \n**AdRuleService** [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.VideoPosition.Type) [ForecastService](/ad-manager/api/reference/v202411/ForecastService.VideoPosition.Type) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.VideoPosition.Type) [NativeStyleService](/ad-manager/api/reference/v202411/NativeStyleService.VideoPosition.Type) [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.VideoPosition.Type) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.VideoPosition.Type) [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.VideoPosition.Type) [TargetingPresetService](/ad-manager/api/reference/v202411/TargetingPresetService.VideoPosition.Type) [YieldGroupService](/ad-manager/api/reference/v202411/YieldGroupService.VideoPosition.Type) **Dependencies** \n[VideoPosition](/ad-manager/api/reference/v202411/AdRuleService.VideoPosition) \n▼\n**VideoPosition.Type**\n\nRepresents a targetable position within a video.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|-------------|-------------------------------------------------------------------------------------|\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |\n| `ALL` | This position targets all of the above video positions. |\n| `PREROLL` | The position defined as showing before the video starts playing. |\n| `MIDROLL` | The position defined as showing within the middle of the playing video. |\n| `POSTROLL` | The position defined as showing after the video is completed. |"]]