Android Reward Video Bulk implementation of all ad networks

Describe the procedure for bulk implementation of all ad networks for mediation setting of video reward advertisement. For implementation of the startup guide and video reward advertisement, refer to the following implementation procedure.

Startup
Implementation of RewardVideo advertisement

Implementation procedure:

  1. Introducing libraries in Maven
  2. Manually install the library
  3. Writing the manifest file

Introducing libraries in Maven(Recommend)

  1. Download Geniee Adapter SDK

    • Download Geniee Android SDK from the following URL. Geniee-Android-SDK
    • For the necessary RewardVideo-Adnws-Android-SDK please contact your sales representative.
    • If the libs folder does not exist, create it as necessary.
    • Copy the following file of RewardVideo-Adnws-Android-SDK to the libs folder.
      • AMoAd-playable-1.0.0.jar
      • MediaSDK_ver_2_4_0.jar
      • tiktok_ad_sdk-2.0.0.0.aar
  2. Add the following to allprojects>repositories in Project>build.gradle.

    allprojects {
    	repositories {
    		jcenter()        	
    		// GenieeSDK
    		maven { 
    		    url 'https://raw.github.com/geniee-ssp/Geniee-Android-SDK/master/repository'
    		}
    		// nendSDK
    		maven {
    		    url 'http://fan-adn.github.io/nendSDK-Android-lib/library'
    		}
    		// Maio SDK
    		maven{
    		    url "https://imobile-maio.github.io/maven"
    		}
    		//Adcolony SDK
    		maven {
    		    url  "https://adcolony.bintray.com/AdColony"
    		}
    		flatDir {
    		    dirs 'libs'
        	}
    	}
    }
        
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
  3. Add the following to dependencies of Module>build.gradle.

     dependencies {
         implementation fileTree(include: ['*.jar'], dir: 'libs')
         implementation 'com.android.support.constraint:constraint-layout:1.1.3'
         // Geniee
         implementation 'jp.co.geniee.gnsrewardadapter:GNSRewardAdapter:6.4.1'
         // Nend
         implementation 'com.android.support:cardview-v7:26.1.0'
         // Vungle Optional Google Play Services
         implementation 'com.google.android.gms:play-services-location:15.0.1'
         // TikTok
         implementation(name:'tiktok_ad_sdk-2.0.0.0', ext:'aar')
     }
     
  4. Implementation example

  • Project>build.gradle

    allprojects {
    	repositories {
    		google()
    		jcenter()
    		
    		// GenieeSDK
    		maven { 
    		    url 'https://raw.github.com/geniee-ssp/Geniee-Android-SDK/master/repository'
    		}
    		// nendSDK
    		maven {
    		    url 'http://fan-adn.github.io/nendSDK-Android-lib/library'
    		}
    		// Maio SDK
    		maven{
    		    url "https://imobile-maio.github.io/maven"
    		}
    		//Adcolony SDK
    		maven {
    		    url  "https://adcolony.bintray.com/AdColony"
    		}
    		
    		flatDir {
    		    dirs 'libs'
        	}
    	}
    }
    
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
  • Module>build.gradle

      dependencies {	
          implementation fileTree(include: ['*.jar'], dir: 'libs')
          // 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.gnsrewardadapter:GNSRewardAdapter:6.4.1'
          // Nend
          implementation 'com.android.support:cardview-v7:26.1.0'
          // Vungle Optional Google Play Services
          implementation 'com.google.android.gms:play-services-location:15.0.1'
          // TikTok
          implementation(name:'tiktok_ad_sdk-2.0.0.0', ext:'aar')
      }
      

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 RewardVideo-Adnws-Android-SDK required formanually installing libraries.

