AdManager

Interface used by AdRequest to expose the API required for ad management.

Properties

Link copied to clipboard

AdMacroProvider implementation can be set on this field.
default value is inherited from com.adswizz.core.adFetcher.AdswizzAdRequest.Builder.withAdMacroProvider

Link copied to clipboard

Ad manager settings object

Functions

Link copied to clipboard
abstract fun pause()

Pauses the ad.

Link copied to clipboard
abstract fun play()

Starts the ad.

Link copied to clipboard
abstract fun prepare()

Prepares and loads the ads.

Link copied to clipboard

Remove current AdManagerListener

Link copied to clipboard
abstract fun reset()

Causes the ad manager to stop the ad and clean its internal state.

Link copied to clipboard
abstract fun resume()

Resumes the advertisement.

Link copied to clipboard
abstract fun setListener(listener: AdManagerListener)

Set a listener. Setting a new value it would override current one. Call removeAdManagerListener when listener is not needed anymore.
Param listener that needs to be notified

Link copied to clipboard
abstract override fun skipAd()

If an ad break is currently playing, discard it and resume content. Otherwise, ignore the next scheduled ad break.

open fun skipAd(error: Error)

Skip current ad with an error reason Does not track skip event, but fires error with Vast code 400
error: error for which skipAd is called (used by player play error)