This page covers data collection for the Network variable. See Network for the corresponding reporting dimension.
The network variable is the broadcast network or channel name (for example, "Fox", "ESPN", or "HBO"). Use it to compare engagement across networks within the same streaming property.
a.media.networkc_contextdata.a.media.networkRecommended implementation types
Set network inside xdm.mediaCollection.sessionDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the network name as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.NETWORK.
| code language-swift |
|---|
|
Pass the network name as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.NETWORK.
| code language-kotlin |
|---|
|
Use createMediaSession to set network inside sessionDetails:
| code language-brightscript |
|---|
|
Call the sessionStart endpoint with network inside xdm.mediaCollection.sessionDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the network in the contextData object using ADB.Media.VideoMetadataKeys.Network:
| code language-javascript |
|---|
|
Use ADBMobile.media.VideoMetadataKeys.NETWORK to set the network name in the StandardMediaMetadata property of the media object before calling trackSessionStart:
| code language-javascript |
|---|
|
Include media.network in the params object:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.