Comments

Use LeadBolt to show ads in an Android WebView — 10 Comments

    • If you area already displaying your HTML5 content, just make some space and add the JS snippet into your page. No webview needed. That’s the great thing about JS-based ad serving, it can be displayed anywhere that JavaScript can be used.

      If you are looking to display HTML5 in a webview, I’m not sure how well that is supported. Older versions of Android do not support HTML5 much at all, so developers have used technologies like PhoneGap and other frameworks to create an app from HTML content.

  1. Thanks. I just bought Android App Network. I only wanted to start with leadbolt for now. Would you know if leadbolt has some JS snippet that we can use? Really want to start this working asap.

    • The HTML snippet above in the article (on the “String html =” line) is all you need to display the ad. Just insert your own ad ID in the appropriate spot and you’re good to go!

  2. Hi, when I show the webview in my app, if i click on the banner the link is not opened in a new window but in the banner area and gets cropped of course? Is this because the banner is in test mode? My app has not been approved yet by leadbolt. Dave

  3. Never mind, it’s fixed. I am using a MoPub webview with leadbolt html banner code and inserting the code below to get the links to open in the default browser rather than in the banner frame. Now my app has no extra SDK’s, permissions to use 😛