lib / tv.smartclip.smartclientandroid.lib / SxAdSlotController / loadAd

loadAd

suspend fun loadAd(adSlot: SxAdSlot): Unit

Request the initialization of the provided ad tag and its optional opener, closer and bumper from the smartcore.

suspend fun loadAd(adTag: String, autoPlay: Boolean = true, opener: String? = null, closer: String? = null, bumper: String? = null): Unit
Deprecated: Use loadAd(SxAdSlot) instead.

Same as SxAdSlotController.loadAd but with Strings instead of Uris for the Url's.

suspend fun loadAd(adTag: String, opener: String? = null, closer: String? = null, bumper: String? = null): Unit
Deprecated: Use loadAd(SxAdSlot) instead.


suspend fun loadAd(adTag: Uri, opener: Uri? = null, closer: Uri? = null, bumper: Uri? = null): Unit
Deprecated: Use loadAd(SxAdSlot) instead.

Same as SxAdSlotController.loadAd with autoPlay set to true.

suspend fun loadAd(adTag: Uri, autoPlay: Boolean = true, opener: Uri? = null, closer: Uri? = null, bumper: Uri? = null): Unit
Deprecated: Use loadAd(SxAdSlot) instead.

Request the initialization of the provided ad tag and its optional opener, closer and bumper from the smartcore.

Parameters

adTag - Uri to Ad-Tag

autoPlay - Boolean starts playback right after the ad tag was loaded. Default is true

opener - Uri to opener

closer - Uri to closer

bumper - Uri to bumper