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 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 integrations and ad formats
The mediation adapter for i-mobile has the following capabilities:
Integration | |
---|---|
Bidding | |
Waterfall | |
Formats | |
Banner | |
Interstitial | |
Rewarded | |
Native |
Requirements
- Android API level 21 or higher
Latest Google Mobile Ads SDK
Complete the mediation Get started guide
Step 1: Set up configurations in i-mobile UI
点击 ika イト/affiliate Management(网站/应用管理)标签页和应用平台对应的按钮,将您的应用添加到 i-mobile 信息中心。
![](https://developers.google.cn/admob/images/mediation/imobile/select_platform_Android.png?authuser=1&hl=ru)
填写表单,然后点击新规定登录按钮。
![](https://developers.google.cn/admob/images/mediation/imobile/add_app_name_Android.png?authuser=1&hl=ru)
要创建新的广告插播位,请在 {5}对该/企业管理(网站/应用管理)标签页下选择您的应用。
![](https://developers.google.cn/admob/images/mediation/imobile/app_list_Android.png?authuser=1&hl=ru)
进入支持 Clickserver 管理(广告插播位管理)标签页,然后点击新规范编写 ット (New Ad Spot) 按钮。
接下来,填写以下表单:提供支持 プット名(广告插播位名称)、提供有关某个广告 的小程序 (广告 Spot 尺寸) 和其他详细信息。然后,点击 新式登榜(注册)按钮。
您的新广告插播位已准备就绪。如需查看其集成详情,请点击 Action to Settings Get (Get App settings) 按钮。
请记下小吃日本 ID(发布商 ID)、手机 ID(媒体 ID)和彷设有 ID (Spot ID)。您稍后在 Ad Manager 界面中为中介配置 i-mobile 时,将会用到这些参数。
![](https://developers.google.cn/admob/images/mediation/imobile/ad_spot_details_Android.png?authuser=1&hl=ru)
Step 2: Set up i-mobile demand in Ad Manager UI
Настройте параметры медиации для своего рекламного блока
Войдите в свою учетную запись Менеджера рекламы .
Перейдите в раздел «Доставка» > «Группы доходности» и нажмите кнопку «Новая группа доходности» .
Введите уникальное имя для своей группы доходности, установите статус « Активно» , выберите формат объявления и установите тип инвентаря «Мобильное приложение» . В разделе «Таргетинг» > «Инвентарь» выберите рекламный блок в разделе «Инвентарь и мобильное приложение» , к которому вы хотите добавить агрегатор.
Затем нажмите кнопку «Добавить партнера по доходности» .
Если у вас уже есть партнер по доходности дляi-mobile, вы можете выбрать его. В противном случае выберите Создать нового партнера по доходности .
Выберите i-mobile в качестве рекламной сети , введите уникальное имя и включите посредничество .
Включите Автоматический сбор данных и введитеLogin name and API Password
После выбора партнера по доходности выберите Mobile SDK Mediation в качестве типа интеграции , Android в качестве платформы и Активный в качестве статуса . ВведитеPublisher ID, Media ID and Spot ID полученный в предыдущем разделе. Затем введите значение цены за тысячу показов по умолчанию .
Когда закончите, нажмите «Сохранить» внизу страницы.
Step 3: Import the i-mobile SDK and Adapter
Android Studio integration (recommended)
In your project-level settings.gradle.kts
file, add the following
repositories:
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven {
url = uri("https://imobile.github.io/adnw-sdk-android")
}
}
}
Then, in your app-level build.gradle.kts
file, add the following
implementation dependencies and configurations. Use the latest versions of the
i-mobile SDK and adapter:
dependencies {
implementation("com.google.android.gms:play-services-ads:23.2.0")
implementation("com.google.ads.mediation:imobile:2.3.2.0")
}
Manual integration
Download the latest version of the i-mobile SDK and extract the
android-ad-sdk.aar
under thesdk
folder and add it to your project.Navigate to the i-mobile adapter artifacts on Google's Maven Repository. Select the latest version, download the i-mobile adapter's
.aar
file, and add it to your project.
Step 4: Add required code
No additional code is required for i-mobile integration.
Step 5: Test your implementation
Включить тестовые объявления
Убедитесь, что вы зарегистрировали свое тестовое устройство дляAd Manager.i-mobile предоставляет для тестирования идентификатор тестовой точки , идентификатор носителя и идентификатор издателя , их можно найти здесь .
Проверьте тестовые объявления
Чтобы убедиться, что вы получаете тестовые объявления отi-mobile, включите тестирование одного источника объявлений в инспекторе объявлений, используя источники объявлений i-mobile (Waterfall) .
Optional steps
Using native ads
Ad rendering
The i-mobile adapter populates the following
fields
for a
NativeAd
.
Field | Assets always included by i-mobile adapter |
---|---|
Headline | |
Image | |
Body | |
App icon | 1 |
Call to action | |
Star rating | |
Store | |
Price |
1 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.
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.getAdapterResponse()
under the following classes:
Format | Class name |
---|---|
Banner | com.google.ads.mediation.imobile.IMobileAdapter |
Interstitial | com.google.ads.mediation.imobile.IMobileAdapter |
Native | com.google.ads.mediation.imobile.IMobileMediationAdapter |
Here are the codes and accompanying messages thrown by the i-mobile adapter when an ad fails to load:
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 Ad Manager 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. |
i-mobile Android Mediation Adapter Changelog
Version 2.3.2.0
- Verified compatibility with i-mobile SDK v2.3.2.
Built and tested with:
- Google Mobile Ads SDK version 23.1.0.
- IMobile SDK version 2.3.2.
Version 2.3.1.2
- Updated the minimum required Google Mobile Ads SDK version to 23.0.0.
- Verified compatibility with i-mobile SDK v2.3.1.
Built and tested with:
- Google Mobile Ads SDK version 23.0.0.
- IMobile SDK version 2.3.1.
Version 2.3.1.1
- Updated adapter to use new
VersionInfo
class. - Updated the minimum required Google Mobile Ads SDK version to 22.0.0.
Built and tested with:
- Google Mobile Ads SDK version 22.0.0.
- IMobile SDK version 2.3.1.
Version 2.3.1.0
- Verified compatibility with i-mobile SDK v2.3.1.
- Updated the minimum required Google Mobile Ads SDK version to 21.5.0.
Built and tested with:
- Google Mobile Ads SDK version 21.5.0.
- IMobile SDK version 2.3.1.
Version 2.3.0.0
- Verified compatibility with i-mobile SDK v2.3.0.
- Updated the minimum required Google Mobile Ads SDK version to 21.3.0.
Built and tested with:
- Google Mobile Ads SDK version 21.3.0.
- IMobile SDK version 2.3.0.
Version 2.0.23.1
- Updated
compileSdkVersion
andtargetSdkVersion
to API 31. - Updated the minimum required Google Mobile Ads SDK version to 21.0.0.
- Updated the minimum required Android API level to 19.
Built and tested with:
- Google Mobile Ads SDK version 21.0.0.
- IMobile SDK version 2.0.23.
Version 2.0.23.0
- Verified compatibility with i-mobile SDK v2.0.23.
- Updated the minimum required Google Mobile Ads SDK version to 20.5.0.
Built and tested with
- Google Mobile Ads SDK version 20.5.0.
- IMobile SDK version 2.0.23.
Version 2.0.22.2
- Added standardized adapter error codes and messages.
- Updated the minimum required Google Mobile Ads SDK version to 20.1.0.
Built and tested with
- Google Mobile Ads SDK version 20.1.0.
- IMobile SDK version 2.0.22.
Version 2.0.22.1
- Updated the minimum required Google Mobile Ads SDK version to 20.0.0.
Built and tested with
- Google Mobile Ads SDK version 20.0.0.
- IMobile SDK version 2.0.22.
Version 2.0.22.0
- Verified compatibility with i-mobile SDK v2.0.22.
- Updated the adapter to support inline adaptive banner requests.
Built and tested with
- Google Mobile Ads SDK version 19.1.0.
- IMobile SDK version 2.0.22.
Version 2.0.21.0
- Verified compatibility with i-mobile SDK v2.0.21.
- Updated the minimum required Google Mobile Ads SDK version to 19.1.0.
- Added support for scaling adaptive banner ads.
Built and tested with
- Google Mobile Ads SDK version 19.1.0.
- IMobile SDK version 2.0.21.
Version 2.0.20.2
- Added support for flexible banner ad sizes.
- Updated the minimum required Google Mobile Ads SDK version to 18.3.0.
Built and tested with
- Google Mobile Ads SDK version 18.3.0.
- IMobile SDK version 2.0.20.
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.