我成功实施了插页式广告 admob,但我有 1 个问题,为什么插页式广告总是在我的应用程序上每秒显示一次,所以我无法播放我的应用程序,因为这个插页式广告
任何人都想帮助我如何让插页式广告在每次应用启动时只显示 1 个插页式广告
这是我的应用程序 Activity 上的代码:
public class Activity extends Activity implements AdListener {
WebView mWebView;
private InterstitialAd interstitial;
.......
interstitial = new InterstitialAd(this, "a15xxxxxxxxxx");
AdRequest adRequest = new AdRequest();
interstitial.loadAd(adRequest);
interstitial.setAdListener(this);
.......
public void onReceiveAd(Ad ad) {
Log.d("OK", "Received ad");
if(interstitial.isReady()) {
interstitial.show();
}
}