Skip to main content

V6.7.0-Support

  • Support frequency control of AD source dimension

ProGuard Configuration#

# TradPlus
-keep public class com.tradplus.** { *; }
-keep class com.tradplus.ads.** { *; }
# If Helium is aggregated
-keep class org.greenrobot.** { *; }
# If Youdao is aggregated
-libraryjars libs/youdaosdk_4.1.6.aar
-libraryjars libs/msa_mdid_1.0.13.aar
# If Baidu is aggregated
-ignorewarnings
-dontwarn com.baidu.mobads.sdk.api.**
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class com.baidu.mobads.sdk.api.** { *; }
-keep class com.baidu.mobads.** { *; }
-keep class com.baidu.mobad.** { *; }
-keep class com.bun.miitmdid.core.** {*;}
-ignorewarnings
-keep class com.style.widget.** {*;}
-keep class com.component.** {*;}
-keep class com.baidu.ad.magic.flute.** {*;}
-keep class com.baidu.mobstat.forbes.** {*;}

TradPlus Maven#

repositories {
google ()
mavenCentral () // TradPlus
jcenter ()
}
dependencies {
//TradPlus
implementation 'com.tradplusad:tradplus-sdk:6.7.0'
implementation 'com.tradplusad:tradplus-core:6.7.0'
implementation 'com.tradplusad:tradplus:6.7.02'
}

Outside the Chinese Mainland#

