미디에이션과 i-mobile 통합

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 iOS 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
Native

Requirements

  • iOS deployment target of 12.0 or higher

Step 1: Set up configurations in i-mobile UI

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 the button for your app's platform.

Fill out the form and click the 新規登録 (Sign up) button.

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

Navigate to the 広告スポット管理 (Ad Spot Management) tab and click 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: Set up i-mobile demand in AdMob UI

광고 단위에 대한 미디에이션 설정 구성

i-mobile 를 광고 단위의 미디에이션 구성에 추가해야 합니다.

먼저 AdMob 계정에 로그인합니다. 그런 다음 미디에이션 탭으로 이동합니다. 수정할 기존 미디에이션 그룹이 있는 경우 해당 미디에이션 그룹의 이름을 클릭하여 수정한 후 i-mobile 광고 소스로 추가로 건너뜁니다.

새 미디에이션 그룹을 만들려면 미디에이션 그룹 만들기를 선택합니다.

광고 형식과 플랫폼을 입력하고 계속을 클릭합니다.

미디에이션 그룹에 이름을 지정하고 타겟팅할 위치를 선택합니다. 미디에이션 그룹 상태를 사용으로 설정한 다음 광고 단위 추가를 클릭합니다.

이 미디에이션 그룹을 하나 이상의 기존AdMob 광고 단위와 연결합니다. 그런 다음 완료를 클릭합니다.

이제 광고 단위 카드가 선택한 광고 단위로 채워진 것을 볼 수 있습니다.

광고 소스로 i-mobile 추가

광고 소스 섹션의 폭포식 구조 카드에서 광고 소스 추가를 선택합니다. 그런 다음 i-mobile을 선택합니다.

i-mobile를 선택하고 최적화 스위치를 사용 설정합니다. 이전 섹션에서 가져온 Login name and API Password을 입력하여i-mobile에 대해 광고 소스 최적화를 설정합니다. 그런 다음i-mobile 에 eCPM 값을 입력하고 계속을 클릭합니다.

이미 i-mobile에 대한 매핑이 있는 경우 해당 매핑을 선택할 수 있습니다. 그렇지 않으면 매핑 추가를 클릭합니다.

그런 다음 이전 섹션에서 얻은 Publisher ID, Media ID and Spot ID를 입력합니다. 그런 다음 완료를 클릭합니다.

Step 3: Import the i-mobile SDK and Adapter

Add the following line to your project's Podfile:

pod 'GoogleMobileAdsMediationIMobile'

From the command line run:

pod install --repo-update

Manual integration

  • Download the latest version of the i-mobile SDK and link ImobileSdkAds.framework in your project.
  • Download the latest version of the i-mobile adapter from the download link in Changelog and link IMobileAdapter.framework in your project.

Step 4: Add required code

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) 광고 소스를 사용하여 단일 광고 소스 테스트를 사용 설정하세요.

Optional steps

Using native ads

Ad rendering

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

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 GADResponseInfo.adNetworkInfoArray under the following classes:

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:

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 iOS Mediation Adapter Changelog

Version 2.3.4.0

  • Verified compatibility with i-mobile SDK 2.3.4.
  • Added support to return the i-mobile SDK version in adSDKVersion.

Built and tested with:

  • Google Mobile Ads SDK version 11.2.0.
  • i-mobile SDK version 2.3.4.

Version 2.3.3.0

  • Verified compatibility with i-mobile SDK 2.3.3.

Built and tested with:

  • Google Mobile Ads SDK version 11.1.0.
  • i-mobile SDK version 2.3.3.

Version 2.3.2.1

  • Removed the deprecated willBackgroundApplication delegate method from the banner, interstitial, and native ad implementations.
  • Now requires minimum iOS version 12.0.
  • Now requires Google Mobile Ads SDK version 11.0 or higher.
  • Included Info.plist in the frameworks within IMobileAdapter.xcframework.

Built and tested with:

  • Google Mobile Ads SDK version 11.0.1.
  • i-mobile SDK version 2.3.2.

Version 2.3.2.0

  • Verified compatibility with i-mobile SDK 2.3.2.
  • Removed support of the armv7 architecture.
  • Now requires minimum iOS version 11.0.
  • Now requires Google Mobile Ads SDK version 10.4.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 10.4.0.
  • i-mobile SDK version 2.3.2.

Version 2.3.1.0

  • Verified compatibility with i-mobile SDK 2.3.1.

Built and tested with:

  • Google Mobile Ads SDK version 10.3.0.
  • i-mobile SDK version 2.3.1.

Version 2.3.0.1

  • Now requires Google Mobile Ads SDK version 10.0.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 10.0.0.
  • i-mobile SDK version 2.3.0.

Version 2.3.0.0

  • Verified compatibility with i-mobile SDK 2.3.0.
  • Now requires Google Mobile Ads SDK version 9.8.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 9.13.0.
  • i-mobile SDK version 2.3.0.

Version 2.2.0.1

  • Now requires Google Mobile Ads SDK version 9.0.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 9.0.0.
  • i-mobile SDK version 2.2.0.

Version 2.2.0.0

  • Verified compatibility with i-mobile SDK version 2.2.0.

Built and tested with

  • Google Mobile Ads SDK version 8.13.0.
  • i-mobile SDK version 2.2.0.

Version 2.1.0.1

  • Relaxed dependency to Google Mobile Ads SDK version 8.0.0 or higher.

Built and tested with

  • Google Mobile Ads SDK version 8.4.0.
  • i-mobile SDK version 2.1.0.

Version 2.1.0.0

  • Verified compatibility with i-mobile SDK version 2.1.0.
  • Now requires Google Mobile Ads SDK version 8.1.0 or higher.
  • Updated the adapter to use the .xcframework format.

Built and tested with

  • Google Mobile Ads SDK version 8.1.0.
  • i-mobile SDK version 2.1.0.

Version 2.0.33.1

  • Added standardized adapter error codes and messages.
  • Adapter now limits requesting of multiple interstitial ads using the same i-mobile Spot ID.
  • Adapter now forwards the -nativeAdWillLeaveApplication: callback when native ads are tapped.
  • Now requires Google Mobile Ads SDK version 7.68.0 or higher.

Built and tested with

  • Google Mobile Ads SDK version 7.68.0.
  • i-mobile SDK version 2.0.33.

Version 2.0.33.0

  • Verified compatibility with i-mobile SDK version 2.0.33.
  • Now requires Google Mobile Ads SDK version 7.65.0 or higher.
  • Now requires minimum iOS version of 9.0.

Built and tested with

  • Google Mobile Ads SDK version 7.65.0.
  • i-mobile SDK version 2.0.33.

Version 2.0.32.0

  • Verified compatibility with i-mobile SDK version 2.0.32.
  • Now requires Google Mobile Ads SDK version 7.60.0 or higher.
  • Added support for scaling 320x50 and 320x100 ads to better fit adaptive banner request sizes.
  • Removed support for the i386 architecture.

Built and tested with

  • Google Mobile Ads SDK version 7.60.0.
  • i-mobile SDK version 2.0.32.

Version 2.0.31.0

  • Verified compatibility with i-mobile SDK version 2.0.31.

Built and tested with

  • Google Mobile Ads SDK version 7.53.1.
  • i-mobile SDK version 2.0.31.

Version 2.0.29.0

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

Built and tested with

  • Google Mobile Ads SDK version 7.52.0.
  • i-mobile SDK version 2.0.29.