Vungle Integration Guide

This guide will instruct you step-by-step on how to set Vungle live as an ad network on the ironSource Mediation platform.

Before You Start

  • Make sure you have correctly integrated ironSource’s Rewarded Video or Interstitial into your application.
  • The ironSource Mediation platform now supports the simultaneous activation of Vungle’s Rewarded Video or Interstitial for our iOS, Android and Unity SDK 6.6.5+ and Vungle adapter version 3.2.1+.

Step 1. Create a Vungle Account

  1. Create an account with Vungle. You can do so here.
  2. Once your account has been verified you can log in at their partner login here.

Step 2. Create an Application in Vungle

Once you log in, go to the Applications tab on the left side menu drop-down in the upper-left corner and click ‘Add Application‘:
1

Step 3.  Add a Placement

Click on the relevant app from the application list and on the app’s dedicated page, click ‘Add Placement‘:

2
Then input the necessary details to create a Vungle placement and click the ‘Sound Good‘ button:
1

Step 4. Activate Vungle on ironSource SDK Networks Module

There are d pieces of Data from the Vungle account which need to be inserted into your ironSource Network Setup Module in order for Vungle to work correctly in connection with ironSource:

Vungle App ID This is the unique identifier of your application in Vungle’s system.
Reporting API ID This is a unique identifier for your app in Vungle’s system, used with the Reporting API to track app performance.
Reporting API Key This is a unique identifier for your Vungle account. Along with the Reporting API ID, this will allow your ironSource Mediation Platform to import performance data from your Vungle account.
Placement Reference ID This is the unique identifier of the ad unit, necessary to differentiate Rewarded Video from Interstitial ads.

Once you obtain this information, you must configure Vungle’s parameters in your ironSource Account. By adding the above information correctly, you will be able to take full advantage of Vungle’s ad inventory and reporting data on ironSource‘s Mediation platform.

  1. Vungle Application ID

    Go to the Applications tab on the left side menu and click on the application you would like to configure on ironSource dashboard. You will then see Vungle App ID:
    1

  2. Reporting API ID

    Go to the Applications tab on the left side menu and click on the application you would like to configure on ironSource dashboard. You will then see Vungle Reporting API ID:
    1

  3. Reporting API Key

    Go to the My Account on the upper-right corner of the screen you will them see the Reporting API Key:
    1

  4. Placement Reference ID

    Go to the Placements tab on the left side menu and choose the application’s placements you would like to configure on ironSource dashboard:
    1

Activate Vungle on ironSource Platform

Once you’ve collected all necessary parameters, log in to your ironSource account.

  • Go to ‘Monetize‘ ➣ ‘Setup‘ ➣ ‘SDK Networks‘:
    1
  • Select Vungle from the list of Available Ad Networks and enter the Vungle ‘Reporting API Key‘:
    1
  • Click ‘Save‘.  Vungle will then be enabled in the Available Ad Networks table:
    1
  • Click on the Vungle’s Setup button and enter the ‘App ID‘, ‘Reporting API ID‘ and the
    under the relevant Ad Unit Settings:
    1
  • You will then see Vungle as Active for Mediation on your Setup Dashboard.
  • Verify your integration with the Reporting API; this column will check your integration through the Reporting API and return three possible responses: Verified, Failed and No Response. Double check your integration and the information you entered above; then click ‘Retry‘ until you see ‘Verified’.

Step 5. Add the Vungle Adapter to Your Build

Unity Plugin (Android Integration)

  1. Download the Vungle Unity Package:
    Add ISVungleAdapter_[version].unitypackage to your build. You can find the latest Vungle Unity package here.
  2. Add the Vungle files to your project:
    1. To add the Adapter, simply double click on the IronSourceVungleAdapter_[version].unitypackage and add all files to your unity project.
    2. Download Vungle 3rd party jarsAdd the jars to your project under Assets/Plugins/Android/IronSource/libs.

 

For Proguard Users Only

If you are using ProGuard with the Vungle adapter, you must add the following code to your ProGuard file:

# Vungle
-keep class com.vungle.warren.** { *; }
-dontwarn com.vungle.warren.error.VungleError$ErrorCode
# Moat SDK
-keep class com.moat.** { *; }
-dontwarn com.moat.**
# Okio
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
# Retrofit
-dontwarn okio.**
-dontwarn retrofit2.Platform$Java8
# Gson
-keepattributes Signature
-keepattributes *Annotation*
-dontwarn sun.misc.**
-keep class com.google.gson.examples.android.model.** { *; }
-keep class * implements com.google.gson.TypeAdapterFactory
-keep class * implements com.google.gson.JsonSerializer
-keep class * implements com.google.gson.JsonDeserializer
# Google Android Advertising ID
-keep class com.google.android.gms.internal.** { *; }
-dontwarn com.google.android.gms.ads.identifier.**

Unity Plugin (iOS Integration)

  1. Download the Vungle Unity Package
    Import the ISVungleAdapter_[version].unitpackage to your Unity project. You can find the latest Vungle Unity package here.
  2. Add the Vungle files to your Unity project
    To add the adapter, simply double click on the ISVungleAdapter_[version].unitpackage and add all files to your Unity project.
    Note: If you are upgrading from a previous version, please remove Vungle.x.x.x.framework from Assets/Plugins/iOS/IronSource.
    Our Unity Plugin adds the necessary frameworks automatically to your Xcode project.


Evaluate Your Ad Network Integration

  • Verify your ad network integration with our Integration Helper. The ironSource SDK provides a tool to ensure you’ve successfully integrated our SDK as well as any additional network adapters.
  • Manage the debug logs for your integrated mediation ad networks with this boolean

    IronSource.Agent.setAdaptersDebug(true);

    When set to TRUE, this line of code will enable debug logs to help you troubleshoot issues with all of the mediation ad networks that permit to do so.  Remove this code before your app goes live with our ad units! Supported for SDK versions 6.5.2 and up.

Done!
You are now all set to deliver Vungle Ads within your application!


What’s Next?

To leverage additional ad networks through ironSource Mediation, integrate the adapters and follow our integration guides