Test ad(Interstitial) always shows but not another, why?

时间:2018-03-20 09:36:01

标签: android-studio interstitial

//**i have this in my onCreate**//
    mInterstitial = new InterstitialAd(this);
    mInterstitial.setAdUnitId(getResources().getString(<my another 
    ad_unit_id>));
    mInterstitial.setAdListener(new AdListener() {
@Override
        public void onAdClosed() {
            mInterstitial.loadAd(adRequest);
            Log.d(TAG, "Interstitial Ad = onAdClosed()");
        }
mInterstitial.loadAd(adRequest);

public void onBackPressed() {
    super.onBackPressed();
    displayInterstitial();
    Log.d(TAG,"APP = onBackPressed()");
}
 protected void displayInterstitial() {
    Log.d(TAG, "start displayInterstitial()");
    if (null!=mInterstitial&&mInterstitial.isLoaded()) {
        Log.d(TAG, "displayInterstitial() loaded");
        mInterstitial.show();
    }
    Log.d(TAG, "end displayInterstitial()");
}

when i put test add(interstitial) it appears after backpress_ but another interstitial ad could not load.

1 个答案:

答案 0 :(得分:0)

我认为您的Wi-Fi联系很差。

相关问题