Share your feedback about the Google Mobile Ads SDK! Take the annual survey.

Integrating i-mobile with Mediation

This guide is for publishers who want to use the Google Mobile Ads SDK to load and display ads from i-mobile via mediation. It covers how to add i-mobile to an ad unit's mediation configuration, how to set up Ad Network Optimization (ANO), and how to integrate the i-mobile SDK and adapter into an Android app.

Supported ad formats and features

The AdMob mediation adapter for i-mobile has the following capabilities:

Formats
Banners
Interstitials
Rewarded Video
Native Advanced
Features
Smart Banners
Ad Network Optimization (ANO)

Requirements

  • Android API Level 14 or later
  • Google Play services 17.2.0 or later

Step 1: Set up i-mobile

Sign up or log in to your i-mobile account.

Add your app to the i-mobile dashboard by clicking Site/Application Management.

app managerment

Select Android as the platform before registering your app.

platform

Register your app by providing its Name and Market URL.

Click sign up after you finish adding the details.

app name

Create a new Advertising spot by clicking the button shown below.

ad spot

Next, fill in Ad Spot Name, Advertising spot size and other details.

ad spot details

After clicking Sign up, your new Advertising spot is ready. Next, click the Ad Tag button.

ad tag

Take note of your Spot ID, Media ID and Publisher ID. You’ll need these parameters later when configuring i-mobile for mediation in the AdMob UI.

get IDs

Step 2: Configure mediation settings for your AdMob ad unit

You will now need to add i-mobile to the mediation configuration for your ad unit. To do so, first sign in to your AdMob account.

Next, navigate to the Mediation tab. If you have an existing mediation group you'd like to modify, click the name of that mediation group to edit it, and skip ahead to Add i-mobile as an ad source.

To create a new mediation group, select Create Mediation Group.

AdMob mediation tab

Enter your ad format and platform, then click Continue.

Give your mediation group a name, and select locations to target. Next, set the mediation group status to Enabled. Then click Add Ad Units.

New mediation group 2

Associate this mediation group with your existing AdMob ad units. Then click Done.

Select ad unit

You should now see the ad units card populated with the ad units you selected.

Mediation group ad units

Add i-mobile as an ad source

In the Ad Sources card, select Add Ad Network.

Select i-mobile and enable the Optimize feature. Enter the Login Name and Password of your i-mobile account to set up ANO for i-mobile. Then enter an eCPM value for i-mobile and click Continue.

Enter your Publisher ID, Media ID, and Spot ID, obtained in previous section.

Configure ad units

Step 3: Import the i-mobile SDK and Adapter

Add the following implementation dependencies with the latest versions of the i-mobile SDK and adapter in the app-level build.gradle file:

repositories {
    jcenter()
    maven {
      url  "https://imobile.github.io/adnw-sdk-android"
    }
}
...
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'com.google.android.gms:play-services-ads:18.2.0'
    implementation 'com.google.ads.mediation:imobile:2.0.20.0'
}
...

Manual integration

Download the latest version of the i-mobile SDK and extract the android-ad-sdk.aar under the sdk folder and add it to your project.

Step 4: Additional code required

No additional code is required for i-mobile integration.

Step 5: Test your implementation

For testing your integration, i-mobile provides test Spot ID, Media ID, and Publisher ID for all ad formats. You can find them here.

Optional steps

Using native ads

Ad Rendering

The i-mobile adapter populates the following Native ads advanced field descriptions for a UnifiedNativeAd.

Field Populated by i-mobile adapter
Headline
Image
Body
App icon error
Call to action
Star rating
Store
Price

For Native Ads, the i-mobile SDK does not provide an app icon asset. Instead, the i-mobile adapter populates the app icon with a transparent image.

i-mobile Android Mediation Adapter Changelog

Version 2.0.20.0

  • Initial release!
  • Added support for banner, interstitial, and native ads.

Send feedback about...

Need help? Visit our support page.