-2

Hello i got a webview project.I wanna add interstitials ads for my project.i have a banner ads but i wanna add one more full screen ads.how can i do this ? anyone help me ? my xml have a only webview (webView) and ads (adsView).thanks all right.

recnac
  • 3,744
  • 6
  • 24
  • 46
Berk kk
  • 3
  • 1
  • 8
  • Can you provide some additional detail? – Luigi Apr 23 '14 at 03:05
  • Yes I want add interstitial ads.i got publisher Id by admob.im doing required ads comments but it's not doing.u got teamviewer u can connect my pc ? – Berk kk Apr 23 '14 at 03:09

1 Answers1

0

add the following lines of code in your activity

   interstitial = new InterstitialAd(this);
  interstitial.setAdUnitId("ca-app-pub-6046034785851961/xxxxxx");

   // Create ad request.
    AdRequest adRequest = new AdRequest.Builder().build();

     // Begin loading your interstitial.
     interstitial.loadAd(adRequest);


      interstitial.setAdListener(new AdListener(){
      public void onAdLoaded(){
           displayInterstitial();
      }
      });
Maxwell
  • 552
  • 2
  • 5
  • 20