type VideoPositionTargeting (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Represents positions within and around a video where ads can be
targeted to.
Example positions could be pre-roll
(before the video plays),
post-roll
(after a video has
completed playback) and mid-roll
(during video playback).
Empty video position targeting means that all video positions
are allowed. If a bumper line item has empty video position
targeting it will be updated to target all bumper positions.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
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\u003eVideoPositionTargeting allows you to target ads to specific positions within and around videos, such as pre-roll, post-roll, and mid-roll.\u003c/p\u003e\n"],["\u003cp\u003eEmpty video position targeting implies that ads can be displayed in all positions unless it's a bumper line item, in which case it targets all bumper positions.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003etargetedPositions\u003c/code\u003e field specifies the \u003ccode\u003eVideoPositionTarget\u003c/code\u003e objects being targeted by the video LineItem.\u003c/p\u003e\n"],["\u003cp\u003eThis targeting is applied within the namespace \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e.\u003c/p\u003e\n"]]],["The core content describes `VideoPositionTargeting`, which defines where ads can appear within a video. Key information includes positions like pre-roll, post-roll, and mid-roll. An empty `VideoPositionTargeting` means all video positions are allowed. The `targetedPositions` field within this structure holds an array of `VideoTargetingPosition` objects, indicating the specific targeted ad placements within the video as specified by the `LineItem`. It operates within the Google Ads publisher namespace.\n"],null,["# type VideoPositionTargeting (v202411)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.VideoPositionTargeting) [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.VideoPositionTargeting) [ForecastService](/ad-manager/api/reference/v202411/ForecastService.VideoPositionTargeting) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.VideoPositionTargeting) **NativeStyleService** [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.VideoPositionTargeting) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.VideoPositionTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.VideoPositionTargeting) [TargetingPresetService](/ad-manager/api/reference/v202411/TargetingPresetService.VideoPositionTargeting) [YieldGroupService](/ad-manager/api/reference/v202411/YieldGroupService.VideoPositionTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202411/NativeStyleService.Targeting) \n▼\n**VideoPositionTargeting**\n\n\nRepresents positions within and around a video where ads can be\ntargeted to.\n\nExample positions could be `pre-roll` (before the video plays),\n`post-roll` (after a video has\ncompleted playback) and `mid-roll`\n(during video playback).\n\nEmpty video position targeting means that all video positions\nare allowed. If a bumper line item has empty video position\ntargeting it will be updated to target all bumper positions.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `targetedPositions` | ` `[VideoPositionTarget](/ad-manager/api/reference/v202411/NativeStyleService.VideoPositionTarget)`[]` The `VideoTargetingPosition` objects being targeted by the video [LineItem](/ad-manager/api/reference/v202411/ForecastService.LineItem). |"]]