trackAdView

abstract fun trackAdView(durationMs: Long, adProperties: AdTracker.AdProperties?): AdTracker

Tracks an ad view and returns an AdTracker. The initial ad view event and all other ad events tracked with the ad tracker will share the view ID of the events tracked through this MediaTracker instance.

Parameters

durationMs

The duration of the ad in milliseconds. If unknown use the AdTracker.UNKNOWN_DURATION constant

adProperties

Optional ad properties