This page covers data collection for the First air date variable. See First air date for the corresponding reporting dimension.
The first air date variable is the date the content first aired on television. Any date format is accepted but Adobe recommends YYYY-MM-DD for consistency. Use it to compare engagement on new releases vs. catalog content.
a.media.airDatec_contextdata.a.media.airDateRecommended implementation types
Set firstAirDate inside xdm.mediaCollection.sessionDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the first air date as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.FIRST_AIR_DATE.
| code language-swift |
|---|
|
Pass the first air date as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.FIRST_AIR_DATE.
| code language-kotlin |
|---|
|
Use createMediaSession to set firstAirDate inside sessionDetails:
| code language-brightscript |
|---|
|
Call the sessionStart endpoint with firstAirDate inside xdm.mediaCollection.sessionDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the first air date in the contextData object using ADB.Media.VideoMetadataKeys.FirstAirDate:
| code language-javascript |
|---|
|
Use ADBMobile.media.VideoMetadataKeys.FIRST_AIR_DATE to set the first air date in the StandardMediaMetadata property of the media object before calling trackSessionStart:
| code language-javascript |
|---|
|
Use MEDIA_VideoMetadataKeyFIRST_AIR_DATE to set the first air date in the standard metadata of the media object before calling mediaTrackSessionStart:
| code language-brightscript |
|---|
|
Include media.firstAirDate in the params object:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.