MVPD

This page covers data collection for the MVPD variable. See MVPD for the corresponding reporting dimension.

The MVPD (multichannel video programming distributor) variable is the cable, satellite, or virtual-MVPD provider through which the user authenticated (for example, "Comcast", "DirecTV", or "YouTubeTV"). Set it when content is gated behind Adobe Pass or TV-Everywhere authentication. Pair with Authorized to track which sessions completed authentication.

Property
Value
Context data variable
a.media.pass.mvpd
XDM collection field
xdm.mediaCollection.sessionDetails.mvpd
Audience Manager trait
c_contextdata.a.media.pass.mvpd
Required
No
Sent with
Session start, session close
Web SDK

Set mvpd inside xdm.mediaCollection.sessionDetails when calling sendEvent:

code language-javascript
alloy("sendEvent", {
  xdm: {
    eventType: "media.sessionStart",
    mediaCollection: {
      sessionDetails: {
        mvpd: "Comcast"
      },
      playhead: 0
    }
  }
});
iOS

Pass the MVPD as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.MVPD.

code language-swift
var metadata: [String: String] = [:]
metadata[MediaConstants.VideoMetadataKeys.MVPD] = "Comcast"

tracker.trackSessionStart(info: mediaObject, metadata: metadata)
Android

Pass the MVPD as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.MVPD.

code language-kotlin
val metadata = HashMap<String, String>()
metadata[MediaConstants.VideoMetadataKeys.MVPD] = "Comcast"

tracker.trackSessionStart(mediaInfo, metadata)
Roku Edge

Use createMediaSession to set mvpd inside sessionDetails:

code language-brightscript
m.aepSdk.createMediaSession({
    "xdm": {
        "eventType": "media.sessionStart",
        "mediaCollection": {
            "sessionDetails": {
                "mvpd": "Comcast"
            },
            "playhead": 0
        }
    }
})
Media Edge API

Call the sessionStart endpoint with mvpd inside xdm.mediaCollection.sessionDetails:

code language-json
{
  "events": [{
    "xdm": {
      "eventType": "media.sessionStart",
      "mediaCollection": {
        "sessionDetails": {
          "name": "video-123",
          "length": 128,
          "contentType": "vod",
          "playerName": "HTML5 Player",
          "channel": "Sports",
          "mvpd": "Comcast"
        },
        "playhead": 0
      }
    }
  }]
}

Legacy implementation types (Analytics-only)

Media SDK JS 3.x

Pass the MVPD in the contextData object using ADB.Media.VideoMetadataKeys.MVPD:

code language-javascript
var contextData = {};
contextData[ADB.Media.VideoMetadataKeys.MVPD] = "Comcast";

tracker.trackSessionStart(mediaInfo, contextData);
Chromecast

Use ADBMobile.media.VideoMetadataKeys.MVPD to set the MVPD in the StandardMediaMetadata property of the media object before calling trackSessionStart:

code language-javascript
var mediaInfo = ADBMobile.media.createMediaObject("My Video", "video-123", 128,
  ADBMobile.media.StreamType.VOD, ADBMobile.media.MediaType.Video);
var standardMetadata = {};
standardMetadata[ADBMobile.media.VideoMetadataKeys.MVPD] = "Comcast";
mediaInfo[ADBMobile.media.MediaObjectKey.StandardMediaMetadata] = standardMetadata;
ADBMobile.media.trackSessionStart(mediaInfo, null);
Roku 2.x

Use MEDIA_VideoMetadataKeyMVPD to set the MVPD in the standard metadata of the media object before calling mediaTrackSessionStart:

code language-brightscript
adb = ADBMobile()
mediaInfo = adb_media_init_mediainfo("My Video", "video-123", 128.0, adb.MEDIA_STREAM_TYPE_VOD, adb.MEDIA_TYPE_VIDEO)

standardMetadata = {}
standardMetadata[adb.MEDIA_VideoMetadataKeyMVPD] = "Comcast"
mediaInfo[adb.MEDIA_STANDARD_MEDIA_METADATA] = standardMetadata

adb.mediaTrackSessionStart(mediaInfo, invalid)
Media Collection API

Include media.pass.mvpd in the params object:

code language-json
{
  "playerTime": { "playhead": 0, "ts": 1699523820000 },
  "eventType": "sessionStart",
  "params": {
    "media.pass.mvpd": "Comcast"
  }
}

See the Media Collection API sessions reference for the full request structure.

recommendation-more-help
media-analytics-help