Android Kotlin - Adview Adsize: Val tidak dapat dipindahkan

Admob 21.0.0 changed the way to set ad size directly. You can use the setAdSize method.

MobileAds.initialize(this) { }

val adViewBottom = AdView(this)
adViewBottom.setAdSize(AdSize.BANNER)
abdullah