Implementation of TikTok

Describe the TikTok implementation procedure for mediation setting of RewardVide advertisement. For implementation of the startup guide and RewardVide advertisement, refer to the following implementation procedure.
Startup
Implementation of RewardVide advertisement

Implementation procedure:

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

Introducing libraries in Maven(Recommend)

  1. Add the following to allprojects>repositories in Project>build.gradle.
allprojects {
    repositories {
        jcenter()
        google()    	
        // GenieeSDK
        maven { 
            url 'https://raw.github.com/geniee-ssp/Geniee-Android-SDK/master/repository' 
        }
        
        flatDir {
            dirs 'libs'
        }
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  1. Add the following to dependencies of Module>build.gradle.
dependencies {	
    // Geniee
    implementation 'jp.co.geniee.gnsrewardadapter:GNSRewardAdapter-TikTok:6.3.0'
    // TikTok
    implementation(name:'tiktok_ad_sdk-2.0.0.0', ext:'aar')
}
  1. Copy the following files under the RewardVideo-Adnws-Android-SDK folder to the libs folder.

    • tiktok_ad_sdk-2.0.0.0.aar
  2. Implementation example

  • Project>build.gradle
   allprojects {
   	repositories {
   		google()
   		jcenter()
   			
   		// GenieeSDK
   		maven { 
   			url 'https://raw.github.com/geniee-ssp/Geniee-Android-SDK/master/repository'
   		}
   		
       flatDir {
           dirs 'libs'
       }
   	}
   }
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  • 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.0' // GenieeSDK
    implementation 'jp.co.geniee.gnsrewardadapter:GNSRewardAdapter-TikTok:6.3.0'
	// 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 Reward Video - 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-TikTok-6.3.0.jar

  • Copy the following files under the RewardVideo-Adnws-Android-SDK folder to the libs folder.
    - tiktok_ad_sdk-2.0.0.0.aar

  • Add it to android and dependencies of Module/build.gradle.

    dependencies {
    	implementation fileTree(include: ['*.jar'], dir: 'libs')
    	// TikTok AAR integration
    	implementation(name: 'tiktok_ad_sdk-2.0.0.0', ext: 'aar')
    
    }
    
    1
    2
    3
    4
    5
    6

Description of manifest file

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

  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.

    <!-- TikTok -->
    <provider
        android:name="com.bytedance.sdk.openadsdk.multipro.TTMultiProvider"
        android:authorities="${applicationId}.TTMultiProvider"
        android:exported="false" />
    
    1
    2
    3
    4
    5
  • Describe the permissions that the SDK uses in the manifest file.

    <!--TikTok Required Permissions-->
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    
    <!--Optional Permissions-->
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
Last Updated: 9/7/2020, 1:30:18 PM