|
@@ -28,21 +28,13 @@ class AdMainActivity : AppCompatActivity() {
|
|
|
}
|
|
|
|
|
|
|
|
|
- private fun initAd(){
|
|
|
+ private fun initAd() {
|
|
|
AdManager.instance.init(applicationContext, true)
|
|
|
AdManager.instance.initAdvertisersSDK(applicationContext, AdmobInitialize(), CSJInitialize("5320990"), GroMoreInitialize("5320990"), AppLovinMaxInitialize(logging = true))
|
|
|
val list = mutableListOf<AdUnitBean>()
|
|
|
list.addAll(Datas.AdmobAdUnitList)
|
|
|
- for (adUnitBean in list) {
|
|
|
- Log.e("AdUnit", adUnitBean.adSlotName)
|
|
|
- }
|
|
|
AdUnitConfigManager.instance.setAdUnits(list)
|
|
|
- AdUnitConfigManager.instance.removeAdUnit(Datas.BANNER)
|
|
|
- Log.e("AdUnit", "删除后-----")
|
|
|
|
|
|
- for (adUnitBean in AdUnitConfigManager.instance.getAllAdUnits()) {
|
|
|
- Log.e("AdUnit", adUnitBean.adSlotName)
|
|
|
- }
|
|
|
// list.addAll(Datas.CSJAdUnitList)
|
|
|
// list.addAll(Datas.GroMoreAdUnitList)
|
|
|
// list.addAll(Datas.AppLovinMaxAdUnitList)
|