This page covers data collection for the Station variable. See Station for the corresponding reporting dimension.
The station variable is the name or ID of the radio station broadcasting the audio content (for example, "NPR" or "WXYZ-FM"). Use it to compare engagement across stations in a syndicated network.
a.media.stationc_contextdata.a.media.stationRecommended implementation types
Set station inside xdm.mediaCollection.sessionDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the station as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.AudioMetadataKeys.STATION.
| code language-swift |
|---|
|
Pass the station as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.AudioMetadataKeys.STATION.
| code language-kotlin |
|---|
|
Use createMediaSession to set station inside sessionDetails:
| code language-brightscript |
|---|
|
Call the sessionStart endpoint with station inside xdm.mediaCollection.sessionDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the station in the contextData object using ADB.Media.AudioMetadataKeys.Station:
| code language-javascript |
|---|
|
Use ADBMobile.media.AudioMetadataKeys.STATION to set the station name in the StandardMediaMetadata property of the media object before calling trackSessionStart:
| code language-javascript |
|---|
|
Use MEDIA_AudioMetadataKeySTATION to set the station name in the standard metadata of the media object before calling mediaTrackSessionStart:
| code language-brightscript |
|---|
|
Include media.station in the params object:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.