This page covers data collection for the Ad break name variable. See Pod name for the corresponding reporting dimension.
The ad break name variable is the friendly name of the ad break (for example, "pre-roll", "mid-roll-1", "post-roll"). The value is set on the ad-break object, not on individual ads.
a.media.ad.podFriendlyNamec_contextdata.a.media.ad.podFriendlyNameRecommended implementation types
Set friendlyName inside xdm.mediaCollection.advertisingPodDetails when calling sendEvent for media.adBreakStart:
| code language-javascript |
|---|
|
Pass the ad break name as the first (name) argument to createAdBreakObject, then track the ad-break-start event before the ad-start event.
| code language-swift |
|---|
|
Pass the ad break name as the first (name) argument to createAdBreakObject, then track the ad-break-start event before the ad-start event.
| code language-kotlin |
|---|
|
Set friendlyName inside xdm.mediaCollection.advertisingPodDetails when calling sendMediaEvent for media.adBreakStart:
| code language-brightscript |
|---|
|
Call the adBreakStart endpoint with friendlyName inside xdm.mediaCollection.advertisingPodDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the ad break name as the first argument to ADB.Media.createAdBreakObject:
| code language-javascript |
|---|
|
Pass the ad break name as the first argument to ADBMobile.media.createAdBreakObject:
| code language-javascript |
|---|
|
Include media.ad.podFriendlyName in the params object of your adBreakStart POST request:
| code language-json |
|---|
|
See the Media Collection API events reference for the full request structure.