error

abstract fun error(payload: ByteArray, elapsedTime: Duration?, macroContext: MacroContext?): ByteArray

Fires the error tracking URLs for the ad described by payload.

Return

an updated payload reflecting the tracking state after the call.

Parameters

payload

serialized ad payload.

elapsedTime

time elapsed since the ad started playing, or null if not applicable.

macroContext

optional context used to expand tracking-URL macros.

Throws


abstract fun error(payload: ByteArray, elapsedTime: Duration?, macroContext: MacroContext?): ByteArray

Java-friendly overload of error accepting a java.time.Duration.

See also