This page covers data collection for the Author variable. See Author for the corresponding reporting dimension.
The author variable is the author of the content (for example, "Eleanor Clementine"). Primarily used for audiobooks, but also acceptable for podcasts whose host or producer is the relevant attribution.
a.media.authorc_contextdata.a.media.authorRecommended implementation types
Set author inside xdm.mediaCollection.sessionDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the author as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.AudioMetadataKeys.AUTHOR.
| code language-swift |
|---|
|
Pass the author as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.AudioMetadataKeys.AUTHOR.
| code language-kotlin |
|---|
|
Use createMediaSession to set author inside sessionDetails:
| code language-brightscript |
|---|
|
Call the sessionStart endpoint with author inside xdm.mediaCollection.sessionDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the author in the contextData object using ADB.Media.AudioMetadataKeys.Author:
| code language-javascript |
|---|
|
Use ADBMobile.media.AudioMetadataKeys.AUTHOR to set the author in the StandardMediaMetadata property of the media object before calling trackSessionStart:
| code language-javascript |
|---|
|
Use MEDIA_AudioMetadataKeyAUTHOR to set the author in the standard metadata of the media object before calling mediaTrackSessionStart:
| code language-brightscript |
|---|
|
Include media.author in the params object:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.