This page covers data collection for the Ad load type variable. See Ad loads for the corresponding reporting dimension.
The ad load type variable identifies the type of ad loaded at the start of the session. This value is defined by your organization’s internal ad delivery system and is not constrained to a standard enumeration. You can use any string meaningful to your implementation, such as "linear", "dynamic", or "programmatic".
a.media.adLoadc_contextdata.a.media.adLoadRecommended implementation types
Set adLoad inside xdm.mediaCollection.sessionDetails when calling createMediaSession:
| code language-javascript |
|---|
|
Pass the ad load type as a metadata key in the dictionary argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.AD_LOAD.
| code language-swift |
|---|
|
Pass the ad load type as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.AD_LOAD.
| code language-kotlin |
|---|
|
Use createMediaSession to set adLoad inside sessionDetails:
| code language-brightscript |
|---|
|
Call the sessionStart endpoint with adLoad inside xdm.mediaCollection.sessionDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the ad load type in the contextData object using ADB.Media.VideoMetadataKeys.AdLoad:
| code language-javascript |
|---|
|
Use ADBMobile.media.VideoMetadataKeys.AD_LOAD to set the ad load type in the StandardMediaMetadata property of the media object before calling trackSessionStart:
| code language-javascript |
|---|
|
Include media.adLoad in the params object of your sessionStart POST request:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.