override fun onCreate(savedInstanceState: Bundle?) {
initIntestinalAd()
}
private fun initIntestinalAd() {
val handler = Handler(Looper.getMainLooper())
handler.postDelayed(object: Runnable{
override fun run() {
Utils.loadInterstitialAd(applicationContext)
handler.postDelayed(this, 120000)
}
}, 30000)
}
Hello, since the application does not have a click function, I had to add the advertisement like this, but when the application is closed, the advertisement appears only when the application is active, how can I make it work?