Integração do i-mobile com a Mediação

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

Step 1: Set up configurations in i-mobile UI

Inscreva-se ou faça login na sua conta do i-mobile.

Adicione seu app ao painel do i-mobile clicando na guia サイト/アプリ管理 (Gerenciamento de site/aplicativos) e no botão para a plataforma do seu app.

Preencha o formulário e clique no botão Subscribe規號 (Inscrever-se).

Para criar um novo Spot de publicidade, selecione seu app na guia サイト/アプリ管理 (gerenciamento de site/aplicativo).

Navegue até a guia 広告でット管理 (Gerenciamento de espaço de anúncio) e clique no botão prompt 規広告ット (Novo espaço de anúncio).

create_ad_spot

Em seguida, preencha o formulário, fornecendo o 広告ででットト (nome do espaço do anúncio), 広告まットサイズ (tamanho do espaço do anúncio) e a outros detalhes. Em seguida, clique no botão ว規órico (Inscrever-se).

new_ad_spot_form

Seu novo espaço de anúncio está pronto. Para conferir os detalhes da integração, clique no botão アプリา定取得 (Obter configurações do app).

ad_spot_list

Anote o パ전リッンャーID (ID do editor), o メディアID (ID da mídia) e o パנットID (ID do local). Você vai precisar desses parâmetros mais tarde ao configurar i-mobile para mediação na interface Ad Manager .

Step 2: Set up i-mobile demand in Ad Manager UI

Definir as configurações de mediação para seu bloco de anúncios

Faça login na sua conta do Ad Manager.

Acesse Exibição > Grupos de rendimento e clique no botão Novo grupo de rendimento.

Insira um Nome exclusivo para o grupo de rendimento, defina o Status como Ativo, selecione o Formato do anúncio e o Tipo de inventário como App para dispositivos móveis. Na seção Segmentação > Inventário, selecione o bloco de anúncios em Inventário e Aplicativo para dispositivos móveis ao qual você quer adicionar a mediação.

Em seguida, clique no botão Adicionar parceiro de rendimento.

Se você já tiver um Parceiro de rendimento para i-mobile, selecione-o. Caso contrário, selecione Criar um novo parceiro de rendimento.

Selecione i-mobile como a Rede de publicidade, insira um Nome exclusivo e ative a Mediação.

Ative a Coleta de dados automática e insira o Login name and API Password

Depois de selecionar o Parceiro de rendimento, escolha Mediação do SDK para dispositivos móveis como o Tipo de integração, Android como Plataforma e Ativo como o Status. Insira o Publisher ID, Media ID and Spot ID obtido na seção anterior. Em seguida, insira um valor de CPM padrão.

Clique em Salvar na parte inferior da página quando terminar.

Step 3: Import the i-mobile SDK and Adapter

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.3.0")
    implementation("com.google.ads.mediation:imobile:2.3.2.0")
}

Manual integration

  1. Download the latest version of the i-mobile SDK and extract the android-ad-sdk.aar under the sdk folder and add it to your project.

  2. 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

Ativar anúncios de teste

Registre seu dispositivo de teste em Ad Manager A i-mobile fornece ID do Spot, ID de mídia e ID do editor de teste para testes. É possível encontrá-los aqui.

Verificar anúncios de teste

Para verificar se você está recebendo anúncios de teste do i-mobile, ative os testes de uma única origem no Ad Inspector usando as i-mobile (Waterfall) origens de anúncios.

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.getAdapterResponses() 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 and targetSdkVersion 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.