This page covers data collection for the Ad in pod position variable. See Ad in pod position for the corresponding reporting dimension.
The ad in pod position variable is the zero-indexed position of the ad inside its parent ad break. The first ad in a pod has index 0, the second has index 1, and so on. Use the dimension to compare engagement and completion by position within an ad break.
a.media.ad.podPositionc_contextdata.a.media.ad.podPositionRecommended implementation types
Set podPosition inside xdm.mediaCollection.advertisingDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the position as the third argument to createAdObject.
| code language-swift |
|---|
|
Pass the position as the third argument to createAdObject.
| code language-kotlin |
|---|
|
Set podPosition inside xdm.mediaCollection.advertisingDetails when calling sendMediaEvent for media.adStart:
| code language-brightscript |
|---|
|
Call the adStart endpoint with podPosition inside xdm.mediaCollection.advertisingDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the position as the third argument to ADB.Media.createAdObject:
| code language-javascript |
|---|
|
Pass the position as the third argument to ADBMobile.media.createAdObject:
| code language-javascript |
|---|
|
Include media.ad.podPosition in the params object:
| code language-json |
|---|
|
See the Media Collection API events reference for the full request structure.