Placing the Local Library

  1. Unzip Geniee Android SDK.

  2. Add GNSRewardAdapter to the project.

  • If the libs folder does not exist, create it as necessary.

  • Copy the following files under the GNSRewardAdapter folder to the libs folder.

    - GNSRewardAdapter-AdColony-6.4.1.jar
    - GNSRewardAdapter-Amoad-6.4.1.jar
    - GNSRewardAdapter-AppLovin-6.4.1.jar
    - GNSRewardAdapter-CAReward-6.4.1.jar
    - GNSRewardAdapter-Maio-6.4.1.jar
    - GNSRewardAdapter-Nend-6.4.1.jar
    - GNSRewardAdapter-Tapjoy-6.4.1.jar
    - GNSRewardAdapter-UnityAds-6.4.1.jar
    - GNSRewardAdapter-Vungle-6.4.1.jar
    - GNSRewardAdapter-TikTok-6.4.1.jar
    
  • Copy the following files under the RewardVideo-Adnws-Android-SDK folder to the libs folder.

    - AMoAd-playable-1.0.0.jar
    - MediaSDK_ver_2_4_0.jar
    - adcolony-4.7.1.jar
    - applovin-sdk-9.14.5.aar
    - logging-interceptor-3.7.0.jar
    - maio-1.1.13.aar
    - nend-sdk-5.4.2.aar
    - tapjoyconnectlibrary-12.7.0.jar
    - unity-ads-3.4.8.aar
    - 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.jar
    - tiktok_ad_sdk-2.0.0.0.aar
    
  • Copy the following folder under the RewardVideo-Adnws-Android-SDK>AdColony folder to the libs folder.

    - arm64-v8a
    - armeabi
    - armeabi-v7a
    - x86
    - x86_64
    
  • Add it to allprojects>repositories in Project/build.gradle.

      allprojects {
          repositories {
              flatDir {
                  dirs 'libs'
              }
          }
       }
    
    1
    2
    3
    4
    5
    6
    7
  • Add it to android and dependencies of Module/build.gradle.

    android {
        sourceSets {
            main {
                jniLibs.srcDirs = ['libs']
            }
        }
    }
    dependencies {
        implementation fileTree(include: ['*.jar'], dir: 'libs')
        implementation 'com.android.support:appcompat-v7:27.1.1'
        implementation 'com.android.support.constraint:constraint-layout:1.1.3'
        // Maio AAR integration
        implementation(name: 'maio-1.1.13', ext: 'aar')
        // UnityAds
        implementation(name: 'unity-ads-3.4.8', ext: ‘aar’)
        // Nend
        implementation(name:'nend-sdk-5.4.2', ext:'aar')
        implementation 'com.android.support:cardview-v7:26.1.0'
        // Vungle Optional Google Play Services
        implementation 'com.google.android.gms:play-services-location:15.0.1'
        // TikTok
        implementation(name:'tiktok_ad_sdk-2.0.0.0', ext:'aar')
    }
    

Description of manifest file

Write the necessary information in the manifest file AndroidManifest.xml.

  1. Enter the AppLovin key

    • To use AppLovin, enter the key specified in YOUR_APPLOVIN_SDK_KEY_HERE.
<application>
	<meta-data
			android:name="applovin.sdk.key"
			android:value="YOUR_APPLOVIN_SDK_KEY_HERE" />
</application>
1
2
3
4
5
  • Please contact Salespeople for Applovin key.
  1. 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.
<!-- AppLovin -->
<activity android:name="com.applovin.adview.AppLovinInterstitialActivity" android:configChanges="orientation|screenSize"/>
<activity android:name="com.applovin.adview.AppLovinConfirmationActivity" android:configChanges="orientation|screenSize"/>
<meta-data
android:name="applovin.sdk.key"
android:value="YOUR_APPLOVIN_SDK_KEY_HERE" />

<!-- AdColony -->
<activity android:name="com.adcolony.sdk.AdColonyInterstitialActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:hardwareAccelerated="true"/>
<activity android:name="com.adcolony.sdk.AdColonyAdViewActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:hardwareAccelerated="true"/>

<!-- CAReward-->
<activity
android:name="jp.co.mediasdk.mscore.ui.videoAd.MSGVAActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:hardwareAccelerated="true" />

<!-- Tapjoy -->
<activity
android:name="com.tapjoy.TJAdUnitActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
<activity
android:name="com.tapjoy.TJContentActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:hardwareAccelerated="true" />

<!-- Amoad -->
<activity android:name="com.amoad.AMoAdInterstitialVideoActivity" />

<!--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" />
	
<!-- TikTok -->
<provider
	android:name="com.bytedance.sdk.openadsdk.multipro.TTMultiProvider"
	android:authorities="${applicationId}.TTMultiProvider"
	android:exported="false" />
	
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
  • Describe the permissions that the SDK uses in the manifest file.
<!--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" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

<!--TikTok Required Permissions-->
<uses-permission android:name="android.permission.WAKE_LOCK" />
1
2
3
4
5
6
7
8
9
10
11
Last Updated: 11/10/2020, 2:55:13 PM