Skip to content

rakuten-ads/Rakuten-Ads-Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Platform Android

Rakuten Unified Ads (RUNA) SDK Android

Ad Formats


Get Started

1. Prerequisites

  • 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+}

2. Import the RUNA SDK

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:

2.1 Example project-level build.gradle

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.11.2'

2.2 Launch SDK

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)
    }
}

2.3 Implementation

3. Dependencies

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.

4. Build env requirement

Thid SDK is built by below tools.

  • Kotlin version : 1.4.32
  • OpenJDK version : 11.0.8
  • Gradle version : 7.2

5. Implementation


Sample App Project

Public API

Javadoc

Troubleshooting


LANGUAGE :

jp