How to add banner or overlay ads in app inventor with leadbolt or any?

1,977 views
Skip to first unread message

Amshak M

unread,
Jun 19, 2015, 6:09:08 AM6/19/15
to mitappinv...@googlegroups.com
Hello , Sorry if this question is posted before but i have some doubts which i couldn't find anywhere properly.
I Have created my first app using app inventor . Now i am willing to add some ads. So I chose leadbolt. I have some doubts regarding this -
  1. I have logged to their website as developer . In some tutorials i had found app overlay(adwall) could be used in leadbolt. You have to log in , Create ad for app . Then Select mobile web as platform , Then you should get 2 options html banner or app overlay as per the tutorial . But I can find only banner ,not app overlay . I didn't know where to search
  2. Can the code created using app overlay be directly copied and pasted in web viewer home url and accessed ?
  3. I then tried the app banner. i got the code . Then what to do ? We have to add some host website then save it as html document and then add it in the home url in web viewer? What is that hosting website and how to add it? I a beginner .So please explain me in detail.
  4. Is there any cleaner and hazel free way to add ads in app inventor 2 ? Which is the easiest way to add ads? And which is better for app inventor - leadbolt, mobpartner, admob or any?
  5. Is there any easy step by step tutorial where i can learn from?
I have posted my app in android freeware for now and made my own website using wix . You can check out here - http://amshak95.wix.com/androidbuzz

I have tried some methods to add ads but failed . I just got blank screen , no ads shown . Please suggest me sollutions for the above problems and help me integrating an add.

Italo

unread,
Jun 19, 2015, 9:32:25 AM6/19/15
to mitappinv...@googlegroups.com
If you are serious about monetizing you app, you should check http://ai-hossein.appspot.com/, It has a customized section called MONETIZING, where you can create ads objects. But it's $69 to start and $5 monthly.

Amshak M

unread,
Jun 19, 2015, 10:01:04 AM6/19/15
to mitappinv...@googlegroups.com
Yes . I have checked that . Its really good and worthy. But i am not professional in creating apps . just started. I thought of creating banner ads or overlay ads and test it first . And provide some apps for the college or so. I can only buy that full version when i am full time app making may be 2 years from now . That's why i require some solution for above problem.

Italo

unread,
Jun 19, 2015, 12:22:06 PM6/19/15
to mitappinv...@googlegroups.com
I tried to add simple image ads once and it worked. I created a web viewer with size 320x50 (or whatever your banner is going to be). Then in my web server I created a page with the 320x50 image ONLY, which is linked to the advertisers site (you can upload the html page as a resource in your project if you don't want to use a server).
Then you check with a clock every second (I do it 250ms) if the current url is the same as the homeurl. If it's not, it means the ad was touched and then you open a browser with the activitystarter.
Does that make sense?

Amshak M

unread,
Jun 20, 2015, 6:18:05 AM6/20/15
to mitappinv...@googlegroups.com
Yes. Thank you. I will try it again. If there is any problem then I will notifiy.

Lior More

unread,
Jun 21, 2015, 4:24:50 AM6/21/15
to mitappinv...@googlegroups.com

Amshak M

unread,
Jun 22, 2015, 3:06:55 AM6/22/15
to mitappinv...@googlegroups.com
Thanks for support . But I have encountered a problem while implementing.I have attached a screenshot of the error with the blocks . Look at what emulator shows. I have set home url to the code that i have got from lead bolt . Why does some random line of codes displaying instead of ads ???? Please solve this issue.

Amshak M

unread,
Jun 22, 2015, 3:09:48 AM6/22/15
to mitappinv...@googlegroups.com

Screen shot of problem is attached here .....

Amshak M

unread,
Jun 24, 2015, 3:19:50 AM6/24/15
to mitappinv...@googlegroups.com
Hello,
I got many doubts cleared here. Leadbolt used to provide app overlay(adwall) option but now it has discontinued it. Now the only option is banner ads from leadbolt. It seems mobpartner is better in some way, but I haven't created any serious apps yet .So i cant get it approved.

Now I have to create a web server and use the code generated in Lead bolt . i havent done this before  So can you tell me how to create a free hosting and how to attach the code there .
Also leadbolt gave me only one code. As far as i know there will be two codes , one to display the banner and other for the click i.e. to lead to the ad page in the browser. So what to do with only one code?

If i get this problem resolved , then i can get my ad display in my app in no time.

Amshak M

unread,
Jun 24, 2015, 9:41:11 AM6/24/15
to mitappinv...@googlegroups.com
Finally I did it . I got the ads working . Leaderbolt banners cannot be implimented as adwalls. In adwalls just copy and paste the url on webview and its done. But leadbolt is not supporting it now. And for banner ads we have to create a web host. I already had a website that I created for free using wix.com. Check out here http://amshak95.wix.com/androidbuzz 
Then I opened the page source of website. Saved it as ad.html in my computer . Then opened it in notepad++ . Pasted the entire code obtained from leadbolt . Then I uploaded it to mit app inventor . And in home url : file:///android_asset/ad.html . Note that ad.html is the file name that you uploaded. And then the usual procedure in blocks : When current url is not equal to home url, Then open activity starter. 
Thats it !!!! Apps online . I tried to install 2 apps from ads myself and 4 or 5 views. i generated 0.33 dollars in my account . I suppose that is a good start. I can generate more if i upload the app to my site. 
For those beginners like me who want to install leadbolt app , I am ready to help.
Cheers!!!!
Amshak.
Reply all
Reply to author
Forward
0 new messages