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

To get started sign up for a Leadbolt Publisher account here or login to the Publisher Portal here.

gstart


Before you begin Before you begin

  • Have you signed up and 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

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
  • Copy the downloaded AppTracker.jar and AdMobAppTracker.jar file to your Unity Project’s “Assets->Plugins->Android” folder
  • Add the required Leadbolt Activity in your AndroidManifest.xml

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 “com.google.ads.mediation.appfireworks.AppfireworksAdapter” (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 on the following version of Unity IDE: 5.6.2f1
  • This plugin has been tested and compatible with Google Mobile Ads SDK for Unity version 3.6.1

gstart

← Return to Help Center