Android SDK
Last updated
Last updated
To start tracking using Offer18's Android SDK, you'll need to integrate the SDK into your application as a dependency.
For Gradle in Kotlin, Add dependencies in the build.gradle.kts
file
For Gradle in Groovy, Add dependencies in the build.gradle
file
You must replace {VERSION}
with latest stable version of Offer18's Android SDK
Find out latest stable version of Android SDK
Make sure your app has permissions given below
Import Offer18
Class from com.offer18.sdk
package
To initialize the Software Development Kit (SDK) insert the provided code snippet in your application code.
Replace {DOMAIN}
with your tracking domain.
Replace {ACCOUNT_ID}
with your Account ID.
Replace tid_key_in_referrer_url With your own parameter key for tid
Import Offer18
Class from com.offer18.sdk
package
To activate conversion tracking with Offer18's Android SDK, you'll need to insert a specific code snippet onto the order success page (Thank You Page) of your app.
Import Offer18
Class from com.offer18.sdk
package
If you prefer not to fetch Referrer details to obtain the click ID, you can utilize Offer18's Click ID key in the configuration.
To initialize the Software Development Kit (SDK) insert the provided code snippet in your application code.
The "{REFERRER_TID}" will automatically retrieve the click ID from the Referrer URL and include it in the trackConversion.
TID will be detected automatically based on key value provided during SDK initialization
Replacement will occur when micro {REFERRER_TID} is detected
trackConversion will be fail if
No manual tid provided,
No tid detected using referral url
tid detected but no macro provided
Macro provided but no tid or empty tid detected from referrer url