Implementation of Vungle
Describe the Vungle implementation procedure for mediation setting of FullscreenInterstitial advertisement.
For implementation of the startup guide and FullscreenInterstitial advertisement, refer to the following implementation procedure.
Startup
Implementation of FullscreenInterstitial advertisement
Implementation procedure:
- Introducing libraries in Maven
- Manually install the library
- Writing the manifest file
Introducing libraries in Maven(recommended)
- Add the following to
allprojects>repositoriesinProject>build.gradle.
allprojects {
repositories {
google()
// GenieeSDK
maven {
url 'https://raw.github.com/geniee-ssp/Geniee-Android-SDK/master/repository'
}
}
}
2
3
4
5
6
7
8
9
- Add the following to
dependenciesofModule>build.gradle.
dependencies {
// Geniee
implementation 'jp.co.geniee.gnsfullscreeninterstitialadapter:GNSFullscreenInterstitialAdapter-Vungle:4.3.0'
// Vungle Optional Google Play Services
implementation 'com.google.android.gms:play-services-location:15.0.1'
}
- Implementation example
- Project>build.gradle
allprojects {
repositories {
google()
jcenter()
// GenieeSDK
maven {
url 'https://raw.github.com/geniee-ssp/Geniee-Android-SDK/master/repository'
}
}
}
2
3
4
5
6
7
8
9
10
11
12
- Module>build.gradle
dependencies {
// Google SDK
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.1'
implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
// Geniee
implementation 'jp.co.geniee.gnadsdk:GNAdSDK:8.5.1 // GenieeSDK
implementation 'jp.co.geniee.gnsfullscreeninterstitialadapter:GNSFullscreenInterstitialAdapter-Vungle:4.3.0'
// Vungle Optional Google Play Services
implementation 'com.google.android.gms:play-services-location:15.0.1'
}
Manually install libraries
If you followed the Introducing libraries in Maven procedure, you do not need to do this step.
Manual introduction procedure here
Download Geniee Adapter SDK
Download Geniee Android SDK from the following URL.
Please check with your sales representative for Fullscreen Interstitial - Adnws - Android - SDK required formanually installing libraries.
Placing the Local Library
Unzip Geniee Android SDK.
Add GNSFullscreenInterstitialAdapter to the project.
If the
libsfolder does not exist, create it as necessary.Copy the following files under the
GNSFullscreenInterstitialAdapterfolder to thelibsfolder.- GNSFullscreenInterstitialAdapter-Vungle-4.3.0.jarCopy the following files under the
FullscreenInterstitial-Adnws-Android-SDKfolder to thelibsfolder.- VNG-moat-mobile-app-kit-2.6.3.jar - gson-2.8.6.jar - okhttp-3.12.12.jar - okio-1.15.0.jar - vungle-android-sdk-6.8.0.jarAdd it to
allprojects>repositoriesinProject/build.gradle.allprojects { repositories { flatDir { dirs 'libs' } } }1
2
3
4
5
6
7Add it to
dependenciesofModule/build.gradle.dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') // Vungle Optional Google Play Services implementation 'com.google.android.gms:play-services-location:15.0.1' }1
2
3
4
5
6
Description of manifest file
Write the necessary information in the manifest file AndroidManifest.xml.
- If you followed the procedure
Installing libraries with Maven, you do not need to perform this step.
Manual introduction procedure here
- Describe the activity information used by the SDK in `<application>` in the manifest file.
```java
<!--Vungle Activities-->
<activity
android:name="com.vungle.warren.ui.VungleActivity"
android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize"
android:launchMode="singleTop"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
<activity
android:name="com.vungle.warren.ui.VungleFlexViewActivity"
android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize"
android:hardwareAccelerated="true"
android:launchMode="singleTop"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
```
- Describe the permissions that the SDK uses in the manifest file.
```java
<!--Vungle Required Permissions-->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="18" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!--Optional Permissions-->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
```