如果id为空,不参与竞价
This commit is contained in:
parent
732fa61869
commit
93ca811144
|
|
@ -1,49 +0,0 @@
|
||||||
ext {
|
|
||||||
// AdMob配置
|
|
||||||
admob = [applicationId: "ca-app-pub-3940256099942544~3347511713", // 测试应用ID,请替换为实际的AdMob应用ID
|
|
||||||
adUnitIds : [banner : "ca-app-pub-3940256099942544/9214589741", // 横幅广告测试ID
|
|
||||||
interstitial: "ca-app-pub-3940256099942544/1033173712", // 插页广告测试ID
|
|
||||||
splash : "ca-app-pub-3940256099942544/9257395921", // 开屏广告测试ID
|
|
||||||
native : "ca-app-pub-3940256099942544/2247696110", // 原生广告测试ID
|
|
||||||
full_native : "ca-app-pub-3940256099942544/2247696110", // 全屏原生广告测试ID
|
|
||||||
rewarded : "ca-app-pub-3940256099942544/5224354917" // 激励广告测试ID
|
|
||||||
]]
|
|
||||||
|
|
||||||
// Pangle配置
|
|
||||||
pangle = [applicationId: "8025677", // Pangle测试应用ID
|
|
||||||
adUnitIds : [splash : "890000078", // 开屏广告测试ID(竖屏)
|
|
||||||
banner : "980099802", // 横幅广告测试ID(320x50)
|
|
||||||
interstitial: "980088188", // 插页广告测试ID(竖屏)
|
|
||||||
native : "980088216", // 原生广告测试ID
|
|
||||||
full_native : "980088216", // 全屏原生广告测试ID
|
|
||||||
rewarded : "980088192" // 激励视频测试ID(竖屏)
|
|
||||||
]]
|
|
||||||
|
|
||||||
// TopOn配置
|
|
||||||
topon = [applicationId: "a5aa1f9deda26d", // TopOn 应用 ID(需替换为实际值)
|
|
||||||
appKey : "4f7b9ac17decb9babec83aac078742c7", // TopOn 应用密钥(需替换为实际值)
|
|
||||||
adUnitIds : [interstitial: "b5baca53984692", // 插页广告位 ID(需替换为实际值)
|
|
||||||
rewarded : "b5b449fb3d89d7", // 激励广告位 ID
|
|
||||||
native : "b5aa1fa2cae775", // 原生广告位 ID(需替换为实际值)
|
|
||||||
splash : "b5f73fe0c5db29", // 开屏广告位 ID(需替换为实际值)
|
|
||||||
full_native : "b5aa1fa501d9f6", // 全屏原生广告位 ID(需替换为实际值)
|
|
||||||
banner : "b5baca4f74c3d8"] // 横幅广告位 ID(需替换为实际值)
|
|
||||||
]
|
|
||||||
|
|
||||||
// 应用版本配置
|
|
||||||
app = [applicationId: "com.viddin.videos.free",
|
|
||||||
compileSdk : 36,
|
|
||||||
minSdk : libs.versions.minSdk.get().toInteger(),
|
|
||||||
targetSdk : 36,
|
|
||||||
versionCode : 1,
|
|
||||||
versionName : "1.0.0"]
|
|
||||||
|
|
||||||
url = [privacyUrl: "https://www.google.com",
|
|
||||||
teamUrl : "https://www.google.com",]
|
|
||||||
|
|
||||||
// 统计归因配置
|
|
||||||
analytics = [adjustAppToken: "sa8ei0td10xs", // Adjust App Token
|
|
||||||
thinkingDataAppId: "097b3fd67217437b83529c35f81a567e", // 数数 SDK APP ID
|
|
||||||
thinkingDataServerUrl: "https://data.tapvicogames.com", // 数数上报域名
|
|
||||||
defaultUserChannel: "paid"] // 默认用户渠道,internal默认paid
|
|
||||||
}
|
|
||||||
|
|
@ -1,48 +0,0 @@
|
||||||
ext {
|
|
||||||
// AdMob配置 - Play 市场版本
|
|
||||||
admob = [applicationId: "ca-app-pub-1350364678590045~1984631821", // Play市场AdMob应用ID
|
|
||||||
adUnitIds : [banner : "ca-app-pub-1350364678590045/8582717815", // 横幅广告正式ID
|
|
||||||
interstitial: "ca-app-pub-1350364678590045/5193588407", // 插页广告正式ID
|
|
||||||
splash : "ca-app-pub-1350364678590045/5568653612", // 开屏广告正式ID
|
|
||||||
native : "ca-app-pub-1350364678590045/8003245260", // 原生广告正式ID
|
|
||||||
full_native : "ca-app-pub-1350364678590045/1219233112" // 原生广告正式ID
|
|
||||||
]]
|
|
||||||
|
|
||||||
// Pangle配置
|
|
||||||
pangle = [applicationId: "8750604", // Pangle测试应用ID
|
|
||||||
adUnitIds : [splash : "", // 开屏广告测试ID(竖屏)
|
|
||||||
banner : "", // 横幅广告测试ID(320x50)
|
|
||||||
interstitial: "982604080", // 插页广告测试ID(竖屏)
|
|
||||||
native : "", // 原生广告测试ID
|
|
||||||
full_native : "", // 全屏原生广告测试ID
|
|
||||||
rewarded : "" // 激励视频测试ID(竖屏)
|
|
||||||
]]
|
|
||||||
|
|
||||||
// TopOn配置
|
|
||||||
topon = [applicationId: "h1gq3c2vm973ma", // TopOn 应用 ID(需替换为实际值)
|
|
||||||
appKey : "a96bffecc1c32132c6984a3e97512b5f9", // TopOn 应用密钥(需替换为实际值)
|
|
||||||
adUnitIds : [interstitial: "n1gq3c2vobnfr5", // 插页广告位 ID(需替换为实际值)
|
|
||||||
rewarded : "", // 激励广告位 ID
|
|
||||||
native : "n1gq3c2vpbobmj", // 原生广告位 ID(需替换为实际值)
|
|
||||||
splash : "n1gq3c2vppegpc", // 开屏广告位 ID(需替换为实际值)
|
|
||||||
full_native : "n1gq3c2volk4ad", // 全屏原生广告位 ID(需替换为实际值)
|
|
||||||
banner : "n1gq3c2vq30fsn"] // 横幅广告位 ID(需替换为实际值)
|
|
||||||
]
|
|
||||||
|
|
||||||
// 应用版本配置 - Play 市场版本
|
|
||||||
app = [applicationId: "com.files.restore.recovery.tool.deleted.document.photo.video.audio.app.mobile.scan.utility",
|
|
||||||
compileSdk : 35,
|
|
||||||
minSdk : libs.versions.minSdk.get().toInteger(),
|
|
||||||
targetSdk : 35,
|
|
||||||
versionCode : 3,
|
|
||||||
versionName : "1.0.2"]
|
|
||||||
|
|
||||||
url = [privacyUrl: "https://alifmd.com/privacy.html",
|
|
||||||
teamUrl : "https://alifmd.com/privacy.html",]
|
|
||||||
|
|
||||||
// 统计归因配置
|
|
||||||
analytics = [adjustAppToken: "h6qax9dxv7cw", // Adjust App Token
|
|
||||||
thinkingDataAppId: "61b7ef0186b74b76b301b67184b7b48b", // 数数 SDK APP ID
|
|
||||||
thinkingDataServerUrl: "https://xray.alifmd.com",// 数数上报域名
|
|
||||||
defaultUserChannel: "natural"] //默认渠道
|
|
||||||
}
|
|
||||||
|
|
@ -90,7 +90,6 @@ class SplashActivity : AppViewsEmptyViewModelActivity<ViewBinding>(), OnTabStyle
|
||||||
try {
|
try {
|
||||||
async { performOtherInitializations() }
|
async { performOtherInitializations() }
|
||||||
val adMobInitDeferred = async { initializeAd() }
|
val adMobInitDeferred = async { initializeAd() }
|
||||||
|
|
||||||
val adMobResult = adMobInitDeferred.await()
|
val adMobResult = adMobInitDeferred.await()
|
||||||
|
|
||||||
// 处理AdMob初始化结果
|
// 处理AdMob初始化结果
|
||||||
|
|
@ -131,7 +130,7 @@ class SplashActivity : AppViewsEmptyViewModelActivity<ViewBinding>(), OnTabStyle
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
//selfBindView.progressBar.progress = i
|
//selfBindView.progressBar.progress = i
|
||||||
delay(100) // 改为100毫秒,总共10秒完成动画
|
delay(100) // 改为100毫秒
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,8 +57,8 @@ object AppOpenBiddingManager {
|
||||||
|
|
||||||
// 根据平台配置决定是否参与比价
|
// 根据平台配置决定是否参与比价
|
||||||
val admobEnabled = BiddingPlatformController.isAdmobEnabled(BiddingPlatformController.AdType.APP_OPEN)
|
val admobEnabled = BiddingPlatformController.isAdmobEnabled(BiddingPlatformController.AdType.APP_OPEN)
|
||||||
val pangleEnabled = BiddingPlatformController.isPangleEnabled(BiddingPlatformController.AdType.APP_OPEN)
|
val pangleEnabled = pangleAdUnitId.isNotEmpty() && BiddingPlatformController.isPangleEnabled(BiddingPlatformController.AdType.APP_OPEN)
|
||||||
val toponEnabled = BiddingPlatformController.isToponEnabled(BiddingPlatformController.AdType.APP_OPEN)
|
val toponEnabled = toponPlacementId.isNotEmpty() && BiddingPlatformController.isToponEnabled(BiddingPlatformController.AdType.APP_OPEN)
|
||||||
|
|
||||||
// 异步并行加载启用的广告
|
// 异步并行加载启用的广告
|
||||||
val (admobLoadResult, pangleLoadResult, toponLoadResult) = coroutineScope {
|
val (admobLoadResult, pangleLoadResult, toponLoadResult) = coroutineScope {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue