How to detect when the user dismisses a interstitial in Admob?

℡╲_俬逩灬. 提交于 2020-01-15 05:33:47

问题


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!


回答1:


AdListener#onAdClosed

See Play - AdListener



来源:https://stackoverflow.com/questions/20486156/how-to-detect-when-the-user-dismisses-a-interstitial-in-admob

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!