Admob Android SDK Mediation (v2.0)

SDK Mediation (v2.0)


To add tappx as your new Ad Network in your Admob dashboard, you need to access to mediation section and click over “Create mediation group” button:

NOTE: If you have a Mediation Group, it is not necessary to create a new ones.

Then you need to select the desired ad format and platform:

Finish configuring the new group and then click on “Add ad unit”:

Select the ad units in desired ads to add them to the ad unit.new

Finish configuring the new group and then click on “Add ad unit”:

NOTE: The eCPM will be to use for give priority to the Ad Networks.

Now just configure Class Name and Parameter as follows:

  • Class Name:
    • For Banner: com.tappx.sdk.adapters.AdmobBannerAdapter
    • For Interstitial: com.tappx.sdk.adapters.AdmobInterstitialAdapter
  • Parameter: Network KEY (for example, for your Tappx key (format: Pub-xxxx-Android-xxxx)

SDK Mediation (v1.0)


To add tappx as your new Ad Network in your Admob dashboard, you need to access to monetise section and click over “New Ad Network” button:

Then you need to select “custom event”

And then you only need to complete request information (all fields are mandatory!)

  • Class Name:
    • For Banner: com.tappx.sdk.adapters.AdmobBannerAdapter
    • For Interstitial: com.tappx.sdk.adapters.AdmobInterstitialAdapter
  • Label: Only required to provide you a description…
  • Parameter: Network KEY (for example, for your Tappx key (format: Pub-xxxx-Android-xxxx)

Introduction

Our SDK has embedded all needed classes to be called from AdMob. To use our SDK from Admob, you need to attach our SDK to your project.To get access to better matching with other apps of our community you also need to modify your AndroidManifest.xml and add TrackInstall information (to track installs from Tappx).

Integrate the SDK with Maven


Add this line in your "build.gradle":

repositories {
    mavenCentral()
}

dependencies {
    implementation 'com.tappx.sdk.android:tappx-sdk:3.+'
    implementation 'com.tappx.sdk.android:omsdk:1.3.20'
}

Proguard


If you are using proguard in your app, you must add the following lines to your setup file:

-keepattributes *Annotation*
-keepclassmembers class com.google.**.R$* {
    public static ;
}
-keep public class com.google.ads.** {*;}
-keep public class com.google.android.gms.** {*;}
-keep public class com.tappx.** { *; }

Installation tracking

(cross promotion only)

In this document we will explain the most difficult variant of configuration to use install tracking. Why I do this? Because a lot of our developers already have other tracking services/networks (Analytics, Flurry, etc.), and if you don’t have any other tracking service, If you create this class/method you will prepare your app for the future.
We will have to edit our AndroidManifest.xml to call our class when one user installs our app from market. (This class is always called that one user installs our app, but Tappx's tracking only counts installations that proceeds from a click of our network banners).

<receiver
        android:name="com.tappx.sdk.android.TrackInstallReceiver"
        android:exported="true">
</receiver>

Important: The declared broadcast must have the android:exported="true" property in order to work properly.


Tappx © 2020