This page covers data collection for the Publisher variable. See Publisher for the corresponding reporting dimension.
The publisher variable is the name of the audio content publisher (for example, a podcast network or audiobook publisher). Use it to compare engagement across publishers in a curated audio catalog.
a.media.publisherc_contextdata.a.media.publisherRecommended implementation types
Set publisher inside xdm.mediaCollection.sessionDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the publisher as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.AudioMetadataKeys.PUBLISHER.
| code language-swift |
|---|
|
Pass the publisher as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.AudioMetadataKeys.PUBLISHER.
| code language-kotlin |
|---|
|
Use createMediaSession to set publisher inside sessionDetails:
| code language-brightscript |
|---|
|
Call the sessionStart endpoint with publisher inside xdm.mediaCollection.sessionDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the publisher in the contextData object using ADB.Media.AudioMetadataKeys.Publisher:
| code language-javascript |
|---|
|
Use ADBMobile.media.AudioMetadataKeys.PUBLISHER to set the publisher in the StandardMediaMetadata property of the media object before calling trackSessionStart:
| code language-javascript |
|---|
|
Use MEDIA_AudioMetadataKeyPUBLISHER to set the publisher in the standard metadata of the media object before calling mediaTrackSessionStart:
| code language-brightscript |
|---|
|
Include media.publisher in the params object:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.