B4A Library Leadbolt Ads

susu

Well-Known Member
Licensed User
Longtime User
Sure you can.
 

splatt

Active Member
Licensed User
Longtime User
Location of LeadboltController.jar

Where should we be placing LeadboltController.jar?
 

nad

Active Member
Licensed User
Longtime User
For me leadbolt walls have not performed well, appbrain is much better imho. Leadbolt notification works wonderfully though

Sent from my GT-I9100 using Tapatalk 2
 

splatt

Active Member
Licensed User
Longtime User
Notification Ads

Hi Bill,

I'm trying to set up Notification adds. I've followed Leadbolts instructions for the installation, set up my account and received the application ID but I'm not getting any ads showing.

Were there any other steps you had to take?
 

ssg

Well-Known Member
Licensed User
Longtime User
Hi Steve,

Just to confirm, have you gotten the app approved? I am not sure if they send out test notifications.

Can you also share your B4A code here?

And finally, try adding this part in manifest before the closing of your application tag:

B4X:
<receiver android:name="com.Leadbolt.AdNotification" />

Also, there might be no inventory to send out ad (been a slow couple of days), but you're in UK i am guessing, there should be ads there.

Does "new users" count increase in your dashboard?

Cheers!
-Bill
 

straybullet

Member
Licensed User
Longtime User
I noticed I can not get the reoccurring notification ads to work.

I I use the Leadbolt SDK on Shiva 3d, you have to create a new Java file that runs as a service to get the reoccurring ads to work. Does this B4A lib have the reoccurring ability and I am just missing something?
 

splatt

Active Member
Licensed User
Longtime User
Hi Bill,

Thanks for your help with this.

My app is approved and I have my Section ID.

Manifest is:

HTML:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="encoded.free" android:versionCode="4" android:versionName="1.2_04_FULL" android:installLocation="internalOnly" android:anyDensity="false">
  <uses-sdk android:minSdkVersion="4" />
  <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true" />
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
  <uses-permission android:name="android.permission.READ_PHONE_STATE" />
  <uses-permission android:name="android.permission.WAKE_LOCK" />
  <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
  <uses-permission android:name="android.permission.VIBRATE" />
  <application android:icon="@drawable/icon" android:label="Encoded - Full Version">
    <receiver android:name="com.Leadbolt.AdNotification" />
    <activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name=".main" android:label="Encoded - Full Version" android:screenOrientation="portrait">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>
    <activity android:windowSoftInputMode="stateHidden" android:launchMode="singleTop" android:name=".eula" android:label="Encoded - Full Version" android:screenOrientation="portrait"></activity>
  </application>
</manifest>

My B4A code in Activity_Create is:

B4X:
   '[13] <-
   adLeadbolt.Initialize("Leadbolt")

adLeadbolt.AsynchTask = True
   
   adLeadbolt.loadLeadboltAds("MySectionID",  adLeadbolt.ADS_NOTIFICATION)
   '[13] ->

I also have the latest version of their SDK (3.03)
 

ssg

Well-Known Member
Licensed User
Longtime User
Hi Steve,

Your manifest and code looks fine.

Next check, in your library list, do you have both the LeadboltWrapper and LeadboltController checked?

Awhile back you asked about placing the LeadboltController.jar file. Was there a LeadboltController.xml there too? Do you see both the wrapper and controller in your library tab?

Cheers!
-Bill
 

splatt

Active Member
Licensed User
Longtime User
Hi Steve,

Awhile back you asked about placing the LeadboltController.jar file. Was there a LeadboltController.xml there too? Do you see both the wrapper and controller in your library tab?

Cheers!
-Bill

All four files .jar and .xml are in the additional libraries folder.

Both the wrapper and the controller are checked in the Libs tab.
 

ssg

Well-Known Member
Licensed User
Longtime User
Then I guess it is possible that there is no inventory for your location.

Coding and manifest wise it looks fine. Could you write to your AM about this?

Sorry can't help beyond this.
 

splatt

Active Member
Licensed User
Longtime User
Sorry can't help beyond this.

Thanks for taking the time.

I have already raised the issue with my AM. They are looking into things from their side. I just wanted to be sure I hadn't missed anything obvious!

LeadBolt do seem interested in you as a developer and their response to emails is excellent.
 

nad

Active Member
Licensed User
Longtime User
Hi splatt
One thing that might be interesting. You just need Internet, network state and read phone state for notification ads. If you request all those permissions a big number of users will vote poorly or not install although the more info the ad company gets might get you a better aim and better clickthrough.
Just an idea.
Cheers

Enviado desde mi GT-I9100 usando Tapatalk 2
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…