Implementation of Tapjoy
Describe the Tapjoy 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>repositories
inProject>build.gradle
.
allprojects {
repositories {
google()
// GenieeSDK
maven {
url 'https://raw.github.com/geniee-ssp/Geniee-Android-SDK/master/repository'
}
// Tapjoy SDK
maven {
name "Tapjoy's maven repo"
url "https://tapjoy.bintray.com/maven"
}
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
- Add the following to
dependencies
ofModule>build.gradle
.
dependencies {
// Geniee
implementation 'jp.co.geniee.gnsfullscreeninterstitialadapter:GNSFullscreenInterstitialAdapter-Tapjoy:4.3.0'
}
- Implementation example
- Project>build.gradle
allprojects {
repositories {
google()
jcenter()
// GenieeSDK
maven {
url 'https://raw.github.com/geniee-ssp/Geniee-Android-SDK/master/repository'
}
// Tapjoy SDK
maven {
name "Tapjoy's maven repo"
url "https://tapjoy.bintray.com/maven"
}
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- 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-Tapjoy:4.3.0'
}
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
libs
folder does not exist, create it as necessary.Copy the following files under the
GNSFullscreenInterstitialAdapter
folder to thelibs
folder.- GNSFullscreenInterstitialAdapter-Tapjoy-4.3.0.jar
Copy the following files under the
FullscreenInterstitial-Adnws-Android-SDK
folder to thelibs
folder.
- tapjoyconnectlibrary-12.7.0.jarAdd it to
allprojects>repositories
inProject/build.gradle
.allprojects { repositories { flatDir { dirs 'libs' } } }
1
2
3
4
5
6
7Add it to
dependencies
ofModule/build.gradle
.dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support.constraint:constraint-layout:1.0.2' }
1
2
3
4
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.<!-- 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" />
1
2
3
4
5
6
7
8
9
10
11