type VideoPositionTargeting (v202502)
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/v202502
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."],[],["The content defines `VideoPositionTargeting`, which specifies where ads can appear within a video, such as pre-roll, mid-roll, or post-roll. It details that empty targeting allows all video positions and bumper line items with empty targeting will target all bumper positions. It is found in services like AdRuleService, AdjustmentService and ProposalService. It is dependent on Targeting, and it includes the field `targetedPositions`, which references `VideoPositionTarget` objects that a line item is targeting.\n"],null,["# type VideoPositionTargeting (v202502)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202502/AdRuleService.VideoPositionTargeting) [AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.VideoPositionTargeting) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.VideoPositionTargeting) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.VideoPositionTargeting) [NativeStyleService](/ad-manager/api/reference/v202502/NativeStyleService.VideoPositionTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.VideoPositionTargeting) **ProposalService** [PublisherQueryLanguageService](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.VideoPositionTargeting) [TargetingPresetService](/ad-manager/api/reference/v202502/TargetingPresetService.VideoPositionTargeting) [YieldGroupService](/ad-manager/api/reference/v202502/YieldGroupService.VideoPositionTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202502/ProposalService.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/v202502`\n\n| Field ----- ||\n|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `targetedPositions` | ` `[VideoPositionTarget](/ad-manager/api/reference/v202502/ProposalService.VideoPositionTarget)`[]` The `VideoTargetingPosition` objects being targeted by the video [LineItem](/ad-manager/api/reference/v202502/ForecastService.LineItem). |"]]