I want to add leadbolt banner ad in a webview. Here is the ad code below
<script type="text/javascript" src="http://ad.leadboltads.net/show_app_ad.js?section_id=xxxxxxxxx"></script>
How will I add this?
WebView have a method called loadData(). Allow webview load html code directly.You could have a try.
String js_str = "<script type='text/javascript' src='http://ad.leadboltads.net/show_app_ad.js?section_id=xxxxxxxxx'></script>"
WebView webview = new WebView();
webview.loadData(js_str, null, null);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With