requestAds

fun requestAds(adViewGroup: ViewGroup?)

Requests ads, if they have not already been requested. Ads will be requested automatically when the player is prepared if this method has not been called, so it is only necessary to call this method if you want to request ads before preparing the player.

Parameters

adViewGroup

A ViewGroup on top of the player that will show any ad UI.