当细分广告(全屏广告)被解散时,我需要启动热门广告请求。为热门广告设置adlistener时代码崩溃。我该如何解决?谢谢。
Intersticial is requested on onCreate,
interstitial = new InterstitialAd(this, ID_for_my_App);
AdRequest adRequest = new AdRequest();
interstitial.loadAd(adRequest);
interstitial.setAdListener(this);
当被解雇时,应该请求热门广告但是崩溃,
@Override
public void onDismissScreen(Ad ad)
{
interstitial.setAdListener(null);
adMob.setAdListener(this);
AdRequest adRequest = new AdRequest();
adMob.loadAd(adRequest);
}