如何当用户退出在Admob的一个间隙检测? [英] How to detect when the user dismisses a interstitial in Admob?
本文介绍了如何当用户退出在Admob的一个间隙检测?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近搬到我的广告,以较新的版本(现在使用com.google.android.gms.ads),但我意识到,我现在缺少的东西很重要。我曾经是能够检测,当用户驳回了他们的间质与OnDismissScreen,但现在看起来这不再是一个选项:
我以前做的:
@覆盖
公共无效onDismissScreen(广告为arg0){
间质性=新InterstitialAd(这一点,的appid);
interstitial.loadAd(新AdRequest());
interstitial.setAdListener(本);
}
有没有任何形式的Admob的新版本相当于?
谢谢!
解决方案
AdListener#onAdClosed
I recently moved my ads to the newer version (now uses com.google.android.gms.ads), but I realised that I am now missing something quite important. I used to be able to detect when the user dismissed their interstitial with OnDismissScreen, but now it looks like this is no longer an option:
I used to do:
@Override
public void onDismissScreen(Ad arg0) {
interstitial = new InterstitialAd(this, "appid");
interstitial.loadAd(new AdRequest());
interstitial.setAdListener(this);
}
Is there any sort of equivalent in the newer version of Admob?
Thanks!
解决方案
AdListener#onAdClosed
这篇关于如何当用户退出在Admob的一个间隙检测?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文