私は成功しましたインタースティシャル広告admobの実装ですが、1つの問題があります。なぜインタースティシャル広告が常にアプリに表示されるのか、このインタースティシャル広告が原因でアプリを再生できません
アプリを起動するたびにインタースティシャル広告を 1 つだけ表示する方法を教えてください。
ここで私のアプリのアクティビティのコード:
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();
}
}