EDIT: Newer library and instruction are added on page: http://www.b4x.com/forum/additional-libraries-classes-official-updates/12002-leadbolt-ads-27.html
Ok. I have made this little
How To. Later we will add some more help and If I forgot to add something.
As is said in LeadBolt zip files:
Scope
--------
This zip package provides a wrapping library to allow basic4android users to include the leadbolt publisher sdk within their basic4android applications.
Requirements
------------
1. You must have a basic4android account that allows inclusion of 3rd party libraries (
Basic4android (Basic for Android) - Android programming with Gui designer)
2. You must have a LeadBolt app publisher account (
This is my ref link to http://www.leadbolt.com)
3. You must have accessed your leadbolt account to register your android app and have created ads, retrieved the relevant section ids.
4. From the help/faq section of the leadbolt portal, you must have downloaded the latest (version 2.0 and above) LeadBolt android publisher SDK (LeadboltController.jar contained in SDK zip).
To download zip file for B4A simply login in Leadbolt and go into HELP/FAQ and there click on App Developer Frameworks and there is: Using Basic 4 Android and adding LeadBolt to your Android app
Integration
------------
The following needs to be completed in the basic4android IDE
1. Unzip the LB_basic4android_lib.zip file and copy all unzipped files (including the *.xml files) to the additional libraries path of the Basic4Android IDE.
2. In the Basic4Android IDE, add a reference to library
LeadboltController.jar and
LeadboltWrapper.jar in your project.
3. Add the relevant code to display LeadBolt ads within your app. Following is the typical code for adding ads to your Basic4Android project:
Dim adLeadbolt As LeadboltWrapper
And
adLeadbolt.Initialize
adLeadbolt.AsynchTask = True
'set adLeadbolt.ADS_APP for app sdk ads or adLeadbolt.ADS_NOTIFICATION for notification ads
adLeadbolt.loadLeadboltAds("YOUR_SECTION_ID", adLeadbolt.ADS_APP)
4. In "Activity Properties" of the Basic4Android IDE Project menu, untick "Full Screen" and "Include Title".
5. In the Basic4Android IDE, Tick "Do Not Overwrite Manifest File" in Project menu.
6. Go to "Your Project Folder\Objects\" and open "AndroidManifest.xml" file, set android:anyDensity="false" and save.
7. Run your application in the Basic4Android emulator to check you see LeadBolt test ads. See screenshot:
In Leadbolt you can choose what kind of ad you want to show in app. Screenshot:
Going Live
-----------
Once your app is working you can now go-live with real ads.
1. Access the LeadBolt publisher portal and for your app click the go-live button if present.
2. Your app will be submited for approval and once approved will receive live ads.
Attachments in this post is:
lb_android_sdk_basic4android_v1.02.zip
- - LeadboltWrapper.jar
- - LeadboltController.xml
- - LeadboltWrapper.xml
lb_android_sdk_v2.06.zip