|
|
@@ -127,13 +127,13 @@ export default class ATInterstitial extends zgSingleton {
|
|
|
onInterstitialAdLoadFail(placementId, errorInfo) {
|
|
|
this.interAdState = InterAdState.LoadFail;
|
|
|
|
|
|
- // if (placementId == GameM.commonData.fullInterPlaceId) {
|
|
|
- // EffectNode.instance.PlayTip('拉取全屏视频失败,请稍后再试')
|
|
|
- // GameM.commonData.updateADLog(10, placementId)
|
|
|
- // }
|
|
|
- // else if (placementId == GameM.commonData.interPlaceId) {
|
|
|
- // GameM.commonData.updateADLog(11, placementId)
|
|
|
- // }
|
|
|
+ if (this.interAdType == 1) {
|
|
|
+ mk.tip.pop('拉取全屏视频失败,请稍后再试');
|
|
|
+ gData.adData.updateADLog(10, placementId);
|
|
|
+ }
|
|
|
+ else if (this.interAdType == 0) {
|
|
|
+ gData.adData.updateADLog(11, placementId);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//广告展示成功
|
|
|
@@ -141,17 +141,15 @@ export default class ATInterstitial extends zgSingleton {
|
|
|
this.interAdState = InterAdState.Show;
|
|
|
|
|
|
// // console.log('99999999 onInterstitialAdShow')
|
|
|
- // let data = JSON.parse(callbackInfo)
|
|
|
- // let id = 2
|
|
|
- // if (placementId == GameM.commonData.interPlaceId) {
|
|
|
- // id = 2
|
|
|
- // }
|
|
|
- // else if (placementId == GameM.commonData.fullInterPlaceId) {
|
|
|
- // id = 9
|
|
|
- // }
|
|
|
- // GameM.commonData.updateADLog(id, placementId, data.adunit_format, data.network_type, data.network_placement_id,
|
|
|
- // data.network_firm_id, data.adsource_id, data.adsource_index, data.adsource_price,
|
|
|
- // data.adsource_isheaderbidding, data.publisher_revenue, data.precision, data.ecpm_level)
|
|
|
+ let data = JSON.parse(callbackInfo)
|
|
|
+ let id = 2
|
|
|
+ if (this.interAdType == 0) {
|
|
|
+ id = 2
|
|
|
+ }
|
|
|
+ else if (this.interAdType == 1) {
|
|
|
+ id = 9
|
|
|
+ }
|
|
|
+ gData.adData.updateADLog(id, placementId, data);
|
|
|
|
|
|
// if (GameM.commonData.ifUROI) {
|
|
|
// let eventID = EncryptUtil.randomString(32);
|
|
|
@@ -178,18 +176,10 @@ export default class ATInterstitial extends zgSingleton {
|
|
|
this.loadInter(this.interAdType)
|
|
|
|
|
|
// //给奖励
|
|
|
- // // console.log('AnyThinkInterstitialDemo ', this.interType)
|
|
|
- // if (placementId == GameM.commonData.fullInterPlaceId) {
|
|
|
- // GameM.commonData.showFull = false
|
|
|
- // GameM.commonData.todayFullInterTimes++
|
|
|
- // GameM.globalStorage.setStorage(STORAGE_KEY.todayFullInterTimes, GameM.commonData.todayFullInterTimes)
|
|
|
- // AdM.videoReward()
|
|
|
-
|
|
|
- // let data = JSON.parse(callbackInfo)
|
|
|
- // GameM.commonData.updateADLog(8, placementId, data.adunit_format, data.network_type, data.network_placement_id,
|
|
|
- // data.network_firm_id, data.adsource_id, data.adsource_index, data.adsource_price,
|
|
|
- // data.adsource_isheaderbidding, data.publisher_revenue, data.precision, data.ecpm_level)
|
|
|
- // }
|
|
|
+ if (this.interAdType == 1) {
|
|
|
+ let data = JSON.parse(callbackInfo);
|
|
|
+ gData.adData.updateADLog(8, placementId, data);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|