BannerAdController
Controls a single banner ad placement. Handles loading, refresh, and lifecycle. For Compose UI, prefer BannerAdView which manages the controller automatically.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun load(geometry: BannerGeometry? = null, sizePolicy: AdSizePolicy = placement.bannerSizePolicy, requestOptions: AdRequestOptions = placement.requestOptions): AdLoadState
Loads a banner sized for geometry using sizePolicy and requestOptions.
Link copied to clipboard
Reloads the banner, replaying the geometry, size policy AND request options resolved by the most recent load. Fails if nothing has been loaded yet.
Link copied to clipboard
fun BannerAdController.registerAndroidBannerGeometry(geometry: BannerGeometry, sizePolicy: AdSizePolicy, requestOptions: AdRequestOptions)
Link copied to clipboard
fun BannerAdController.registerIosBannerGeometry(geometry: BannerGeometry, sizePolicy: AdSizePolicy, requestOptions: AdRequestOptions)