Important: As an App developer, as the controller of data, you must ensure that you have received unambiguous and informed consent from a user before sharing any of their data with Leadbolt or before calling any Leadbolt SDK functions for that user. Please ensure your app is updated as required.

This page will show you how to integrate Leadbolt Video and Interstitial ads in your Android app with Google AdMob with Firebase SDK. Download the SDK and sample app. Make sure you can compile the sample app and see test ads.


Before you begin Before you begin

  • Have you logged in to the Leadbolt Publisher Portal?
  • Did you add an App in the portal?
  • Ensure, you have downloaded the Leadbolt SDK and sample app from the link above
  • Have you signed up and logged in to the AdMob Portal?
  • Have you added your App in the AdMob portal?

Setup Setup your Project with AdMob and Leadbolt SDK

  • Setup your Android Project with Google AdMob with Firebase SDK as outlined here.
  • Add the required permission android.permission.INTERNET in your AndroidManifest.xml file
  • Add the required permission android.permission.ACCESS_NETWORK_STATE in your AndroidManifest.xml file
  • To ensure your App is compatible with Android 6.0 and above devices, set the project’s Build and Compile SDK Version to API Level 23 or above in your build.gradle file
    compileSdkVersion = 25
    buildToolsVersion = '25.0.3'

  • Also set the Target SDK Version in your App’s AndroidManifest.xml file to 23 or higher to target Android 6.0 features

  • Copy the downloaded AppTracker.jar and AdMobAppTracker.jar file to your Android Project’s “libs” folder. If folder doesn’t exist, create one and add the jar file to it
  • Add the required Leadbolt Activity in your AndroidManifest.xml

  • To assist App developers with Google AdMob SDK’s handling of user consent, a method setHasUserConsent is available in the Leadbolt AdMob Adapter version 3.0. App developers should call this setHasUserConsent method as shown below, prior to requesting ads via the Google AdMob SDK where a user has not provided consent.

Setup Setup Interstitial Ad in AdMob Portal

  • Add an Interstitial Ad type to your App in the AdMob Portal
  • Click “Edit Mediation Sources” and add a “New Ad Network”. From the list of Ad Networks, select “Leadbolt”.
  • Enter your App’s API Key (found in the Leadbolt Portal) and use “inapp” as the location code.
  • Untick “Ad Network Optimizing” option before clicking “Save” button
  • Under “AdMob Network” settings untick both “Optimise AdMob Network” and “Enable eCPM Floor” options.
  • Now set a higher eCPM value for Leadbolt compared to AdMob Network


Setup Setup Rewarded Ad in AdMob Portal

  • Add an Rewarded Video Ad Unit to your App in the AdMob Portal
  • Click “Edit Mediation Sources” and add a “New Ad Network” ad. Then click on “Custom Event”.
  • Enter “” (without quotes) in the Class Name field. Under Label enter “Leadbolt” (without quotes). Under Parameter, please enter your App’s API Key found in the Leadbolt Portal.
  • Under “AdMob Network” settings untick both “Optimise AdMob Network” and “Enable eCPM Floor” options.
  • Now set a higher eCPM value for Leadbolt compared to AdMob Network


Test Integration Test your Integration

  • Run your Project on an Android device.
  • Ensure, Leadbolt test ads are displayed correctly in the App.
  • Once test ads are seen on your device, go to your Leadbolt Portal and set your App to “Live”
  • Once approved, you should see live ads in your App.

Congratulations! You have successfully integrated the Leadbolt SDK with AdMob in your App

Troubleshooting Troubleshooting

  • Video and Interstitial Ads may not be available at all times in all countries. It is always best to test with your App in Test Mode in the Publisher Portal as Test Ads are generally always available.
  • You should check your Publisher Portal and ensure the relevant section is visible under your App. Use the “Add Section” button to add if not available.
  • You should check the SDK logs located in Logcat logs with the Tag “AppTracker”.
  • Always test the sample app provided to confirm any integration issues are SDK based.
  • Please Note: AdMob mediation often require optimization settings, can take time to sync mediation setup for your App. Please check the mediation sdk log messages, allow ‘sufficient’ time for sync and if relevant contact AdMob Support for help.
  • This plugin has been tested and compatible with Google Mobile Ads SDK for Android version 10.0.1


← Return to Help Center