提交 bd9c3666 编写于 作者: d-u-a's avatar d-u-a

ad 增加 adClicked 事件

上级 09cd7ac3
const eventNames = [
'load',
'close',
'error'
'error',
'adClicked'
]
class FullScreenVideoAd {
......@@ -50,6 +51,9 @@ class FullScreenVideoAd {
this._loadPromiseReject = null
}
})
ad.onAdClicked((e) => {
this._dispatchEvent('adClicked', {})
})
}
load () {
......
......@@ -2,7 +2,8 @@ const eventNames = [
'load',
'close',
'verify',
'error'
'error',
'adClicked'
]
const ERROR_CODE_LIST = [-5001, -5002, -5003, -5004, -5005, -5006]
......@@ -62,6 +63,9 @@ class RewardedVideoAd {
this._loadPromiseReject = null
}
})
rewardAd.onAdClicked((e) => {
this._dispatchEvent('adClicked', {})
})
if (this._preload) {
this._loadAd()
......
......@@ -136,9 +136,8 @@ export default {
})
}
})
// 仅 Android 下载类广告
adView.setDownloadListener && adView.setDownloadListener((data) => {
this.$trigger('downloadchange', {}, data)
adView.setAdClickedListener((data) => {
this.$trigger('adclicked', {}, data)
})
this._request()
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册