Integration

This guide explains how to add the Empower Mobile Ads SDK to your Android project.

Step 1: Add the Maven Repository

Add the Empower Maven repository to your project-level settings.gradle.kts (or settings.gradle for Groovy):

// settings.gradle.kts
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url = uri("https://maven.empower.net/release") }
}
}

Step 2: Add the SDK Dependency

Add the Empower Mobile Ads SDK dependency to your app-level build.gradle.kts:

// app/build.gradle.kts
dependencies {
implementation("net.empower.mobile.ads:empower-mobile-ads:5.5.5")
}

Step 3: Configure AndroidManifest

Add your Google Ads Application ID to your AndroidManifest.xml inside the <application> tag:

<manifest>
<application>
<!-- Your existing application configuration -->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/>
</application>
</manifest>

Note: Replace the value with your actual Google Ads Application ID. Contact Empower support if you need assistance obtaining this ID.

Step 4: Sync Your Project

After adding the dependencies, sync your project with Gradle files:

  1. Click File > Sync Project with Gradle Files in Android Studio
  2. Wait for the sync to complete successfully

Optional: Mediation Adapters

The Empower Mobile Ads SDK includes built-in support for major ad networks. If you require additional mediation adapters, add the following repositories and dependencies:

Additional Repositories

// settings.gradle.kts
dependencyResolutionManagement {
repositories {
// ... existing repositories
// For additional mediation networks
maven { url = uri("https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea") }
maven { url = uri("https://artifact.bytedance.com/repository/pangle") }
maven { url = uri("https://android-sdk.is.com/") }
maven { url = uri("https://cboost.jfrog.io/artifactory/chartboost-ads/") }
}
}

Mediation Adapter Dependencies

Add any required mediation adapters based on your monetization strategy:

// app/build.gradle.kts
dependencies {
// Core SDK
implementation("net.empower.mobile.ads:empower-mobile-ads:5.5.0")
// Optional: Additional mediation adapters (add as needed)
// implementation("com.google.ads.mediation:applovin:...")
// implementation("com.google.ads.mediation:facebook:...")
// implementation("com.google.ads.mediation:chartboost:...")
}

Note: Contact your Empower account manager for the recommended adapter configuration based on your target markets and revenue goals.