问题
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