Integra i-mobile con la mediazione

This guide shows you how to use the Google Mobile Ads SDK to load and display ads from i-mobile using AdMob 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 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

Registrati o accedi al tuo account i-mobile.

Aggiungi l'app alla dashboard di i-mobile facendo clic sulla scheda サイト/アプッ管理 (Site/Application Management) e sul pulsante della piattaforma dell'app.

Compila il modulo e fai clic sul pulsante renew規☁ (Registrati).

Per creare un nuovo spot pubblicitario, seleziona l'app nella scheda サイト/アプす管理 (Site/Application Management).

Passa alla scheda 広告ルポット管理 (Ad Spot Management) e fai clic sul pulsante 規広告ちポット (Nuovo spot pubblicitario).

create_ad_spot

A questo punto, compila il modulo fornendo i seguenti dati: 広告 dirigentiポット名 (nome spot pubblicitario), 広告ちポットサイズ (Dimensione spot pubblicitario) e altri dettagli. A questo punto, fai clic sul pulsante Reminder 規設話 (Registrati).

new_ad_spot_form

Il tuo nuovo spot pubblicitario è pronto. Per visualizzare i dettagli dell'integrazione, fai clic sul pulsante アプットpossono取得 (Scarica impostazioni app).

ad_spot_list

Prendi nota di パすチットID (ID publisher), デッアID (Media ID), e finiポットID (ID spot). Avrai bisogno di questi parametri in un secondo momento durante la configurazione di i-mobile per la mediazione nell' AdMob interfaccia utente.

Step 2: Set up i-mobile demand in AdMob UI

Configurare le impostazioni di mediazione per l'unità pubblicitaria

Devi aggiungere i-mobile alla configurazione della mediazione per la tua unità pubblicitaria.

Innanzitutto, accedi all'account AdMob. Quindi, vai alla scheda Mediazione. Se vuoi modificare un gruppo di mediazione esistente, fai clic sul nome del gruppo per modificarlo e vai alla sezione Aggiungi i-mobile come origine annuncio.

Per creare un nuovo gruppo di mediazione, seleziona Crea gruppo di mediazione.

Inserisci il formato dell'annuncio e la piattaforma, poi fai clic su Continua.

Assegna un nome al gruppo di mediazione e seleziona le località da scegliere come target. Imposta lo stato del gruppo di mediazione su Attivato e fai clic su Aggiungi unità pubblicitarie.

Associa questo gruppo di mediazione a una o più unità pubblicitarieAdMob esistenti. Poi, fai clic su Fine.

A questo punto, dovresti vedere la scheda delle unità pubblicitarie compilata con quelle selezionate:

Aggiungi i-mobile come origine annuncio

Nella scheda Con struttura a cascata della sezione Origini annuncio, seleziona Aggiungi origine annuncio. Seleziona i-mobile.

Seleziona i-mobile e attiva l'opzione Ottimizza. Inserisci quanto Login name and API Password ottenuto nella sezione precedente per configurare l'ottimizzazione dell'origine annuncio per i-mobile. Inserisci un valore eCPM peri-mobile e fai clic su Continua.

Se hai già una mappatura per i-mobile, puoi selezionarla. In caso contrario, fai clic su Aggiungi mappatura.

Quindi, inserisci l' Publisher ID, Media ID and Spot ID ottenuto nella sezione precedente. Poi, fai clic su Fine.

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

Attiva annunci di prova

Assicurati di registrare il dispositivo di test per AdMob i-mobile fornisce ID spot, ID media e ID publisher per i test. Puoi trovarli qui.

Verifica annunci di prova

Per verificare di ricevere annunci di prova dai-mobile, attiva il test di una singola origine annuncio nello strumento di controllo degli annunci utilizzando le i-mobile (Waterfall) origini annuncio.

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.