Android Studio SDK

Android Native Cross-Promotion

Clean Gradle dependency, zero permission leaks, and 100% compliance with Google Play Store Developer Policies.

1 Configure settings.gradle & build.gradle

Add the JitPack repository and the library dependency:

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

// app/build.gradle (.kts)
dependencies {
    implementation("com.github.adswap-network:AdSwap-SDK-Android:1.0.20")
}

2 Initialize in Application or MainActivity

Initialize once using your assigned Publisher ID:

// Kotlin
import com.network.adswap_sdk.AdSwap

class MainApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        AdSwap.initialize("PUB-YOUR-ID")
    }
}

3 Display Banners & Full-Screen Interstitials

// Display in a ViewGroup container:
AdSwap.showBanner(this, binding.bannerContainer, "productivity")

// Or show full-screen ad with closure callback:
AdSwap.showInterstitial(this, "productivity") {
    // Continue user navigation
}

Ready to publish on Android?

Sign up to get your publisher tracking identifier immediately.

Get Free Publisher ID