Show Sidebar

Unity Ads Integration using Android SDK

Rất tiếc, mục này chỉ tồn tại ở 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.2.1
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 in your app and add the files and 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 file from the SDK folder Mediation Files\Mediation Libraries as a Module Dependency in your app

and for Eclipse add the unity-ads folder from Eclipse\Mediation Libraries to your Eclipse Project.

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

What would you like to do next?