This page will show you how to integrate Leadbolt Video and Interstitial ads in your iOS app with Google AdMob/DFP 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
  • To get Direct Deal Ads in your App, click on “Direct Deals” link in the Publisher Portal and click on the Apply button.
  • To run Rewarded Video in your App, you will need to apply and be approved. Click on “Rewarded Videos” link in the Publisher Portal to apply or contact your account manager.
  • 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 iOS Unity Project with Google AdMob with Firebase SDK as outlined here. You can also find a sample app here.
  • Copy the downloaded AppTracker.framework and libAdaptorAppTracker.a files to your Xcode Project
  • Link the following frameworks in your Xcode Project. AdSupport.framework, AVFoundation.framework, CoreMedia.framework, CoreTelephony.framework, StoreKit.framework, SystemConfiguration.framework and libz.tbd
  • To ensure all available Leadbolt ads display correctly on apps running on iOS 9/10, please include these ATS settings by adding the following lines of code to your Apps Info.plist file:

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 “GADMAdapterAppfireworks” (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 iOS 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