Код: Выделить всё
fun showInterstitial() {
if (mInterstitialAd != null) {
mInterstitialAd?.show(this)
} else {
Log.d("MainActivity", "The interstitial ad wasn't ready yet.")
}
}
Спасибо за ответ!
Подробнее здесь: https://stackoverflow.com/questions/690 ... e-function