Android Kotlin - Adview Adsize: Val nie można przenieść

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