Skip to main content

V5.6.4.1-AndroidX

  • Support Smaato SDK V21.5.8

    • Support of the following ad formats:

      Banner (320 * 50)

      Interstitial

      RewardVideo

      Native


混淆配置#

# 聚合Helium 才需要配置
-keep class org.greenrobot.** { *; }
# 聚合Youdao 才需要配置
-libraryjars libs/youdaosdk_4.1.6.aar
-libraryjars libs/msa_mdid_1.0.13.aar

TradPlus Maven#

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

海外源配置#

repositories {
google ()
mavenCentral ()
jcenter ()
//AppNext
maven { url "http://dl.appnext.com/" }
//Chartboost/Helium ,必须在"https://s3.amazonaws.com/moat-sdk-builds"前引入
maven { url "https://chartboostmobile.bintray.com/Chartboost" }
//Adcolony
maven { url "https://adcolony.bintray.com/AdColony" }
//IronSource
maven { url "https://dl.bintray.com/ironsource-mobile/android-sdk" }
//Mopub
maven { url "https://s3.amazonaws.com/moat-sdk-builds" }
//Tapjoy
maven {
name "Tapjoy's maven repo"
url "https://tapjoy.bintray.com/maven"
}
//Fyber
maven { url "https://fyber.bintray.com/marketplace"}
//Maio
maven { url "https://imobile-maio.github.io/maven" }
//Ogury
maven { url 'https://maven.ogury.co'}
//Smaato Add the following repository setup to your project’s main build.gradle file:
maven { url "https://s3.amazonaws.com/smaato-sdk-releases/" }
flatDir {
dirs 'libs'
}
}
android {
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
dependencies {
//必须添加
//GDPR,项目没有gson,引入
// implementation 'com.google.android.ads.consent:consent-library:1.0.6'
//GDPR:预防 'gson' 冲突, 如果项目添加了gson,引入
implementation ('com.google.android.ads.consent:consent-library:1.0.6'){
exclude module: 'gson'
}
//补充插件的引入,否则会集成失败
//noinspection GradleCompatible
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
//TradPlus
implementation 'com.tradplusad:tradplus-sdk:5.6.4.1'
//Admob
implementation 'com.google.android.gms:play-services-ads:19.5.0'
implementation 'com.tradplusad:tradplus-googlex:2.5.6.4.1'
//Facebook
implementation 'com.facebook.android:audience-network-sdk:6.2.0'
implementation 'com.tradplusad:tradplus-facebook:1.5.6.4.1'
//MoPub
implementation 'com.tradplusad:tradplus-mopubx:3.5.6.4.1'
implementation('com.mopub:mopub-sdk:5.15.0') {
transitive = true
}
//AppLovin
implementation 'com.applovin:applovin-sdk:9.14.12'
implementation 'com.tradplusad:tradplus-applovin:9.5.6.4.1'
//IronSource
implementation 'com.ironsource.sdk:mediationsdk:7.0.3.1'
implementation 'com.tradplusad:tradplus-ironsource:10.5.6.4.1'
//Tapjoy
implementation 'com.tapjoy:tapjoy-android-sdk:12.7.1@aar'
implementation 'com.tradplusad:tradplus-tapjoy:6.5.6.4.1'
//Adcolony
implementation 'com.adcolony:sdk:4.2.4'
implementation 'com.tradplusad:tradplus-adcolony:4.5.6.4.1'
//Vungle 6.9.1
implementation 'com.tradplusad:tradplus-vunglex:7.5.6.4.1'
implementation 'com.vungle:publisher-sdk-android:6.9.1'
implementation 'com.google.android.gms:play-services-basement:17.3.0'
implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
//JSTag
implementation 'com.tradplusad:tradplus-mraid:26.5.6.4.1'
//Pangle
implementation 'com.bytedance.sdk:pangle-sdk:3.4.1.1'
implementation 'com.tradplusad:tradplus-pangle:19.5.6.4.1'
//UnityAds
implementation 'com.tradplusad:tradplus-unity:5.5.6.4.1'
//ChartBoost
implementation 'com.tradplusad:tradplus-chartboostx:15.5.6.4.1'
implementation 'com.google.android.gms:play-services-base:17.4.0'
implementation 'com.chartboost:chartboost-sdk:8.1.0'
//InMobi
implementation 'com.tradplusad:tradplus-inmobix:23.5.6.4.1'
implementation 'com.inmobi.monetization:inmobi-ads:9.1.1'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'androidx.browser:browser:1.0.0'
//Helium
implementation 'com.tradplusad:tradplus-helium:30.5.6.4.1'
implementation 'com.chartboost:helium:2.2.0'
implementation 'com.chartboost:helium-facebook:2.2.0'
implementation 'com.facebook.android:audience-network-sdk:6.2.0'
//Helium requirement
implementation 'org.greenrobot:eventbus:3.2.0'
implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
implementation 'com.google.android.gms:play-services-base:17.5.0'
//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:17.0.0'
implementation 'com.tradplusad:tradplus-fyber:24.5.6.4.1'
//Maio
//如果引入Admob源则不需要重复引入'com.google.android.gms:play-services-ads:19.5.0'
implementation 'com.google.android.gms:play-services-ads:19.5.0'
implementation 'com.tradplusad:tradplus-maio:31.5.6.4.1'
//Criteo
implementation 'com.criteo.publisher:criteo-publisher-sdk:4.1.0'
implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
implementation 'com.google.android.gms:play-services-base:17.0.0'
implementation 'com.tradplusad:tradplus-criteo:32.5.6.4.1'
//MyTarget
implementation 'com.my.target:mytarget-sdk:5.11.6'
implementation 'com.tradplusad:tradplus-mytarget:33.5.6.4.1'
//Ogury
implementation 'co.ogury:ogury-sdk:5.0.5'
implementation 'com.tradplusad:tradplus-ogury:34.5.6.4.1'
//AppNext
implementation 'com.tradplusad:tradplus-appnext:36.5.6.4.1'
implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
implementation 'androidx.annotation:annotation:1.1.0' // Mandatory
implementation 'androidx.work:work-runtime:2.4.0' // Mandatory
implementation 'com.github.bumptech.glide:glide:4.11.0' // Mandatory
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' // Mandatory
//For the Interstitial and Rewarded/Fullscreen video ad unit:
implementation 'com.appnext.sdk:ads:2.5.8.473'
//For the Banners ad unit:
implementation 'com.appnext.sdk:banners:2.5.8.473'
//For the New Native Ads ad unit:
implementation 'com.appnext.sdk:native-ads2:2.5.8.473'
//Kidzo
implementation 'com.tradplusad:tradplus-kidoz:37.5.6.4.1'
implementation 'org.greenrobot:eventbus:3.2.0'
implementation 'com.kidoz.sdk:KidozSDK:8.9.0@aar'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
//Smaato
implementation 'com.tradplusad:tradplus-smaato:38.5.6.4.1'
implementation 'com.smaato.android.sdk:smaato-sdk:21.5.8'
implementation 'com.smaato.android.sdk:smaato-sdk-banner:21.5.8'
implementation 'com.smaato.android.sdk:smaato-sdk-interstitial:21.5.8'
implementation 'com.smaato.android.sdk:smaato-sdk-rewarded-ads:21.5.8'
implementation 'com.smaato.android.sdk:smaato-sdk-native:21.5.8'
}

国内源配置#

repositories {
google ()
mavenCentral ()
jcenter ()
//聚量传媒
maven {
url "http://nexus.deemob.com/repository/maven-public/"
}
flatDir {
dirs 'libs'
}
}
android {
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
dependencies {
//必须添加
//GDPR,项目没有gson,引入
// implementation 'com.google.android.ads.consent:consent-library:1.0.6'
//GDPR:预防 'gson' 冲突, 如果项目添加了gson,引入
implementation ('com.google.android.ads.consent:consent-library:1.0.6'){
exclude module: 'gson'
}
//补充插件的引入,否则会集成失败
//noinspection GradleCompatible
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.0'
//TradPlus
implementation 'com.tradplusad:tradplus-sdk:5.6.4.1'
//Admob
implementation 'com.google.android.gms:play-services-ads:19.5.0'
implementation 'com.tradplusad:tradplus-googlex:2.5.6.4.1'
//JSTag
implementation 'com.tradplusad.tradplus-mraid:26.5.6.4.1'
//Toutiao
implementation 'com.tradplusad:tradplus-toutiao:17.5.6.4.1'
implementation(name: 'open_ad_sdk_cn_v3.5.0.3', ext: 'aar')
//Sigmob
implementation 'com.tradplusad:tradplus-sigmob:21.5.6.4.1'
//Youdao
implementation 'com.tradplusad:tradplus-youdao:25.5.6.4.1'
//腾讯
//原生广告接口更新,需要到TradPlus后台配置原生广告的广告位类型(配置自渲染或模版)
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.6.5.2@aar'
implementation 'com.tradplusad:tradplus-txadnet:16.5.6.4.1'
implementation(name: 'GDTSDK.unionNormal.4.330.1200', ext: 'aar')
//聚量传媒
implementation 'com.joomob.android.sdk:common:1.0.9.0'
implementation 'com.tradplusad:tradplus-joomob:35.5.6.4.1'
}

交叉推广#

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

使用交叉推广并且在国内发布,同时需要引入

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