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 for Unity v5. For a sample app for Unity v4.7, click here.


Add your apps

Login to the Publisher Portal and select the ‘Create New App’ button from the “Apps” page. Fill in your app’s details including name and platform. Once app is added, it is recommended that you also apply for our premium deals by clicking “Direct Deals” in the Publisher Portal. Once approved, a “Direct Deals” section should be visible under your app in the Publisher Portal. Use the “Add Section” button if not visible.

 


Copy Your Integration Details

Your integration details will be displayed on the last page of the Create App process. These integration details will be needed when you integrate the Leadbolt SDK into your app.

Create App Dialogue-3


Setting Up Google Admob/DFP Publisher Portal

The following initial steps allow you to add the Leadbolt SDK within the Google Admob/DFP portal.

Add an interstitial ad unit

Once you login to the Google Admob/DFP portal, access or setup your app and add a interstitial ad unit to the App as a container for the Leadbolt SDK Ads.

Add Leadbolt Ad Network

Once the App and ad unit is setup, click on “Edit mediation”. Click on the “New Ad Network” button. From the list of available ad networks, select “Leadbolt”.

Enter Leadbolt Details

admob_ios1

Enter your App’s API Key found in the Leadbolt Portal. For Direct Deals/Networks Ads use “inapp” (without quotes) as the Location Code. 

For Rewarded Video use “video” (without quotes) as the Location Code. Check that a “Rewarded Video” section is visible under your app in the Publisher Portal. Use the “Add Section” button if not visible. AdMob utilizes a server side postback to notify when the user has watched the video. If required, contact your account manager to enable the server side postback feature on your account.

To get started, please untick the “Ad Network Optimization” setting and also set a high floor eCPM for Leadbolt as shown in the screenshot below. 

admob_ios2

Please note, you may also need to click on “AdMob Network” settings, un-tick “Optimise AdMob Network” and enter a lower Admob Network eCPM to generate sufficient Leadbolt impressions when you start.

Once your Leadbolt account is showing sufficient impressions you can enable “Ad Network Optimization”. You can obtain the required Publisher ID and Secret Key from the Accounts page of your Leadbolt portal.

Setup App with Google AdMob/DFP SDK

Setup your iOS Project with Google AdMob/DFP SDK in Unity as outlined on these pages: https://developers.google.com/mobile-ads-sdk/docs/games#unity and https://github.com/googleads/googleads-mobile-plugins/tree/master/unity

Link Leadbolt SDK in your Unity App

Unzip the SDK zip file and copy the Leadbolt SDK + AdMob static libraries ( AppTracker.framework  and libAdapterAppTracker.a ) to your Unity Project’s “Assets->Plugins->iOS” folder.

Please ensure the following frameworks are linked in your xcode project after exporting the Unity build to xcode

  • AdSupport.framework
  • AVFoundation.framework
  • CoreMedia.framework
  • CoreTelephony.framework
  • StoreKit.framework
  • SystemConfiguration.framework
  • libz.tbd

Under the “Build Settings” tab, please ensure ObjC  flag is set under “Other Linker Flags” setting.

To ensure all available Leadbolt ads display correctly on apps running on iOS 9/10, please include these App Transport Security (ATS) settings by adding the following lines of code to your Apps Info.plist file:

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 to ensure 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 Device Logs (under Xcode -> Devices) and look for “AppTracker”.
  • Always test the sample app provided to confirm any integration issues are SDK based.
  • Please Note: mediation platforms 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 Mediation partner for help.
  • This plugin has been tested on the following version of Unity IDE: 4.7.2f1 and 5.5.1f1
  • This plugin has been tested and compatible with Google Mobile Ads SDK for Unity version 3.1.3

gstart for Unity v5. For a sample app for Unity v4.7, click here.

← Return to Help Center