createLinear

open fun <T> createLinear(id: String, title: String, adSystem: String, startMs: Long, endMs: Long, clickThrough: URI, clickTracking: List<URI>, adTracking: Multimap<TrackingType, TrackingEvent>, creativeTracking: Multimap<TrackingType, TrackingEvent>, rawAd: T): Ad

Creates a linear Ad with optional click-through and tracking events. Used by Live 2.0 SSAI to build real Ads from the tracking API response.

Parameters

id

ad identifier

title

ad title

adSystem

ad system name

startMs

absolute start position in milliseconds

endMs

absolute end position in milliseconds

clickThrough

click-through URI (null if no click-through)

clickTracking

click tracking URIs (empty if no click tracking)

adTracking

ad-level tracking events (impression, error)

creativeTracking

creative-level tracking events (start, quartiles, complete)

rawAd

raw source object for reference