This page covers data collection for the Label variable. See Label for the corresponding reporting dimension.
The label variable is the name of the record label that released the audio content (for example, "Capitol Records"). Use it to compare engagement across labels in a music or podcast catalog.
a.media.labelc_contextdata.a.media.labelRecommended implementation types
Set label inside xdm.mediaCollection.sessionDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the label as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.AudioMetadataKeys.LABEL.
| code language-swift |
|---|
|
Pass the label as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.AudioMetadataKeys.LABEL.
| code language-kotlin |
|---|
|
Use createMediaSession to set label inside sessionDetails:
| code language-brightscript |
|---|
|
Call the sessionStart endpoint with label inside xdm.mediaCollection.sessionDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the label in the contextData object using ADB.Media.AudioMetadataKeys.Label:
| code language-javascript |
|---|
|
Use ADBMobile.media.AudioMetadataKeys.LABEL to set the record label in the StandardMediaMetadata property of the media object before calling trackSessionStart:
| code language-javascript |
|---|
|
Use MEDIA_AudioMetadataKeyLABEL to set the record label in the standard metadata of the media object before calling mediaTrackSessionStart:
| code language-brightscript |
|---|
|
Include media.label in the params object:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.