Banner Ad
Loads and displays a banner ad.
This composable is a simple way to display a banner ad without manual lifecycle management. It creates and loads an AdView and displays it.
Parameters
The ad unit ID for the banner ad.
The size of the banner ad.
A callback invoked when the ad has finished loading.
Displays a pre-loaded banner ad from a BannerAdHandler.
This composable takes a BannerAdHandler (which should be remembered using rememberBannerAd) and manages its lifecycle, pausing, resuming, and destroying the ad in sync with the composable's lifecycle.
Parameters
The BannerAdHandler containing the pre-loaded banner ad.
Loads and displays a Banner Ad using a Composable.
Parameters
Your AdMob AdUnitId String
Your AdMob AdSize
Lambda expression that executes after the Google AdRequest has fully loaded
See also
Loads and displays a Banner Ad using a Composable.
Parameters
The BannerAdHandler built within your Composable using rememberBannerAd