I have read https://developers.google.com/admob/android/quick-start?hl=en-US#import_the_mobile_ads_sdk
I need to initialize MobileAds using Code A in order to display Ad
MobileAds.initialize(this, "YOUR-APP-ID") has deprecated. Use the below code instead.
MobileAds.initialize(this, "YOUR-APP-ID")
import android.app.Application import com.google.android.gms.ads.MobileAds class MyApp: Application() { override fun onCreate() { MobileAds.initialize(applicationContext) super.onCreate() } }