Implementation of Nend
Describe the Nend 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:
- Introducing libraries in Maven
- Manually install the library
- Writing the manifest file
Introducing libraries in Maven(Recommend)
- 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'
}
// nendSDK
maven {
url 'http://fan-adn.github.io/nendSDK-Android-lib/library'
}
}
}
2
3
4
5
6
7
8
9
10
11
12
13
- Add the following to
dependencies
ofModule>build.gradle
.
dependencies {
// Geniee
implementation 'jp.co.geniee.gnsrewardadapter:GNSRewardAdapter-Nend:6.4.1'
// Nend
implementation 'com.android.support:cardview-v7:26.1.0'
}
- 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'
}
}
}
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.1' // GenieeSDK
implementation 'jp.co.geniee.gnsrewardadapter:GNSRewardAdapter-Nend:6.4.1'
// Nend
implementation 'com.android.support:cardview-v7:26.1.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 RewardVideo-Adnws-Android-SDK
required formanually installing libraries
.
Placing the Local Library
Unzip Geniee Android SDK.
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 thelibs
folder.- GNSRewardAdapter-Nend-6.4.1.jar
Copy the following files under the
RewardVideo-Adnws-Android-SDK
folder to thelibs
folder.
- nend-sdk-5.4.2.aarAdd 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') // Nend implementation(name:'nend-sdk-5.4.2', ext:'aar') implementation 'com.android.support:recyclerview-v7:26.1.0' implementation 'com.android.support:cardview-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' }
Description of manifest file
The manifest description is unnecessary.