Client-side ad-tracking schema and properties
With the MediaTailor client-side ad-tracking feature, you can integrate detailed client-side ad tracking data into your player environment. The following sections cover the overall ad-tracking schema, as well as the specific properties and values that make up the schema.
Schema
The following JSON structure shows the MediaTailor client-side ad-tracking schema. This representation illustrates the nesting structure of the schema to help you understand the relationships between different parts.
For detailed information about each property, see Properties.
{ "avails": [ { "ads": [ { "adID": "string", "adParameters": "string", "adSystem": "string", "adTitle": "string", "adVerifications": [ { "executableResource": [ { "apiFramework": "string", "type": "string", "uri": "string", "language": "string" } ], "javaScriptResource": [ { "apiFramework": "string", "browserOptional": "string", "uri": "string" } ], "trackingEvents": [ { "event": "string", "uri": "string" } ], "vendor": "string", "verificationParameters": "string" } ], "companionAds": [ { "adParameters": "string", "altText": "string", "attributes": { "adSlotId": "string", "apiFramework": "string", "assetHeight": "string", "assetWidth": "string", "expandedHeight": "string", "expandedWidth": "string", "height": "string", "id": "string", "pxratio": "string", "renderingMode": "string", "width": "string" }, "companionClickThrough": "string", "companionClickTracking": "string", "htmlResource": "string", "iFrameResource": "string", "sequence": "string", "staticResource": "string", "trackingEvents": [ { "event": "string", "uri": "string" } ] } ], "creativeId": "string", "creativeSequence": "string", "duration": "string", "durationInSeconds": number, "extensions": [ { "type": "string", "content": "string" } ], "icons": [ { "attributes": { "apiFramework": "string", "duration": "string", "height": "string", "offset": "string", "program": "string", "pxratio": "string", "width": "string", "xPosition": "string", "yPosition": "string" }, "htmlResource": "string", "iconClicks": { "iconClickThrough": "string", "iconClickTracking": { "id": "string" }, "iconClickFallbackImages": [ { "altText": "string", "height": "string", "width": "string", "staticResource": { "creativeType": "string", "uri": "string" } } ] }, "iconViewTracking": "string", "iFrameResource": "string", "staticResource": { "creativeType": "string", "uri": "string" } } ], "mediaFiles": { "adParameters": "string", "duration": "string", "durationInSeconds": number, "mediaFilesList": [ { "apiFramework": "string", "delivery": "string", "height": "string", "maintainAspectRatio": "string", "mediaFileUri": "string", "mediaType": "string", "scalable": "string", "width": "string", "bitrate": "string" } ], "mezzanine": "string", "startTime": "string", "startTimeInSeconds": number, "trackingEvents": [ { "beaconUrls": ["string"], "duration": "string", "durationInSeconds": number, "dateTime": "string", "eventId": "string", "eventType": "string", "startTime": "string", "startTimeInSeconds": number } ] }, "startTime": "string", "startTimeInSeconds": number, "dateTime": "string", "adBreakTrackingEvents": [...], "vastAdId": "string" } ], "adType": "string", "availID": "string", "duration": "string", "durationInSeconds": number, "startTime": "string", "startTimeInSeconds": number, "dateTime": "string", "adMarkerDuration": "string", "adProgramDateTime": "string", "dashAvailabilityStartTime": "string", "hlsAnchorMediaSequenceNumber": "string" } ], "nonLinearAvails": [ { "nonLinearAds": [...], "nonLinearAdsList": [...] } ], "nextToken": "string", "meta": {} }
Properties
The following table lists the properties in the client-side tracking API, their definitions, value types, and examples.
Property | Definition | Value type | Example |
---|---|---|---|
adID
|
Path: VAST mapping: None |
String | 10 |
adBreakTrackingEvents
|
An array that carries VMAP tracking events from the VAST response.
For more information, see section 2.3.3 of the VMAP 1.0
specification Path: |
Array |
[]
|
adMarkerDuration
|
The avail duration observed from the ad marker in the manifest. |
String |
30
|
adParameters
|
A string of ad parameters, from the VAST VPAID, that MediaTailor passes to the player. Path: VAST mapping: |
String | |
adProgramDateTime
|
|
String | |
ads
|
An array containing the ad objects that make up the avail. The ads are listed in the order they appear in the manifest. Path: |
Array |
[]
|
adSystem
|
The name of the system that serves the ad. ImportantMake sure to provide a value. If you don't provide a value, issues can arise. |
String |
myADS
|
adTitle
|
The title of the ad. |
String |
ad1
|
adVerifications
|
Contains the resources and metadata required to execute
third-party measurement code in order to verify creative playback.
For more information about this property, see section 3.16 of the
VAST 4.2
specification MediaTailor supports Path: VAST mapping: |
Array |
[]
|
altText
|
The alternative text for an image of a companion ad. This text enables players with descriptive-audio support for the visually impaired to read back a description of the image. Path: |
String |
video sequence advertising sneakers
|
apiFramework
|
Set to Can appear in multiple locations in the schema. |
String |
VPAID
|
availID
|
Path: |
String |
|
avails
|
An array containing ad-break objects, or avails, that are presented in the active manifest window. The avails are listed in the order they appear in the manifest. Path: |
Array |
[]
|
adType
|
The type of the ad. Path: |
String | |
dateTime
|
Program date time, in ISO 8601 seconds format, for the start of the ad avail or ad. Path: |
String | |
duration
|
Length, in ISO 8601 seconds format. The response includes durations for the entire ad avail and for each ad and beacon, though beacon durations are always zero. Path: |
String | 15.015 |
durationInSeconds
|
Length, in seconds format. Path: |
Number | |
extensions
|
Custom extensions of VAST that ad servers use. For more information about extensions, see section 3.18 of the VAST 4.2 specification Path: VAST mapping: |
Array | [] |
icons
|
Icon elements for the ad. Path: VAST mapping: |
Array | |
mediaFiles
|
Video and other assets that the player needs for the ad avail. Path: |
Object | |
nonLinearAvails
|
Array of non-linear ad avail objects. Path: |
Array | |
executableResource
|
Executable resources for verification. Path: VAST mapping: |
Array | |
javaScriptResource
|
JavaScript resources for verification. Path: VAST mapping: |
Array | |
trackingEvents
|
Tracking events for verification or companion ads. Path: |
Array | |
vendor
|
Verification vendor. Path: VAST mapping: |
String | |
uri
|
URI that points to either an executable asset, a video asset, or a tracking endpoint. Path: Various locations in the schema VAST mapping: Various CDATA elements in VAST |
String | https://tracking.example.com/impression |
verificationParameters
|
Verification parameters. Path: VAST mapping: |
String | |
attributes
|
Companion ad attributes like dimensions and rendering mode. Path: |
Object | |
companionClickThrough
|
A URL to the advertiser's page that the media player opens when the viewer clicks the companion ad. Path: VAST mapping: |
String | https://aws.amazon.com/ |
companionClickTracking
|
The tracking URL for the Path: VAST mapping: |
String | https://myads.com/beaconing/event=clicktracking |
htmlResource
|
The CDATA-encoded HTML that's inserted directly within the streaming provider's HTML page. Path: VAST mapping: |
String | <![CDATA[<!doctype html><html><head><meta name=\"viewport\" content=\"width=1, initial-scale=1.0, minimum-scale=1.0,...]]> |
iFrameResource
|
The URL to an HTML resource file that the streaming provider loads into an iframe. Path: VAST mapping: |
String | |
sequence
|
The sequence value specified for the creative in the VAST response. Path: |
String | 1 |
startTime
|
The time position, in ISO 8601 seconds format. For HLS, this is relative to the beginning of the playback session. For DASH, this is relative to the manifest's AST (Availability Start Time). The response includes start times for the entire ad avail and for each ad and beacon. Path: |
String | PT18.581355S |
startTimeInSeconds
|
The time position, in seconds format. For HLS, this is relative to the beginning of the playback session. For DASH, this is relative to the manifest's AST (Availability Start Time). The response includes start times for the entire ad avail and for each ad and beacon. Path: |
Number | 18.581 |
eventId
|
|
String | |
event
|
The name of the tracking event. Path: |
String | impression , start , firstQuartile , midpoint , thirdQuartile , complete |
beaconUrls
|
The URL where MediaTailor sends the ad beacon. Path: |
Array | |
bitrate
|
The bitrate of the video asset. This property is not typically included for an executable asset. |
String | 2048 |
companionAds
|
One or more companion ad-content specifications, each of which specifies a resource file to use. Companion ads accompany the ad avail and provide content, like a frame around the ad or a banner, to display near the video. Path: |
Array | [] |
creativeId
|
The |
String | creative-1 |
creativeSequence
|
The sequence in which an ad should play, according to the |
String | 1 |
dashAvailabilityStartTime
|
For live/dynamic DASH, the |
String | 2022-10-05T19:38:39.263Z |
delivery
|
Indicates whether a |
String | progressive |
eventType
|
The type of beacon. Path: |
String | impression |
height
|
The height, in pixels, of the video asset. |
String | 360 |
hlsAnchorMediaSequenceNumber
|
The media-sequence number of the first/oldest media sequence seen in the HLS origin manifest. |
String | 77 |
maintainAspectRatio
|
Indicates whether to maintain the video's aspect ratio while scaling. |
Boolean | true |
mediaFilesList
|
Specifies the video and other assets that the player needs for the ad avail. Path: |
Array | [] |
mediaFileUri
|
URI that points to either an executable asset or a video asset. |
String | https://myad.com/ad/ad134/vpaid.js |
mediaType
|
The MIME type of the creative or companion asset. |
String | video/mp4 |
meta
|
Additional metadata for the ad. |
Object | |
mezzanine
|
The URL of the mezzanine MP4 asset, specified if the VPAID ad includes one. Path: |
String | https://gcdn.2mdn.net/videoplayback/id/itag/ck2/file/file.mp4 |
nextToken
|
The value of the token that points to the next page of results, when such a value exists. |
String | UFQzOS44NzNTXzIwMjMtMDctMzFUMTY6NTA6MDYuMzUwNjI2ODQ1Wl8x |
nonLinearAds
|
Non-linear ads that appear alongside the video content. |
Array | [] |
nonLinearAdsList
|
List of non-linear ads. |
Array | [] |
scalable
|
Indicates whether to scale the video to other dimensions. |
Boolean | true |
skipOffset
|
The time value that identifies when the player makes skip controls available to the user. |
String | 00:00:05 |
staticResource
|
The URL to a static creative file that's used for the ad component. Path: |
String | https://very-interactive-ads.com/campaign1/file.json?c=1019113602 |
vastAdId
|
The |
String | ad1 |
width
|
The width, in pixels, of the video asset. |
String | 640 |
xPosition
|
The horizontal position of an icon within the video player. Can be a specific pixel value or a position like "left" or "right". Path: |
String | left or 10 |
yPosition
|
The vertical position of an icon within the video player. Can be a specific pixel value or a position like "top" or "bottom". Path: |
String | top or 10 |
iconClicks
|
Contains click-through and tracking information for an icon. Path: |
Object | |
iconClickThrough
|
A URL to the advertiser's page that the media player opens when the viewer clicks the icon. Path: |
String | https://advertiser.com/landing-page |
iconClickTracking
|
The tracking URL for the Path: |
Object | |
iconClickFallbackImages
|
An array of fallback images to display if the icon cannot be displayed. Path: |
Array | |
iconViewTracking
|
The URL for tracking when an icon is viewed. Path: |
String | https://tracking.example.com/icon-view |
offset
|
The time offset for when an icon should appear during ad playback. Path: |
String | 00:00:05 |
program
|
The program or initiative associated with the icon, such as "AdChoices". Path: |
String | AdChoices |
pxratio
|
The pixel ratio for the icon or companion ad, used for high-DPI displays. Path: |
String | 1 or 2 |
type
|
The type of resource or extension. Path: |
String | text/javascript |
content
|
The content of an extension. Path: |
String | |
language
|
The programming language of an executable resource. Path: |
String | javascript |
browserOptional
|
Indicates whether browser support is required for the JavaScript resource. Path: |
String | true or false |
id
|
An identifier for various elements in the schema. Path: |
String | companion-1 |
assetHeight
|
The height of the companion ad asset. Path: |
String | 250 |
assetWidth
|
The width of the companion ad asset. Path: |
String | 300 |
expandedHeight
|
The height of the companion ad when expanded. Path: |
String | 600 |
expandedWidth
|
The width of the companion ad when expanded. Path: |
String | 600 |
renderingMode
|
The rendering mode for the companion ad. Path: |
String | default or transparent |
adSlotId
|
The ID of the ad slot where the companion ad should be displayed. Path: |
String | banner-1 |
creativeType
|
The MIME type of the creative asset. Path: |
String | image/png |