Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 97

sanamionline
Aspiring developer
Profile
Posts: 61
Reg: Jul 22, 2012
Yulin, Guangxi
3,510
12/15/12 11:35 PM (13 years ago)

Adding Leadbolt Ads

Hi I'm trying to add LeadBolt ads to may android app. The instructions say to add the pubiapp.jar and pubxappCom.jar files to my project's libs folder. What do I do when there is no libs folder, can I create one? The document also says to add 3 lines of code but it doesn't say to which file. Thanks
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
12/16/12 05:31 AM (13 years ago)
You can create a libs folder. You can put the code in any class you like, for example in a menu and you'll need to create a BootReceiver.java file to handle notifications on device reboot. Drop me an email if you like, I can put it in if you tell me where you want the ads to appear.
 
sanamionline
Aspiring developer
Profile
Posts: 61
Reg: Jul 22, 2012
Yulin, Guangxi
3,510
like
12/16/12 05:58 AM (13 years ago)
I created the libs folder and added the additional lines of code into the AndroidManifest.xml then saved it and got a bunch of errors. Lost me after BootReceiver.java is this the file I need to place ads at the bottom of an app? Is this where the LeadBolt IDs go?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
12/16/12 07:54 AM (13 years ago)
BootReceiver.java is for notification ads, because you said you were adding the pubxappCom.jar, which is just for notifications. If you're just adding banners you don't need a BootReceiver or the pubxappCom jar file. Just follow leadbolt's pdf instructions for adding the banner sdk using the pubiapp.jar file.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.