Supported Ad Formats: The VMAX SDK supports in-content video ads from Google IMA.
You will need
- Working Google IMA Setup with associated video assets
- Video ad unit
- Ad Tag URL
For Android Studio and Eclipse
Step 1: Create a package com.vmax.android.ads.mediation.partners in your app and add the file GoogleIMA.java from the SDK folder Mediation Files\Mediation Adapters\com\vmax\android\ads\mediation\partners to it.
Step 2: Include the below dependency in your app level build.gradle file.
1 |
compile 'com.google.ads.interactivemedia.v3:interactivemedia:3.8.7' |
[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:
1 2 3 4 5 6 7 8 |
#Google IMA -keep class com.google.** { *; } -keep interface com.google.** { *; } -keep class com.google.ads.interactivemedia.v3.api.** { *;} -keep interface com.google.ads.interactivemedia.** { *; } -dontwarn com.google.ads.interactivemedia.v3.api.** |