Skip to main content

V6.2.5-Support

  • 更新内容:
    • 优化开屏加载方法, load和show方法可分开调用;
    • 热启动下,开屏支持提前缓存

混淆配置#

# 聚合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 () // TradPlus
jcenter ()
}
dependencies {
//TradPlus
implementation 'com.tradplusad:tradplus-sdk:6.2.5'
implementation 'com.tradplusad:tradplus-core:6.2.5'
implementation 'com.tradplusad:tradplus:6.2.5'
}

海外源配置#

repositories {
google ()
mavenCentral ()
jcenter ()
//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'}
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'
}
//补充Support v7插件的引入,否则会集成失败
//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.2.5'
implementation 'com.tradplusad:tradplus-core:6.2.5'
implementation 'com.tradplusad:tradplus:6.2.5'
//Admob
implementation 'com.google.android.gms:play-services-ads:17.2.1'
implementation 'com.tradplusad:tradplus-google:2.6.2.5'
//Facebook
implementation 'com.facebook.android:audience-network-sdk:6.2.0'
implementation 'com.tradplusad:tradplus-facebook:1.6.2.5'
//MoPub
implementation 'com.tradplusad:tradplus-mopub:3.6.2.5'
//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:9.14.12'
implementation 'com.tradplusad:tradplus-applovin:9.6.2.5'
//IronSource
implementation 'com.ironsource.sdk:mediationsdk:7.0.3.1'
implementation 'com.tradplusad:tradplus-ironsource:10.6.2.5'
//Tapjoy
implementation 'com.tapjoy:tapjoy-android-sdk:12.7.1@aar'
implementation 'com.tradplusad:tradplus-tapjoy:6.6.2.5'
//Adcolony
implementation 'com.adcolony:sdk:4.2.4'
implementation 'com.tradplusad:tradplus-adcolony:4.6.2.5'
//Vungle 6.5.3
implementation 'com.tradplusad:tradplus-vungle:7.6.2.5'
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')
//JSTag
implementation 'com.tradplusad:tradplus-mraid:26.6.2.5'
//Pangle
implementation 'com.bytedance.sdk:pangle-sdk:3.4.1.1'
implementation 'com.tradplusad:tradplus-pangle:19.6.2.5'
//UnityAds
implementation 'com.tradplusad:tradplus-unity:5.6.2.5'
//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.2.5'
//Maio
//如果引入Admob源则不需要重复引入'com.google.android.gms:play-services-ads:17.2.1'
implementation 'com.google.android.gms:play-services-ads:17.2.1'
implementation 'com.tradplusad:tradplus-maio:31.6.2.5'
//Ogury
implementation 'co.ogury:ogury-sdk:5.0.5'
implementation 'com.tradplusad:tradplus-ogury:34.6.2.5'
//Kidzo
implementation 'com.tradplusad:tradplus-kidoz:37.6.2.5'
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'
}

国内源配置#

repositories {
google ()
mavenCentral () // TradPlus
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'
}
//补充Support v7插件的引入,否则会集成失败
//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.2.5'
implementation 'com.tradplusad:tradplus-core:6.2.5'
implementation 'com.tradplusad:tradplus:6.2.5'
//Admob
implementation 'com.google.android.gms:play-services-ads:17.2.1'
implementation 'com.tradplusad:tradplus-google:2.6.2.5'
//JSTag
implementation 'com.tradplusad:tradplus-mraid:26.6.2.5'
//Toutiao
implementation 'com.tradplusad:tradplus-toutiao:17.6.2.5'
implementation(name: 'open_ad_sdk_cn_v3.5.0.3', ext: 'aar')
//Sigmob
implementation 'com.tradplusad:tradplus-sigmob:21.6.2.5'
//Youdao
implementation 'com.tradplusad:tradplus-youdao:25.6.2.5'
//腾讯
//原生广告接口更新,需要到TradPlus后台配置原生广告的广告位类型(配置自渲染或模版)
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.6.5.2@aar'
implementation 'com.tradplusad:tradplus-txadnet:16.6.2.5'
implementation(name: 'GDTSDK.unionNormal.4.332.1202', ext: 'aar')
//聚量传媒
implementation 'com.joomob.android.sdk:common:1.0.9.0'
implementation 'com.tradplusad:tradplus-joomob:35.6.2.5'
}

交叉推广#

//V5.0.0 新增
implementation 'com.tradplusad:tradplus-crosspromotion:27.6.2.5'

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

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