Show Sidebar

InMobi Integration using Android SDK

Maaf, entri ini hanya tersedia dalam bahasa 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.2.3
Supported Ad Formats: The VMAX SDK supports Interstitials, Banners, Billboard, Native,Rewarded Video and Instream video 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.2.3.jar from the SDK folder Mediation Files\Mediation Libraries to your app’s libs folder.
Add following entry in your app’s build.gradle file

 

Step 3: Additionally you can add following dependencies

  • Picasso  : The InMobi SDK  uses the popular Picasso library for loading the ad assets for all ad formats other than banner.To add the Picasso library to your application, add the following line to the application module’s dependency element in the Gradle build script.
  • Support Library : You must add the appcompat-v7 for all ad formats .To do so, add the following line to the application module’s dependency element in the Gradle build script.
  • RecyclerView : For supporting free scroll of a deck of images or ads, you must use RecyclerView for all ad formats other than banner. To do so, add the following line to the application module’s dependency element in the Gradle build script.

Additional Steps for Eclipse

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

Step 5: Add the following permissions to AndroidManifest.xml
Step 6: [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:

What would you like to do next?