Integrate i-mobile with Mediation

This guide shows you how to use the Google Mobile Ads SDK to load and display ads from i-mobile using mediation, covering waterfall integrations. It covers how to add i-mobile to an ad unit's mediation configuration, and how to integrate the i-mobile SDK and adapter into a Unity 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 integrations and ad formats

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

Integration
Bidding
Waterfall
Formats
Banner
Interstitial
Rewarded

Requirements

  • Unity 5.6 or higher
  • Latest Google Mobile Ads SDK
  • To deploy on Android
    • Android API level 19 or higher
  • To deploy on iOS
    • iOS deployment target of 11.0 or higher
  • A working Unity project configured with Google Mobile Ads SDK. See Get Started for details.

Step 1: Set up i-mobile

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

Android

Add your app to the i-mobile dashboard by clicking the サイト/アプリ管理 (Site/Application Management) tab and clicking the 新規Androidアプリ (New Android App) button.

Register your app by providing its 名称 (Name) and マーケットURL (Market URL). Then, click the 新規登録 (Sign up) button after filling out the rest of the form.

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

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.

iOS

Add your app to the i-mobile dashboard by clicking the サイト/アプリ管理 (Site/Application Management) tab and clicking the 新規iPhoneアプリ (New iPhone App) button.

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.

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

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.

Step 2: Configure mediation settings for your AdMob ad unit

To add i-mobile to the mediation configuration for your AdMob ad unit(s), first sign in to your AdMob account. Then, follow the iOS or Android platform specific instructions below.

If you're deploying your Unity app to both Android and iOS, you need two AdMob ad units, one for each platform.

Android

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.

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

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

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 API Password of your i-mobile account to set up ad source optimization for i-mobile. Then enter an eCPM value for i-mobile and click Continue.

If you already have a mapping for i-mobile, you can simply select it. Otherwise, click Add mapping.

Next, enter a Mapping name, your Publisher ID, the Media ID and the Spot ID obtained in the previous section. Then click Done.

iOS

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.

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

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

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 API Password of your i-mobile account to set up ad source optimization for i-mobile. Then enter an eCPM value for i-mobile and click Continue.

If you already have a mapping for i-mobile, you can simply select it. Otherwise, click Add mapping.

Next, enter a Mapping name, your Publisher ID, the Media ID and the Spot ID obtained in the previous section. Then click Done.

Step 3: Import the i-mobile SDK and adapter

Download the latest version of Google Mobile Ads mediation plugin for i-mobile from the download link in the Changelog and extract the GoogleMobileAdsIMobileMediation.unitypackage from the zip file.

In your Unity project editor, select Assets > Import Package > Custom Package and find the GoogleMobileAdsIMobileMediation.unitypackage file you downloaded. Make sure that all the files are selected and click Import.

Then, select Assets > Play Services Resolver > Android Resolver > Force Resolve. The Unity Play Services Resolver library will perform dependency resolution from scratch and copy the declared dependencies into the Assets/Plugins/Android directory of your Unity app.

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.

Error codes

If the adapter fails to receive an ad from i-mobile, publishers can check the underlying error from the ad response using ResponseInfo under the following classes:

Android

Format Class name
Banner com.google.ads.mediation.imobile.IMobileAdapter
Interstitial com.google.ads.mediation.imobile.IMobileAdapter
Native com.google.ads.mediation.imobile.IMobileMediationAdapter

iOS

Format Class name
Banner IMobileAdapter
Interstitial IMobileAdapter
Native GADMediationAdapterIMobile

Here are the codes and accompanying messages thrown by the i-mobile adapter when an ad fails to load:

Android

Error code Reason
0-99 i-mobile SDK returned an error. See code for more details.
101 i-mobile requires an Activity context to load ads.
102 i-mobile server parameters configured in the AdMob UI are missing/invalid.
103 The requested ad size does not match an i-mobile supported banner size.
104 i-mobile's native ad load success callback returned an empty native ads list.

iOS

Error code Reason
0-10 i-mobile SDK returned an error. See code for more details.
101 i-mobile server parameters configured in the AdMob UI are missing/invalid.
102 The requested ad size does not match an i-mobile supported banner size.
103 i-mobile failed to present an ad.
104 i-mobile returned an empty native ad array.
105 i-mobile failed to download native ad assets.
106 i-mobile does not support requesting for multiple interstitial ads using the same Spot ID.

i-mobile Unity Mediation Plugin Changelog

Version 1.3.2

Version 1.3.1

Version 1.3.0

Version 1.2.2

Version 1.2.1

Version 1.2.0

Version 1.1.0

Version 1.0.2

Version 1.0.1

Version 1.0.0