• English
  • Hindi
  • Bahasa
  • Vietnemese
  • Malay
  • Thai
Show Sidebar

InMobi Integration using Android SDK

Sorry, this entry is only available in English. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.

Supported InMobi Version: 6.0.0

Supported Ad Formats: The VMAX SDK supports Interstitial, Banner , in-feed,content stream and carousel native ads from InMobi.

You will need

  1. an active InMobi account.
  2. Property ID
  3. Placement ID
  4. Account ID
  5. the email address you use to sign in to your InMobi account. (for reporting)
  6. the password you use to sign in to your InMobi account. (for reporting)
  7. a 32-character string secret key. To know your secret key, contact the InMobi helpdesk. (for reporting)

In InMobi

In your InMobi account

  1. Add an App
  2. Create a Placement

For Android Studio and Eclipse

Step 1: Create a package com.vmax.android.ads.mediation.partners in your app and add the files InmobiNative.java, InmobiBanner.java, InmobiInterstitial.java and InmobiRewardedVideo.java from the SDK folder Mediation Files\Mediation Adapters\com\vmax\android\ads\mediation\partners to it.

Step 2: Add the file InMobi-6.0.0.jar from the SDK folder Mediation Files\Mediation Libraries to your app’s libs folder.

Additional Steps for Eclipse

Step 3: Add the accompanying code inside the <application> tag in AndroidManifest.xml

Step 4: Add the following permissions to AndroidManifest.xml

Step 5: [Optional] If you are running ProGuard on your Android application, ensure that the following directive is added in your ProGuard configuration file proguard-rules.pro:

Mapping of Native Elements

For VMAX SDK versions before 3.5.19, you need to map the InMobi elements with VMAX SDK elements in the InMobi dashboard as shown in the below table.
Note: If you’re using version 3.5.19 and above, this step is no longer necessary.

New VMAX SDK Native Elements Old JSON Key names
VMAX (v3.5.0 and before)
New JSON Key names
VMAX (v3.5.1 to v3.5.18)
Title (Max 30 chars) TITLE_TEXT title
Link URL CLICK_URL linkUrl
Icon (80×80) ICON imageIcon
Main Image (1200×628) LARGE_IMAGE imageMain
Description (Max 90 chars) DESCRIPTION desc
Rating RATING rating

What would you like to do next?