Install
Add the SDK dependency.
Add the Android SDK to the app module and keep the version placeholder tied to your approved integration package.
build.gradle Copy
// App module dependency
dependencies {
implementation "com.adswedmedia:android-sdk:{version}"
}
Initialize
Set site and user context.
Initialize once, then set the user id before opening a rewarded surface.
MainActivity.kt Copy
// Android SDK initialization
Adswed.init(context, "{site_key}" )
Adswed.setUserId("{user_id}" )
Rewarded surface
Open the offerwall.
Offerwall.kt Copy
// Show rewarded offerwall
Adswed.showOfferwall(activity)
Playtime SDK
Start a Playtime session.
Playtime flows connect app engagement to milestone-style reward events and the same S2S postback contract.
Playtime.kt Copy
// Start Playtime surface
Adswed.playtime.start(activity)
Server-side events
Complete rewards with S2S.
Do final reward settlement on your server by verifying credit, reject and chargeback postbacks.
Read S2S Postback guide