trackVideoAdView
abstract fun trackVideoAdView(durationMs: Long, adProperties: AdTracker.AdProperties?, pageProperties: MediaTracker.PageProperties?, customEventProperties: EventProperties? = null): AdTracker
Track a VideoAdView event and return an AdTracker for tracking video ad playback and interaction.
A VideoAdView event is tracked on creation. The tracker is started in a paused state. If the ad is auto-played then you will need to call AdTracker.play to begin tracking engagement and ensure the completion event properties are correct.
For more information see the AdTracker documentation.
Parameters
durationMs
The duration of the video ad in milliseconds. If the duration is unknown use the AdTracker.UNKNOWN_DURATION constant. Without a duration percentage completion will not be tracked
adProperties
Optional - properties of the video ad
pageProperties
Optional - properties of the page hosting the video ad
customEventProperties
Optional - custom event properties