To be honest, leadbolt is really good but it won't fulfill all the needs. You can also use AppNext.
Now, this gets a bit complex. You can use a central ad serving platform to integrate more than one ad network. Example, if leadbolt has no ad available at a point, the SSP ( supply side platform ) will let you use some other ad network's ads. This also allows you to use the one which pays you the most.
You can also use video ads or native ads with such SSPs. Two such well-known SSPs are MoPub and Smaato. I am, at the moment, thinking of switching to Smaato as Smaato lets you integrate MoPub too :)
Regards,
Sankarshan
For reference code, have a look at the following thread
https://groups.google.com/forum/m/?pli=1#!searchin/androidscript/leadbolt$20ads/androidscript/BbXJUK09vUE
if(url.slice(0.9)==="market://")
0.9 should be 0,9
It means start at 0 and select 9 characters
So there is jothing wrong with the code you posted. It works ok.
Just try it again. Will post the images in a while
Have you seen this thread? https://groups.google.com/d/msg/androidscript/rM7Ph2PLhqc/cRWKJdu4AwAJ
If not, it won't know how to apply the UseBrowser option.
In the meantime you can go to http://androidscript.org/apk/DroidScript_161/ and download the file apkbuilder.zip then drop it into a folder /sdcard/DroidScript/Plugins
Restart DroidScript and it should install itself
//=========================
var ads = "<html><body style='width: 100%; overflow: hidden; margin: 0 0 0 0;'><script type='text/javascript' src='http://ad.leadbolt.net/show_app_ad.js?section_id=246263530'></script>";
ads += "</body></html>";
//Create a web control.
webhjo_fo = app.CreateWebView( 1, 0.1, "IgnoreErrors,Noscrollbars");
webhjo_fo.SetPosition( 0, 0.91);
webhjo_fo.SetBackColor( "#ffffff" );
webhjo_fo.SetOnProgress( function ()
{
//http:ad.leadbolt.net/clk?ad_id=9705790§ion_id=246263530&cat_id=40&req_id=KLGCNo6-AtE3mHsILLtZMQfvuksfyMhfX-L10r8M_97jgITs-6vP68i1d0qokpfBm9RC68QLVxNSLEHKicpXpQ~~&dev=BysFE4EGEMHW2Szv4QKltRR2ifxe1dRwWGLQVGnB_3y_EWZ4Z34NOTWDT8lNbLsB_XwRMfa-Kt1AyWSkF3zRKNKM7MRnCiPps-sdad2cggOB9zJAkGXlHVbpAlv_Wy8QWh9gGcWYSt4AEGA8KrMPOEbmMw7d_Fb7yqWUqouFITU~&exp=YCU-D9uRP9vDyN_Af9P5ts3fiG40T__W-IrBAwm2tSBdLDkK40GxGzs81wbsXG60
//about:blank
if( webhjo_fo.GetUrl()=="about:blank" || webhjo_fo.GetUrl().indexOf( "ad.leadbolt.net" ) > -1){
}
else {
azzzy = webhjo_fo.GetUrl();
var adsxx = "<html><body style='width: 100%; overflow: hidden; margin: 0 0 0 0;'><script type='text/javascript' src='http://ad.leadbolt.net/show_app_ad.js?section_id=246263530'></script>";
adsxx += "</body></html>";
webhjo_fo.LoadHtml( adsxx );
app.OpenUrl( azzzy );
}
}
);
webhjo_fo.LoadHtml( ads );
layScroll.AddChild( webhjo_fo );
//=========================
I hope this helps....
Regards,
Nikhil