Skip to content

Support for AdSize.getLargeAnchoredAdaptiveBannerAdSize #141

Description

@vanniktech

There's this new getLargeAnchoredAdaptiveBannerAdSize method on Android. Can we also somehow provide it via the AdSize? Ideally like this:

@Composable actual fun rememberBanner(adUnitId: String?): MutableState<BannerAdHandler> {
  val width = LocalWindowInfo.current.containerSize.width
  val adSize = AdSize.getLargeAnchoredAdaptiveBannerAdSize(width = width)

  return rememberBannerAd(
    adUnitId = adUnitId ?: AdUnitId.BANNER_DEFAULT,
    adSize = adSize,
  )
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions