InMobi Mediation Integration Guide
This guide will instruct you step-by-step on how to set InMobi live as an Ad Network on the Unity LevelPlay Mediation.
Before you start Make sure you have correctly integratedStep 1. Create an InMobi Account
- Create an account with InMobi. You can do so here.
- Once your account has been verified you can login at their partner login here.
Step 2. Create an Application and Placement in InMobi
To configure your application on InMobi, complete the following steps:
-
Create an Application
- After you login you will immediately see the ‘Add inventory’ option:
You can enter the URL of your app in the AppStore or Google Play. - Alternatively, if your app is not live yet, select ‘Link manually?‘
You can then manually enter your application’s name and select its platform. - Check the boxes:
- if your app is specifically directed to children under the age of 16.
- if you allow inmobi to use device location – Location Permission
- Once finished select ‘Save and create placement‘.
Note: You will need a unique InMobi application per platform (iOS + Android) just like you do with your ironSource account.
- After you login you will immediately see the ‘Add inventory’ option:
-
Create a Placement
Once you have created an application, you must create a Placement. Placements are locations to which InMobi will deliver specific Ad-types. This will be the placement in your app where you have configured the ironSource SDK Rewarded Video or Interstitial to trigger.
- Choose the ad unit for this placement, out from the supported options:
- interstitial
- rewarded
- banner
- once you choose your ad unit, click on Create placement button
- Give your placement a name and complete the placement creation
- Choose the ad unit for this placement, out from the supported options:
Step 3. Activate InMobi in Your LevelPlay Network Setup Module
There are 5 pieces of Data from the InMobi account which need to be input into your ironSource LevelPlay Network Setup Module in order for InMobi to work correctly in connection with ironSource LevelPlay:
Username | This is the username you use to login to your InMobi account. This is required for ironSource to access the InMobi reporting API for your account, which allows your Unity LevelPlay Mediation to import performance data from your InMobi account to use in reporting & optimization. |
Password | This is the password you use to login to your InMobi account. This is required along with the username in order for ironSource to access reporting information for your account. |
API Key | This is the unique key to verify requests made for reporting info. |
Account ID | This is the unique identifier for your InMobi account. |
Placement ID | This is the unique Placement to which InMobi will deliver ads to. |
Once you obtain this information, you must configure InMobi’s Parameters in your ironSource Account. By adding the above parameters correctly, you will be able to take full advantage of InMobi’s ad inventory and reporting data on Unity LevelPlay Mediation.
-
Username
This is the username you use to log in to your InMobi account.
-
Password
This is the password you use to log in to your InMobi account.
-
API Key
This is the unique key to verify requests made for reporting info. To receive this info, go to the Drop-down arrow in the top right-hand corner of your admin panel ➣ select Account Settings ➣ Select ‘API Key’ ➣ Press on ‘Generate Key’
For more details, please refer to the InMobi Support Portal page here.
-
Account ID
This is the unique identifier for your InMobi account. To locate this parameter, click on the name icon in the top laft-hand corner of your admin panel. You will then see your ‘Account ID‘ listed:
-
Placement ID
To find your applications ‘Placement ID‘, select ‘Inventory > inventory list’ from the left navigation menu ➣ select the relevant app from your list ➣ select the ad unit ➣ select the name of the relevant placement for this app. Copy the ‘Placement ID‘:
Configure InMobi’s Parameters into ironSource Account
Once you obtain the above parameters, log in to your ironSource account.
- Go to Mediation’ ➣ ‘Setup’ ➣ ‘ SDK Networks’.
- Select InMobi from the table of Available Ad Networks.
- Enter your InMobi ‘Username‘ , ‘Password‘ , ‘API Key‘ and ‘Account ID‘ in the relevant fields.
- Select the app on which you’d like to run Unity LevelPlay Mediation with InMobi.
- Scroll down to InMobi from the Setup list of Ad Networks and click on the ‘Define‘ icon. Enter the Placement ID, under the Rewarded Video, Interstitial or Banner Settings. Set status to Active and click ‘Save’.
- You will then see InMobi as Active for Mediation on your Setup Dashboard.
- Verify your integration with the Reporting API; this column will check your integration through the Reporting API and return three possible responses: Verified, Failed and No Response. Double check your integration and the information you entered above; then click ‘Retry’ until you see ‘Verified’.
Step 4. Add the InMobi Adapter to Your Build
ironSource SDK supports both Cocoapods and Manual download mechanisms.
Cocoapods
To integrate the InMobi SDK with Cocoapods, enter the following line in your podfile and you’re good to go!
pod 'IronSourceInMobiAdapter','4.3.25.0'
Manual Download
- Download the InMobi Adapter:
Add the InMobi Adapter and SDK to your build. You can find the relevant files here. - Add the InMobi frameworks to your Project:
After you download the Adapter and SDK, drop the Adapter framework into your Xcode Project, i.e. drop ISInMobiAdapter.framework into your Xcode project. - Add Required Frameworks:
Go to Targets ➣ Build Phases ➣ Link Binary With Libraries.Click ‘+’ to add the following frameworks:libsqlite3.tbd libxml2.2.tbd
- Linker Flags:
Add the following linker flag to Target ➣ Build Settings ➣ Linking ➣ Other Linker Flags:
-ObjC - Configure App Transport Security (ATS) Settings
Add the following key to your plists:<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
Step 5. InMobi Additional Settings
User-level age restricted user
Unity LevelPlay mediation lets publishers communicate InMobi’s IsAgeRestricted settings directly to the InMobi network. This feature is enabled using ironSource SDK 7.2.1+, InMobi Android Adapter 4.3.14 +.
Use the following syntax, to set InMobi setIsAgeRestricted flag with the parameter Yes:
[IronSource setMetaDataWithKey:@"InMobi_AgeRestricted" value:@"YES"];
Use the following syntax, to set InMobi setIsAgeRestricted flag with the parameter No:
[IronSource setMetaDataWithKey:@"InMobi_AgeRestricted" value:@"NO"];
Evaluate Your Ad Network Integration
[IronSource setAdaptersDebug:YES];
Done!
You are now all set to deliver InMobi Ads through the Unity LevelPlay Mediation!
To leverage additional ad networks through Unity LevelPlay Mediation, integrate the adapters and follow our integration guides.