This page covers data collection for the Show type variable. See Show type for the corresponding reporting dimension.
The show type variable identifies the content format using a string integer code:
"0": Full episode"1": Preview or trailer"2": Clip"3": Other
Use it to separate full-program viewing from short-form content like trailers and clips when measuring engagement.
a.media.typec_contextdata.a.media.typeRecommended implementation types
Set showType inside xdm.mediaCollection.sessionDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the show type as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.SHOW_TYPE.
| code language-swift |
|---|
|
Pass the show type as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.SHOW_TYPE.
| code language-kotlin |
|---|
|
Use createMediaSession to set showType inside sessionDetails:
| code language-brightscript |
|---|
|
Call the sessionStart endpoint with showType inside xdm.mediaCollection.sessionDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the show type in the contextData object using ADB.Media.VideoMetadataKeys.ShowType:
| code language-javascript |
|---|
|
Use ADBMobile.media.VideoMetadataKeys.SHOW_TYPE to set the show type in the StandardMediaMetadata property of the media object before calling trackSessionStart:
| code language-javascript |
|---|
|
Include media.showType in the params object:
| code language-json |
|---|
|
See the Media Collection API sessions reference for the full request structure.