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 21 or higher
- To deploy on iOS
- iOS deployment target of 12.0 or higher
- A working Unity project configured with Google Mobile Ads SDK. See Get Started for details.
- Complete the mediation Get started guide
Step 1: Set up configurations in i-mobile UI
点击 ika イト/affiliate Management(网站/应用管理)标签页和应用平台对应的按钮,将您的应用添加到 i-mobile 信息中心。
Android
iOS
填写表单,然后点击新规定登录按钮。
Android
iOS
要创建新的广告插播位,请在 {5}对该/企业管理(网站/应用管理)标签页下选择您的应用。
Android
iOS
进入支持 Clickserver 管理(广告插播位管理)标签页,然后点击新规范编写 ット (New Ad Spot) 按钮。
接下来,填写以下表单:提供支持 プット名(广告插播位名称)、提供有关某个广告 的小程序 (广告 Spot 尺寸) 和其他详细信息。然后,点击 新式登榜(注册)按钮。
您的新广告插播位已准备就绪。如需查看其集成详情,请点击 Action to Settings Get (Get App settings) 按钮。
请记下小吃日本 ID(发布商 ID)、手机 ID(媒体 ID)和彷设有 ID (Spot ID)。您稍后在 AdMob 界面中为中介配置 i-mobile 时,将会用到这些参数。
Android
iOS
Step 2: Set up i-mobile demand in AdMob UI
为广告单元配置中介设置
Step 3: Import the i-mobile SDK and adapter
OpenUPM-CLI
If you have OpenUPM-CLI installed, you can install the Google Mobile Ads i-mobile Mediation Plugin for Unity to your project by running the following command from your project's root directory:
openupm add com.google.ads.mobile.mediation.imobile
OpenUPM
In your Unity project editor, select Edit > Project Settings > Package Manager to open the Unity Package Manager Settings.
Under the Scoped Registries tab, add OpenUPM as a scoped registry with the following details:
- Name:
OpenUPM
- URL:
https://package.openupm.com
- Scope(s):
com.google
Then, navigate to Window > Package Manager to open the Unity Package Manager and select My Registries from the drop-down menu.
Select the Google Mobile Ads i-mobile Mediation package and click Install.
Unity Package
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
Android
No additional code is required i-mobile integration.
iOS
SKAdNetwork integration
Follow i-mobile's documentation
to add the SKAdNetwork identifiers to your project's Info.plist
file.
Step 5: Test your implementation
启用测试广告
请务必为 AdMob。 i-mobile 提供用于测试的测试 Spot ID、媒体 ID 和发布商 ID,您可以在此处找到它们。
验证测试广告
如需验证您收到的是来自i-mobile的测试广告,请使用相应广告来源在广告检查器中启用单一广告来源测试。 i-mobile (Waterfall)
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.5
- Supports i-mobile Android adapter version 2.3.2.0.
- Supports i-mobile iOS adapter version 2.3.4.0.
- Built and tested with the Google Mobile Ads Unity Plugin version 9.1.0.
Version 1.3.4
- Supports i-mobile Android adapter version 2.3.1.2.
- Supports i-mobile iOS adapter version 2.3.4.0.
- Built and tested with the Google Mobile Ads Unity Plugin version 9.0.0.
Version 1.3.3
- Supports i-mobile Android adapter version 2.3.1.1.
- Supports i-mobile iOS adapter version 2.3.3.0.
- Built and tested with the Google Mobile Ads Unity Plugin version 9.0.0.
Version 1.3.2
- Moved adapter content to
GoogleMobileAds/Mediation/IMobile/
. - Supports i-mobile Android adapter version 2.3.1.1.
- Supports i-mobile iOS adapter version 2.3.2.0.
- Built and tested with the Google Mobile Ads Unity Plugin version 8.1.0.
Version 1.3.1
- Supports i-mobile Android adapter version 2.3.0.0.
- Supports i-mobile iOS adapter version 2.3.0.1.
- Built and tested with the Google Mobile Ads Unity Plugin version 7.4.1.
Version 1.3.0
- Supports i-mobile Android adapter version 2.3.0.0.
- Supports i-mobile iOS adapter version 2.3.0.0.
- Built and tested with the Google Mobile Ads Unity Plugin version 7.3.1.
Version 1.2.2
- Supports i-mobile Android adapter version 2.0.23.1.
- Supports i-mobile iOS adapter version 2.2.0.1.
- Built and tested with the Google Mobile Ads Unity Plugin version 7.0.2.
Version 1.2.1
- Supports i-mobile Android adapter version 2.0.23.0.
- Supports i-mobile iOS adapter version 2.2.0.1.
- Built and tested with the Google Mobile Ads Unity Plugin version 7.0.0.
Version 1.2.0
- Supports i-mobile Android adapter version 2.0.23.0.
- Supports i-mobile iOS adapter version 2.2.0.0.
Version 1.1.0
- Supports i-mobile Android adapter version 2.0.22.2.
- Supports i-mobile iOS adapter version 2.1.0.1.
Version 1.0.2
- Supports i-mobile Android adapter version 2.0.22.0.
- Supports i-mobile iOS adapter version 2.0.32.0.
Version 1.0.1
- Supports i-mobile Android adapter version 2.0.21.0.
- Supports i-mobile iOS adapter version 2.0.31.0.
Version 1.0.0
- First release!
- Supports i-mobile Android adapter version 2.0.20.1.
- Supports i-mobile iOS adapter version 2.0.29.0.