This page covers data collection for the Authorized variable. See Authorized for the corresponding reporting metric.
The authorized variable flags a session whose user has been authorized through Adobe Pass / TV-Everywhere. Set it to "TRUE" when authorization is confirmed; leave it unset otherwise. Pair with MVPD to break out authentication by provider.
a.media.pass.authc_contextdata.a.media.pass.authWeb SDK
Set authorized inside mediaCollection.sessionDetails when calling sendEvent:
alloy("sendEvent", {
xdm: {
eventType: "media.sessionStart",
mediaCollection: {
sessionDetails: {
authorized: "TRUE"
},
playhead: 0
}
}
});
Mobile SDK
Pass the authorized flag as a metadata key in the HashMap argument to trackSessionStart. Use MediaConstants.VideoMetadataKeys.AUTHORIZED.
iOS (Swift)
var metadata: [String: String] = [:]
metadata[MediaConstants.VideoMetadataKeys.AUTHORIZED] = "TRUE"
tracker.trackSessionStart(info: mediaObject, metadata: metadata)
Android (Kotlin)
val metadata = HashMap<String, String>()
metadata[MediaConstants.VideoMetadataKeys.AUTHORIZED] = "TRUE"
tracker.trackSessionStart(mediaInfo, metadata)
Roku (BrightScript)
Use createMediaSession to set authorized inside sessionDetails:
m.aepSdk.createMediaSession({
"xdm": {
"eventType": "media.sessionStart",
"mediaCollection": {
"sessionDetails": {
"authorized": "TRUE"
},
"playhead": 0
}
}
})
Media Edge API
Call the sessionStart endpoint with authorized inside mediaCollection.sessionDetails:
{
"events": [{
"xdm": {
"eventType": "media.sessionStart",
"mediaCollection": {
"sessionDetails": {
"name": "video-123",
"length": 128,
"contentType": "vod",
"playerName": "HTML5 Player",
"channel": "Sports",
"authorized": "TRUE"
},
"playhead": 0
}
}
}]
}
Media SDK
Pass the authorized flag in the contextData object using ADB.Media.VideoMetadataKeys.Authorized:
var contextData = {};
contextData[ADB.Media.VideoMetadataKeys.Authorized] = "TRUE";
tracker.trackSessionStart(mediaInfo, contextData);
Media Collection API
Include media.pass.auth in the params object:
{
"playerTime": { "playhead": 0, "ts": 1699523820000 },
"eventType": "sessionStart",
"params": {
"media.pass.auth": "TRUE"
}
}
See the Media Collection API sessions reference for the full request structure.