| Min Android Studio Version: 3.2 Min Android SDK Version: 16 Compile SDK Version: 28 |
repositories {
mavenCentral()
}
dependencies {
implementation 'com.tappx.sdk.android:tappx-sdk:4.+'
}
repositories {
mavenCentral()
}
dependencies {
implementation ('com.tappx.sdk.android:tappx-sdk:4.+')
}
Download the latest Android SDK
Download latest Tappx SDKAdd the .aar to your Android Studio Project:
Locate or create the "libs" folder
Add the dependency to your app-level build.gradle file:
dependencies {
implementation files('libs/tappx-sdk.aar')
implementation files('libs/tappx-omsdk-android.aar')
}
dependencies {
implementation files('libs/tappx-sdk.aar')
implementation files('libs/tappx-omsdk-android.aar')
}
Geolocation is a valuable setting that lets us create a more targeted experience and helps get better ad performance, including higher revenues.
You will need to ask for this permission and consent from the user, and once you have it, you can set it up for our SDK if it is your choice. To do so, set the boolean value of the setCollectLocation function to true, as seen in this example:
Tappx.setCollectLocationEnabled(context,true);
Tappx.setCollectLocationEnabled(context,true)
In the application of the COPPA regulations, to indicate that the content of your app is intended for children under 13 years of age, you must use the following code:
Tappx.setCoppaCompliance(context, true);
Tappx.setCoppaCompliance(context, true)
The value declared (true or false) in the argument of the setCoppaCompliance function will determine whether advertising restrictions will be activated or not.
You must set the child-specific content tag before initiating the Ads call.