| 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
[Gradle-Grovvy]
dependencies {
implementation files('libs/tappx-sdk.aar')
implementation files('libs/tappx-omsdk-android.aar')
}
[Gradle-Kotlin]
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.
The Tappx SDK is now imported and you're ready to implement an ad. Tappx offers a number of different ad formats, so you can choose the one that best fits your app's user experience.
![]() | Banner ad units display rectangular ads that occupy a portion of an app's layout. They can refresh automatically after a set period of time. This means users view a new ad at regular intervals, even if they stay on the same screen in your app. They're also the simplest ad format to implement. |
![]() | Interstitial ad units show full-page ads in your app. Place them at natural breaks and transitions in your app's interface, such as after level completion in a gaming app. |
![]() | Rewarded ad units enable users to play games, take surveys, or watch videos to earn in-app rewards, such as coins, extra lives, or points. You can set different rewards for different ad units, and specify the reward values and items the user received. |