Skip to main content

V6.6.0.1-AndroidX

  • 1.聚合百度联盟SDK,支持原生,横幅,插屏,激励视频和开屏;
  • 2.聚合Vungle bidding(仅androidX支持),支持激励视频和插屏;
  • 3.新增类型:原生拼接开屏;
  • 4.回调内容增加三方广告源完整信息

混淆配置#

# TradPlus必须配置
-keep public class com.tradplus.** { *; }
-keep class com.tradplus.ads.** { *; }
# 聚合Helium 需要配置
-keep class org.greenrobot.** { *; }
# 聚合Youdao 需要配置
-libraryjars libs/youdaosdk_4.1.6.aar
-libraryjars libs/msa_mdid_1.0.13.aar
# 聚合Baidu 需要配置
-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.6.0.1'
implementation 'com.tradplusad:tradplus-core:6.6.0.1'
implementation 'com.tradplusad:tradplus:6.6.0.12'
}

海外源配置#

repositories {
google ()
mavenCentral () // TradPlus
jcenter ()
//AppNext
maven { url "http://dl.appnext.com/" }
//Chartboost,必须在"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://android-sdk.is.com/' }
//Mopub
maven { url "https://s3.amazonaws.com/moat-sdk-builds" }
//Mintegral 国外
maven { url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea"}
//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' }
//smaato
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:6.6.0.1'
implementation 'com.tradplusad:tradplus-core:6.6.0.1'
implementation 'com.tradplusad:tradplus:6.6.0.12'
//Admob
implementation 'com.google.android.gms:play-services-ads:20.0.0'
implementation 'com.tradplusad:tradplus-googlex:2.6.6.0.1'
//Facebook
implementation 'com.facebook.android:audience-network-sdk:6.4.0'
implementation 'com.tradplusad:tradplus-facebook:1.6.6.0.1'
//MoPub
implementation 'com.tradplusad:tradplus-mopubx:3.6.6.0.1'
implementation('com.mopub:mopub-sdk:5.15.0') {
transitive = true
}
//AppLovin
implementation 'com.applovin:applovin-sdk:10.1.2'
implementation 'com.tradplusad:tradplus-applovin:9.6.6.0.1'
//IronSource
implementation 'com.ironsource.sdk:mediationsdk:7.1.5.1'
implementation 'com.tradplusad:tradplus-ironsource:10.6.6.0.1'
//Tapjoy
implementation 'com.tapjoy:tapjoy-android-sdk:12.8.0@aar'
implementation 'com.tradplusad:tradplus-tapjoy:6.6.6.0.1'
//Adcolony
implementation 'com.adcolony:sdk:4.5.0'
implementation 'com.tradplusad:tradplus-adcolony:4.6.6.0.1'
//Vungle 6.9.1
implementation 'com.tradplusad:tradplus-vunglex:7.6.6.0.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'
//Pangle
implementation 'com.tradplusad:tradplus-pangle:19.6.6.0.1'
implementation(name: 'open_ad_sdk_V3.6.0.4', ext:'aar')
//UnityAds
implementation 'com.tradplusad:tradplus-unity:5.6.6.0.1'
implementation(name: 'unity-ads-3.7.1', ext: 'aar')
//ChartBoost
implementation 'com.tradplusad:tradplus-chartboostx:15.6.6.0.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.6.6.0.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'
//Mintegral
implementation 'com.tradplusad:tradplus-mintegralx_overseas:18.6.6.0.1'
implementation 'com.mbridge.msdk.oversea:videojs:15.5.11'
implementation 'com.mbridge.msdk.oversea:mbjscommon:15.5.11'
implementation 'com.mbridge.msdk.oversea:playercommon:15.5.11'
implementation 'com.mbridge.msdk.oversea:reward:15.5.11'
implementation 'com.mbridge.msdk.oversea:videocommon:15.5.11'
implementation 'com.mbridge.msdk.oversea:same:15.5.11'
implementation 'com.mbridge.msdk.oversea:interstitialvideo:15.5.11'
implementation 'com.mbridge.msdk.oversea:mbnative:15.5.11'
implementation 'com.mbridge.msdk.oversea:nativeex:15.5.11'
implementation 'com.mbridge.msdk.oversea:mbsplash:15.5.11'
implementation 'com.mbridge.msdk.oversea:interstitial:15.5.11'
implementation 'com.mbridge.msdk.oversea:mbbanner:15.5.11'
implementation 'com.mbridge.msdk.oversea:interactiveads:15.5.11'
implementation 'com.mbridge.msdk.oversea:mbnativeadvanced:15.5.11'
//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.6.6.0.1'
//Maio
implementation 'com.google.android.gms:play-services-ads:19.5.0'
implementation 'com.tradplusad:tradplus-maio:31.6.6.0.1'
implementation(name: 'maio_1.1.13', ext: 'aar')
//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.6.6.0.1'
//MyTarget
implementation 'com.my.target:mytarget-sdk:5.11.6'
implementation 'com.tradplusad:tradplus-mytarget:33.6.6.0.1'
//Ogury
implementation 'co.ogury:ogury-sdk:5.0.5'
implementation 'com.tradplusad:tradplus-ogury:34.6.6.0.1'
//AppNext
implementation 'com.tradplusad:tradplus-appnext:36.6.6.0.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.6.0.473'
//For the Banners ad unit:
implementation 'com.appnext.sdk:banners:2.6.0.473'
//For the New Native Ads ad unit:
implementation 'com.appnext.sdk:native-ads2:2.6.0.473'
//Kidzo
implementation 'com.tradplusad:tradplus-kidoz:37.6.6.0.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.6.6.0.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 () //TradPlus
jcenter ()
//Mintegral 国内
maven { url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_china" }
//聚量传媒
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:6.6.0.1'
implementation 'com.tradplusad:tradplus-core:6.6.0.1'
implementation 'com.tradplusad:tradplus:6.6.0.12'
//Admob
implementation 'com.google.android.gms:play-services-ads:20.0.0'
implementation 'com.tradplusad:tradplus-googlex:2.6.6.0.1'
//Toutiao
implementation 'com.tradplusad:tradplus-toutiao:17.6.6.0.1'
implementation(name: 'open_ad_sdk_cn_v3.6.1.0', ext: 'aar')
//Kuaishou
implementation 'com.tradplusad:tradplus-kwad:20.6.6.0.1'
implementation(name: 'kssdk-ad-3.3.9', ext: 'aar')
//Sigmob
implementation 'com.tradplusad:tradplus-sigmob:21.6.6.0.1'
implementation(name: 'windAd-2.21.0', ext: 'aar')
//Youdao
implementation 'com.tradplusad:tradplus-youdao:25.6.6.0.1'
implementation(name: 'youdaosdk_4.1.6', ext: 'aar')
implementation(name: 'msa_mdid_1.0.13', ext: 'aar')
//腾讯
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.6.5.2@aar'
implementation 'com.tradplusad:tradplus-txadnet:16.6.6.0.1'
implementation(name: 'GDTSDK.unionNormal.4.351.1221', ext: 'aar')
//Mintegral
implementation 'com.tradplusad:tradplus-mintegralx_cn:18.6.6.0.1'
implementation 'com.mbridge.msdk.china:videojs:15.5.12'
implementation 'com.mbridge.msdk.china:mbjscommon:15.5.12'
implementation 'com.mbridge.msdk.china:playercommon:15.5.12'
implementation 'com.mbridge.msdk.china:reward:15.5.12'
implementation 'com.mbridge.msdk.china:videocommon:15.5.12'
implementation 'com.mbridge.msdk.china:chinasame:15.5.12'
implementation 'com.mbridge.msdk.china:interstitialvideo:15.5.12'
implementation 'com.mbridge.msdk.china:mbnative:15.5.12'
implementation 'com.mbridge.msdk.china:nativeex:15.5.12'
implementation 'com.mbridge.msdk.china:mbsplash:15.5.12'
implementation 'com.mbridge.msdk.china:interstitial:15.5.12'
implementation 'com.mbridge.msdk.china:mbbanner:15.5.12'
implementation 'com.mbridge.msdk.china:interactiveads:15.5.12'
implementation 'com.mbridge.msdk.china:mbnativeadvanced:15.5.12'
//聚量传媒
implementation 'com.joomob.android.sdk:common:1.0.9.0'
implementation 'com.tradplusad:tradplus-joomob:35.6.6.0.1'
//百度
implementation 'com.tradplusad:tradplus-baidu:43.6.6.0.1'
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')
}

交叉推广#

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

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

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