VMAX
 
 
 
 
Show Sidebar

Unity Ads 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.

Current Unity Ads Version: 2.0.4
Supported Ad Formats: The VMAX SDK supports rewarded video and interstitial video ads from the Unity Ads Network.

You will need

  1. an active Unity Ads account
  2. Api Key
  3. Game ID

In Unity Ads

  1. Click on your project name. The Game ID is displayed under Platforms.
  2. Open the Settings page and open the API tab. The API key is displayed here.

Further Integration

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

Step 2: For Android Studio incorporate the unity-ads.aar project present in the Android StudioUnity-Ads aar folder and for Eclipse add the Unity-ads library project from Mediation Files\Mediation Libraries\unity-ads to your app’s libs folder.

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

Step 4: Add the following permissions to AndroidManifest.xml
Step 5: Enable hardware acceleration to support video ads.
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?