Skip to main content

Installation

🔧 Gradle Integration​

Step 1: Add the Dependency​

Add the following to your app-level build.gradle:

dependencies {
implementation 'com.orangeclickmedia.adnetwork:adnetwork-sdk:1.1.9'
}

Step 2: Configure Repositories​

Ensure this is present in your root build.gradle:

allprojects {
repositories {
mavenCentral()
}
}
Latest Version

The latest version is 1.1.9. Check for updates regularly to get the newest features and bug fixes.

🔐 Required Permissions​

Add the following permissions to your AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

📲 Google AdMob App ID​

Add your Google AdMob (or GAM) Application ID to your AndroidManifest.xml inside the <application> tag:

<application>
<!-- Replace with your own App ID -->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713"/> <!-- TEST App ID -->

<!-- Your activities and other components -->
</application>
Important

Replace the test App ID (ca-app-pub-3940256099942544~3347511713) with your actual Google AdMob or GAM Application ID before deploying to production.

Kotlin vs Java​

The SDK supports both Kotlin and Java. Examples in this documentation are provided in both languages where applicable.

For Kotlin Projects​

dependencies {
implementation 'com.orangeclickmedia.adnetwork:adnetwork-sdk:1.1.9'
}

For Java Projects​

dependencies {
implementation 'com.orangeclickmedia.adnetwork:adnetwork-sdk:1.1.9'
}

Sync Your Project​

After adding the dependency, click Sync Now in Android Studio to download the SDK and its dependencies.

Next Steps​

Continue to Getting Started to initialize the SDK in your app.