BannerAd

@RequiresPermission(value = "android.permission.INTERNET")
actual fun BannerAd(adUnitId: String, adSize: AdSize, onLoad: () -> Unit)

@RequiresPermission(value = "android.permission.INTERNET")
actual fun BannerAd(ad: BannerAdHandler)

Loads and displays a Banner Ad using a Composable.

Parameters

ad

Your pre-loaded rememberBannerAd

See also

expect fun BannerAd(adUnitId: String = AdUnitId.BANNER_DEFAULT, adSize: AdSize = AdSize.FULL_BANNER, onLoad: () -> Unit = {})

Loads and displays a Banner Ad using a Composable.

Parameters

adUnitId

Your AdMob AdUnitId String

adSize

Your AdMob AdSize

onLoad

Lambda expression that executes after the Google AdRequest has fully loaded

See also


Loads and displays a Banner Ad using a Composable.

Parameters

ad

The BannerAdHandler built within your Composable using rememberBannerAd

See also

actual fun BannerAd(adUnitId: String, adSize: AdSize, onLoad: () -> Unit)