I have found a similar question asked which was answered for AdMob, but has no examples for ironSource or Unity LevelPlay ads.
For AdMob:
AndroidView(
modifier = modifier.fillMaxWidth(),
factory = { context ->
AdView(context).apply {
adSize = AdSize.BANNER
adUnitId = context.getString(R.string.ad_id_banner)
loadAd(AdRequest.Builder().build())
}
}
)
So for the above it looks like you would need a class similar to AdMob AdView but I was struggling to get this working with ironSource.
Is it possible to show ironSource ads with Android Jetpack Compose?
You can use Android view similar to the example you have shared. You just need to
inflatethe Banner Layout and additionally setlevelplaylisteners to this layout, finally load banner by passing the layout.Example, use the below code in your composable.
And then set the listeners on this layout and load banner.