- Ad Formats
- 1. Prerequisites
- 2. Import the RUNA SDK
- 3. Dependencies
- 4. Build env requirement
- 5. Implementation
- Uses Android Studio 1.0 or higher
- Target Android API level 21 or higher
- Uses version 3.5.0 or higher for Gradle build tools.
com.android.tools.build:gradle:{3.5.0+}
Apps can import the RDN Mobile Ads SDK with a Gradle dependency.In order to use that repository, you need to reference it in the app's project-level build.gradle
file. Open yours and look for an allprojects section:
allprojects {
repositories {
jcenter()
maven {
url 'https://github.com/rakuten-ads/Rakuten-Ads-Android/raw/master/maven'
}
}
}
Next, open the app-level build.gradle
file for your app, and look for a "dependencies" section.
Latest Runa version :
implementation 'com.rakuten.android.ads:runa:1.12.2'
In the onCreate method of the class that inherits Application, execute as follows and launch the SDK.
Runa.init(this)
Sample
class Application : Application() {
override fun onCreate() {
super.onCreate()
Runa.init(this)
}
}
This SDK depends on the following libraries:
- com.google.code.gson:gson:2.8.2
- com.google.android.gms:play-services-ads-identifier:17.1.0
In case of exclude these libraries.
If you are already using these libraries, you can exclude them in the following ways to avoid conflicts:
implementation("com.rakuten.android.ads:runa:X.X.X") {
exclude group: "com.google.android.gms", module: "play-services-ads-identifier"
exclude group: "com.google.code.gson", module: "gson"
}
X.X.X : Using version.
※ Exclude it with
exclude
if it is already used and duplicated.
Thid SDK is built by below tools.
- Kotlin version : 1.9.25
- OpenJDK version : 17.0.12
- Gradle version : 8.9
LANGUAGE :