0
InterstitialAd minterstitialAd;

protected void onCreate(Bundle savedInstanceState) {
minterstitialAd = new InterstitialAd(this);
        minterstitialAd.setAdUnitId(" ca-app-pub-XXXX/XXX");
        AdRequest adRequest1 = new AdRequest.Builder().build();
        minterstitialAd.loadAd(adRequest1);
}
public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == R.id.ayarlar_menu) {
         minterstitialAd.show();
     }
}

Don't load Ad. I add this code Work this code. Why Don't load my Ad? please help me. I try 3 days to resolve

minterstitialAd.setAdListener(new AdListener() {
            @Override
            public void onAdFailedToLoad(int errorCode) {
                txtsum.setText("asdas");
            }
        });
Dynasty
  • 29
  • 4
  • have you seen the accepted answer given here: http://stackoverflow.com/questions/20854789/admob-interstitial-ad-wont-display – smoggers Jul 23 '15 at 10:10

1 Answers1

0

1) In my case, interstitial ad don't showing because I used test ID for it. After I change it to normal ID problem gone.

2) Before showing interstitial ad, check if it was already loaded. Maybe it still loading when you try to call it?

ITurchenko
  • 1,828
  • 2
  • 17
  • 24
  • i found solition i was put extra space in there minterstitialAd.setAdUnitId(" ca-app-pub-XXXX/XXX"); – Dynasty Jul 23 '15 at 14:04