Show Sidebar

Enabling Ads – Android SDK

Points to Remember

  1. For VMAX SDK version below 3.6.0, to use marshmallow runtime permissions you need to call this once every app session before using any VMAX API:
  2. From version 3.5.3 onwards, the Android Support v4 Library is not mandatory for using the VMAX base SDK. Add the Android Support v4 Library only if specifically required by a mediation partner.
  3. Make sure you pass the Activity Context to the VMAX SDK if you want to display banner, native, interstitial or incent-based ads.
  4. Cache the next ad only after the previous ad is completely consumed. The same will be notified using the willDismissAd callback on sdk version below 3.6.0 and onAdDismissed callback on sdk version 3.6.0 onwards.
  5. Before showing an ad, pause all game sounds and animations that might interfere with an ad. You can resume the same after getting the willDismissAd callback on sdk version below 3.6.0 and onAdDismissed callback on sdk version 3.6.0 onwards (when the ad ends).
  6. Follow the best practices of the ad networks that you wish to integrate.
  7. VMAX being a mediation platform will try to maximize the yield for you. It is not recommended to send another request for an ad if there is an unsuccessful attempt in fetching an ad. Please wait at least 30 seconds before requesting an ad after an unsuccessful fetch attempt.
  8. For video ads to perform optimally, please enable hardware acceleration by adding the following line in your manifest:

Requesting Ads

To check version of SDK use below API:

The VMAX SDK provides various mechanisms to request for Ads in your Android application. The SDK makes available both simple fully-managed Ad request methods and also the Cache & Show Ad methods to enable prefetching of ads for later viewing.