Google Ads Ad Manager V1 Client - Class VideoPosition (0.17.0)

Reference documentation and code samples for the Google Ads Ad Manager V1 Client class VideoPosition.

Video Position Targeting Criterion

Generated from protobuf message google.ads.admanager.v1.VideoPosition

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ midroll_index int|string

Optional. The index of the mid-roll to target. This field is ignored when targeting any video position (e.g. position_type) other than MIDROLL.

↳ reverse_midroll_index int|string

Optional. The index from the back of the pod of the mid-roll to target. This field is ignored when targeting any video position (e.g. position_type) other than MIDROLL or if targeting a specific midroll index (e.g. midroll_index != 0).

↳ pod_position int|string

Optional. The video position within a pod to target. If set, adSpot, bumperType, and positionType must be unset.

↳ ad_spot string

Optional. The resource name of the custom ad spot to target. If set, bumperType, podPosition, and positionType must be unset. Format: networks/{network_code}/adSpots/{ad_spot_id}

↳ position_type int

Optional. The position within a video to target. A video ad can target a position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll index.

↳ bumper_type int

Optional. The video bumper type to target. If set, adSpot, podPosition, and positionType must be unset.

getMidrollIndex

Optional. The index of the mid-roll to target. This field is ignored when targeting any video position (e.g. position_type) other than MIDROLL.

Returns
Type Description
int|string

hasMidrollIndex

clearMidrollIndex

setMidrollIndex

Optional. The index of the mid-roll to target. This field is ignored when targeting any video position (e.g. position_type) other than MIDROLL.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getReverseMidrollIndex

Optional. The index from the back of the pod of the mid-roll to target.

This field is ignored when targeting any video position (e.g. position_type) other than MIDROLL or if targeting a specific midroll index (e.g. midroll_index != 0).

Returns
Type Description
int|string

hasReverseMidrollIndex

clearReverseMidrollIndex

setReverseMidrollIndex

Optional. The index from the back of the pod of the mid-roll to target.

This field is ignored when targeting any video position (e.g. position_type) other than MIDROLL or if targeting a specific midroll index (e.g. midroll_index != 0).

Parameter
Name Description
var int|string
Returns
Type Description
$this

getPodPosition

Optional. The video position within a pod to target. If set, adSpot, bumperType, and positionType must be unset.

Returns
Type Description
int|string

hasPodPosition

clearPodPosition

setPodPosition

Optional. The video position within a pod to target. If set, adSpot, bumperType, and positionType must be unset.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getAdSpot

Optional. The resource name of the custom ad spot to target. If set, bumperType, podPosition, and positionType must be unset. Format: networks/{network_code}/adSpots/{ad_spot_id}

Returns
Type Description
string

hasAdSpot

clearAdSpot

setAdSpot

Optional. The resource name of the custom ad spot to target. If set, bumperType, podPosition, and positionType must be unset. Format: networks/{network_code}/adSpots/{ad_spot_id}

Parameter
Name Description
var string
Returns
Type Description
$this

getPositionType

Optional. The position within a video to target. A video ad can target a position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll index.

Returns
Type Description
int

hasPositionType

clearPositionType

setPositionType

Optional. The position within a video to target. A video ad can target a position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll index.

Parameter
Name Description
var int
Returns
Type Description
$this

getBumperType

Optional. The video bumper type to target. If set, adSpot, podPosition, and positionType must be unset.

Returns
Type Description
int

hasBumperType

clearBumperType

setBumperType

Optional. The video bumper type to target. If set, adSpot, podPosition, and positionType must be unset.

Parameter
Name Description
var int
Returns
Type Description
$this