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.

The dashboard interface for i-mobile uses Japanese text for its labels, buttons, and descriptions. The screenshots in this guide have not been translated. In this guide's descriptions and instructions however, labels and buttons are translated with their English language equivalents in parentheses.

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
  • Latest Google Mobile Ads SDK

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 the サイト/アプリ管理 (Site/Application Management) tab and clicking the 新規Androidアプリ (New Android App) button.

platform_android

Register your app by providing its 名称 (Name) and App Store URL. Then, click the 新規登録 (Sign up) button after filling out the rest of the form.

add_app name_android

To create a new Advertising Spot, select your app under the サイト/アプリ管理 (Site/Application Management) tab.

app_list android

Navigate to the 広告スポット管理 (Ad Spot Management) tab and click on the 新規広告スポット (New Ad Spot) button.

create_ad_spot

Next, fill out the form by providing the 広告スポット名 (Ad Spot name), 広告スポットサイズ (Ad Spot size) and other details. Then, click the 新規登録 (Sign up) button.

new_ad_spot_form

Your new Ad spot is ready. To view its integration details, click the アプリ設定取得 (Get App settings) button.

ad_spot_list

Take note of the パブリッシャーID (Publisher ID), メディアID (Media ID), and スポットID (Spot ID). You'll need these parameters later when configuring i-mobile for mediation in the AdMob UI.

ad_spot_details_android

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.3.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.1

  • Adapter now returns a non-zero mediaContent aspect ratio.

Built and tested with

  • Google Mobile Ads SDK version 18.2.0.
  • IMobile SDK version 2.0.20.

Version 2.0.20.0

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