OneAdNetwork

Developers

Build with OneAdNetwork

Install the Android or iOS kit, drop in your placement ID from the publisher dashboard, and start showing real ads.

Android SDK (Kotlin)

Download SDK

Version 2.0 · Android 5.0+ (API 21). Banner (image or video, auto-refresh), interstitial, rewarded and native ads, with viewable-impression and click tracking.

// settings.gradle.kts
include(":oneadnetwork")

// app/build.gradle.kts
implementation(project(":oneadnetwork"))

// Application.onCreate()
OneAdNetwork.init(this)

// layout XML
<com.oneadnetwork.sdk.OneAdBannerView
    android:id="@+id/ad"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

// Banner
findViewById<OneAdBannerView>(R.id.ad).load("PLC_xxxxxxxxxxxx")

// Interstitial
val inter = OneAdInterstitial("PLC_xxxxxxxxxxxx")
inter.load(this) { err -> if (err == null) inter.show(this) }

// Rewarded
val rw = OneAdRewarded("PLC_xxxxxxxxxxxx")
rw.load(this) { err -> if (err == null) rw.show(this, object : FullScreenCallbacks {
    override fun onReward() { giveCoins(10) } }) }

// Native
OneAdNative.load(this, "PLC_xxxxxxxxxxxx") { ad, _ ->
    ad?.let { title.text = it.headline; it.loadImageInto(image); it.registerView(card) } }

iOS SDK (Swift)

Download SDK

Version 2.0 · iOS 13+ Swift Package. Banner (image or video, auto-refresh), interstitial, rewarded and native ads, with viewable-impression and tap tracking.

// Xcode: File > Add Package Dependencies > Add Local… (unzipped ios folder)
import OneAdNetwork

let banner = OneAdBannerView(frame: CGRect(x: 0, y: 0, width: 320, height: 50))
view.addSubview(banner)
banner.load(placementId: "PLC_xxxxxxxxxxxx")

// Interstitial
let inter = OneAdInterstitial(placementId: "PLC_xxxxxxxxxxxx")
inter.load { err in if err == nil { inter.show(from: self) } }

// Rewarded (implement adDidReward() in your delegate)
let rw = OneAdRewarded(placementId: "PLC_xxxxxxxxxxxx")
rw.delegate = self
rw.load { err in if err == nil { rw.show(from: self) } }

// Native
OneAdNative.load(placementId: "PLC_xxxxxxxxxxxx") { ad, _ in
    guard let ad else { return }
    titleLabel.text = ad.headline
    ad.register(view: cardView)
}

JavaScript tag

One async script and a placement div. Supports test mode.

Serving API

GET /api/public/ads/serve?p=PLC_… returns the creative plus signed impression and click URLs.

Test mode

Unapproved apps receive labelled test ads and are never billed.

Interstitial & rewarded

Full-screen formats in both mobile kits, with a skip timer and a reward callback.

Planned

Reporting API

Pull campaign and placement metrics programmatically.

Diagnostics

Check placement status and integration health.

Ready to grow with OneAdNetwork?

Launch campaigns or start monetizing your traffic.