Adswizz Tracking Engine
Engine responsible for firing ad-tracking events. e.g: impressions, quartiles, errors, custom events, etc.
Each method takes a serialized payload resulted from the AdRequest and an optional MacroContext used to expand any macros (e.g. [MEDIAPLAYHEAD],[ADPLAYHEAD]) present in the tracking URLs before they are fired.
Instances are obtained through Builder class or the AdswizzTrackingEngine.DEFAULT configuration.
Example:
val engine = AdswizzTrackingEngine.Builder()
.withAutomaticTrackingDecisions(TrackingPolicy.ValidatedTrackingPolicy)
.withHttpConfig(myHttpConfig)
.build()
val updatedPayload = engine.started(payload, elapsedTime, macroContext)The tracking engine methods will return an updated payload reflecting the modified ad state by the SDK
Types
Functions
Java-friendly overload of ended accepting a java.time.Duration.
Signals the end of the ad with a specified reson type.
Java-friendly overload of error accepting a java.time.Duration.
Fires the error tracking URLs for the ad described by payload.
Java-friendly overload of onEvent accepting a java.time.Duration.
Fires the tracking URLs associated with the given event (e.g. pause, resume, mute, click).
Java-friendly overload of progress accepting a java.time.Duration.
Fires any quartile / progress tracking URLs whose threshold has been reached at elapsedTime.
Java-friendly overload of started accepting a java.time.Duration.
Signals the beginning of the ad.