repositories {
google ()
mavenCentral ()
jcenter ()
//IronSource
maven { url 'https://android-sdk.is.com/' }
//Mopub
maven { url "https://s3.amazonaws.com/moat-sdk-builds" }
//Tapjoy
maven {
name "Tapjoy's maven repo"
url "https://sdk.tapjoy.com/"
}
//Fyber
maven { url "https://fyber.bintray.com/marketplace"}
//Maio
maven{ url "https://imobile-maio.github.io/maven" }
//Ogury
maven { url 'https://maven.ogury.co' }
flatDir {
dirs 'libs'
}
}
android {
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
dependencies {
//GDPR
// implementation 'com.google.android.ads.consent:consent-library:1.0.6'
//GDPR
implementation ('com.google.android.ads.consent:consent-library:1.0.6'){
exclude module: 'gson'
}
//noinspection GradleCompatible
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
//TradPlus
implementation 'com.tradplusad:tradplus-sdk:6.7.0'
implementation 'com.tradplusad:tradplus-core:6.7.0'
implementation 'com.tradplusad:tradplus:6.7.02'
//Admob
implementation 'com.google.android.gms:play-services-ads:17.2.1'
implementation 'com.tradplusad:tradplus-google:2.6.7.0'
//Facebook
implementation 'com.facebook.android:audience-network-sdk:6.4.0'
implementation 'com.tradplusad:tradplus-facebook:1.6.7.0'
//MoPub
implementation 'com.tradplusad:tradplus-mopub:3.6.7.0'
//For banners
implementation ('com.mopub:mopub-sdk-banner:5.8.0') {
transitive = true
}
//For interstitials
implementation ('com.mopub:mopub-sdk-interstitial:5.8.0') {
transitive = true
}
//For rewarded videos. This will automatically also include interstitials
implementation ('com.mopub:mopub-sdk-rewardedvideo:5.8.0') {
transitive = true
}
//For native static (images).
implementation ('com.mopub:mopub-sdk-native-static:5.8.0') {
transitive = true
}
//For native video. This will automatically also include native static
implementation ('com.mopub:mopub-sdk-native-video:5.8.0') {
transitive = true
}
//AppLovin
implementation 'com.applovin:applovin-sdk:10.1.2'
implementation 'com.tradplusad:tradplus-applovin:9.6.7.0'
//IronSource
implementation 'com.ironsource.sdk:mediationsdk:7.1.5.1'
implementation 'com.tradplusad:tradplus-ironsource:10.6.7.0'
//Tapjoy
implementation 'com.tapjoy:tapjoy-android-sdk:12.8.0@aar'
implementation 'com.tradplusad:tradplus-tapjoy:6.6.7.0'
//Adcolony
implementation 'com.adcolony:sdk:4.5.0'
implementation 'com.tradplusad:tradplus-adcolony:4.6.7.0'
//Vungle 6.5.3
implementation 'com.tradplusad:tradplus-vungle:7.6.7.0'
implementation 'com.google.android.gms:play-services-basement:16.0.0'
implementation 'com.google.android.gms:play-services-ads-identifier:16.0.0'
//Required Third-party Dependencies
implementation files('libs/converter-gson-2.5.0.jar')
implementation files('libs/gson-2.8.2.jar')
implementation files('libs/logging-interceptor-3.12.0.jar')
implementation files('libs/okhttp-3.12.0.jar')
implementation files('libs/okio-1.15.0.jar')
implementation files('libs/retrofit-2.5.0.jar')
//Pangle
implementation 'com.tradplusad:tradplus-pangle:19.6.7.0'
implementation(name: 'open_ad_sdk_V3.6.0.4', ext:'aar')
//UnityAds
implementation 'com.tradplusad:tradplus-unity:5.6.7.0'
implementation(name: 'unity-ads-3.7.1', ext: 'aar')
//fyber
implementation 'com.fyber.vamp:core-sdk:7.7.4'
implementation 'com.fyber.vamp:video-kit:7.7.4'
implementation 'com.fyber.vamp:mraid-kit:7.7.4'
implementation 'com.google.android.gms:play-services-ads-identifier:16.0.0'
implementation 'com.tradplusad:tradplus-fyber:24.6.7.0'
//Maio
implementation 'com.google.android.gms:play-services-ads:17.2.1'
implementation 'com.tradplusad:tradplus-maio:31.6.7.0'
implementation(name: 'maio_1.1.13', ext: 'aar')
//Ogury
implementation 'co.ogury:ogury-sdk:5.0.5'
implementation 'com.tradplusad:tradplus-ogury:34.6.7.0'
//Kidzo
implementation 'com.tradplusad:tradplus-kidoz:37.6.7.0'
implementation 'org.greenrobot:eventbus:3.2.0'
implementation 'com.kidoz.sdk:KidozSDK:8.9.0@aar'
implementation 'com.android.support:support-v4:28.0.0'
}
```
---
#### **The Chinese Mainland**
```groovy
repositories {
google ()
mavenCentral () // TradPlus
jcenter ()
//Joomob
maven {
url "http://nexus.deemob.com/repository/maven-public/"
}
flatDir {
dirs 'libs'
}
}
android {
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
dependencies {
//GDPR
// implementation 'com.google.android.ads.consent:consent-library:1.0.6'
//GDPR
implementation ('com.google.android.ads.consent:consent-library:1.0.6'){
exclude module: 'gson'
}
//noinspection GradleCompatible
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
//TradPlus
implementation 'com.tradplusad:tradplus-sdk:6.7.0'
implementation 'com.tradplusad:tradplus-core:6.7.0'
implementation 'com.tradplusad:tradplus:6.7.02'
//Admob
implementation 'com.google.android.gms:play-services-ads:17.2.1'
implementation 'com.tradplusad:tradplus-google:2.6.7.0'
//Toutiao
implementation 'com.tradplusad:tradplus-toutiao:17.6.7.0'
implementation(name: 'open_ad_sdk_cn_v3.6.1.0', ext: 'aar')
//Kuaishou
implementation 'com.tradplusad:tradplus-kwad:20.6.7.0'
implementation(name: 'kssdk-ad-3.3.9', ext: 'aar')
//Sigmob
implementation 'com.tradplusad:tradplus-sigmob:21.6.7.0'
implementation(name: 'windAd-2.21.0', ext: 'aar')
//Youdao
implementation 'com.tradplusad:tradplus-youdao:25.6.7.0'
implementation(name: 'youdaosdk_4.1.6', ext: 'aar')
implementation(name: 'msa_mdid_1.0.13', ext: 'aar')
//Tencent GDT
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.6.5.2@aar'
implementation 'com.tradplusad:tradplus-txadnet:16.6.7.0'
implementation(name: 'GDTSDK.unionNormal.4.351.1221', ext: 'aar')
//Joomob
implementation 'com.joomob.android.sdk:common:1.0.9.0'
implementation 'com.tradplusad:tradplus-joomob:35.6.7.0'
//Baidu
implementation 'com.tradplusad:tradplus-baidu:43.6.7.0'
implementation files ('libs/android-query-full.0.26.7.jar')
implementation(name:'Baidu_MobAds_SDK-release_v9.12',ext:'aar')
implementation(name:'oaid_sdk_1.0.22',ext:'aar')
}

Cross Promotion#

implementation 'com.tradplusad:tradplus-crosspromotion:27.6.7.0'

Need to add this,if you use Cross Promotion in China

implementation 'com.tradplusad:tradplus-china_plugin:6.7.0'