Vungle

Please Note! If your Android application is connected to the SDK of Appsflyer and Vungle at the same time, it will prompt conflict when compiling.Please refer to:Deal with the conflict between AppsFlyer and Vungle.

Create an Application in Vungle

1. Enter Vungle and log in, click Add Application.vungle_en_1.jpg

2. Select the store corresponding to the APP, fill in relevant information and other content to complete the creation of the application.vungle_en_2.jpg

Note: In the above operation, if your App is not on the App Store yet, you can only test it. Before the App is officially launched, you need to associate the App Store address with Vungle before it can be officially launched.
This app is directed to children under 13 as defined by the Children’s Online Privacy Projection Act: It is required to comply with the COPPA policy. As for whether the app is directed to children under 13 years old, please check it.

 

Add Placement

1. Select the created application, click Add Placement.vungle_en_3.jpg

2. Select the type of ad slot to be created, fill in the ad slot name and other information, and click Continue to complete the ad slot creation.vungle_en_4.jpg

  • MREC :  Popular industry standard rectangular ad (300x250) that incorporates video for higher engagement.
  • Banner-Ad Fresh: Enable to set the number of seconds an ad is displayed before a new ad is shown.

 

AdTiming Platform Configuration

Ad Network

1. Enter the AdTiming publisher platform, click on Ad Network → Edit behind Vungle.___5.jpg

2. After filling in the relevant information, click Save.___6.jpg

  • App ID: App ID is displayed on your App page, as shown below:vungle_en_5.jpg

  • Reporting API Key: You need to enter the report in the navigation bar on the left, and select the Reporting API Key of your account in the upper right corner of the page to get this parameter.
    vungle_en_6.jpgvungle_en_report_key.jpg

 

Add Instance

1. Click Mediation → Ad unitAdd Instance.___10.jpg

2. After filling in the relevant information, click Save.vungle_en_7.jpg

  • Ad Network: Select Vungle

  • Instance NameYou can define the name of your ad unit yourself, we suggest you name it: AdTiming Placement ID_Ad Network Name_ Country_Floor Price.(E.g: 6539_Vungle_USA_40)

  • Unit ID: You can get it by entering the Placements page.vungle_en_8.jpg

 

Vungle Test Mode

It is very important to enable test mode for testing. We strongly recommend that you test in the following ways before the app is released.

You only need to select Test Mode on the App Settings page.vungle_en_9.jpg

 

Add the Vungle SDK&Adapter to Your Build

Android

1.  Add the Vungle SDK

  • Add to your project-level build.gradle file.
  ...
allprojects {
repositories {
...

jcenter()
maven {
url "https://jitpack.io"
}
}
}
  • Add to your application-level build.gradle file.
 dependencies {
implementation 'com.vungle:publisher-sdk-android:6.7.1'
}

 2.  Add the Vungle Adapter

      AdTiming supports both Gradle dependencies and Manual download mechanisms.

       Gradle dependencies

  • Add the following in your project-level build.gradle file.
 ...
allprojects {
repositories {
...

jcenter()
maven {
url "https://dl.adtiming.com/android-sdk"
}
}
}
  • Add the following in your application-level build.gradle file.
 implementation 'com.adtiming.adapters:vungle:3.6.2@aar'

       Manual download

  • Download the Vungle Adapter from here.
  • Add the Vungle Adapter to Your Project
    Move the VungleAdapter-x.x.x.aar to the libs folder in your Android Project.
  • Make sure you add the following to your Gradle build file under the dependencies section:
implementation (name:'VungleAdapter-x.x.x', ext:'aar')

3.  Update AndroidManifest.xml

  • Configure Android Manifest.xml to add permissions.
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- Optional permissions to enable better geo-targeting of ads (recommended) -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

4. For Proguard Users Only


If you are using ProGuard with the Vungle adapter, you must add the following code to your ProGuard file (Android Studio: proguard-rules.pro or Eclipse: proguard-project.txt):

 # 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.*

 

iOS

AdTiming supports both Cocoapods and Manualdownload mechanisms.

Cocoapods

To Integrate the Vungle SDK with Cocoapods, enter the following line in your podfile and you are good to go!

pod 'VungleSDK-iOS'
Copy

Manual Download

1. Download the Vungle framework

  • you can find the lastest Vungle SDK here.

2. Add the Vungle frameworks to your Project

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

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.