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.
Asked
Active
Viewed 1,531 times
-2
-
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 Answers
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
-
-
AdRequest.Builder giving error.Eclipse offer Fix Project Setup when i pressed it.opening JAR library.i added gooogle ads SDK ? – Berk kk Apr 15 '14 at 07:31
-
-
-
-