/** * Pops interstitial ads from the queue until it finds one that * has not exceeded the 60 second timeout, and displays it in a * new activity. All ads in the queue which have exceeded the * timeout are removed. * * @return The number of remaining ads in the queue that do not * exceed the timeout. */ public int show() { return showWithAutoDismissDelay(-1); }
@Override public void onAdLoaded(AdView adView) { Clog.w(TestUtil.testLogTag, "BaseViewAdTest onAdLoaded"); adLoaded = true; if (adView.getMediaType() == MediaType.BANNER) { isBannerLoaded = true; } if (adView.getMediaType() == MediaType.INTERSTITIAL) { if (enableInterstitialShowonLoad) { if (isAutoDismissDelay) { interstitialAdView.showWithAutoDismissDelay(5); } else { interstitialAdView.show(); } } } }