diff --git a/src/platforms/app-plus/service/api/ad/interactive-ad.js b/src/platforms/app-plus/service/api/ad/interactive-ad.js index 905e0899fee9e251eac2254feb024b3b46ac4153..2bca3919285b85c7bdc5458e3aa76fddade14c84 100644 --- a/src/platforms/app-plus/service/api/ad/interactive-ad.js +++ b/src/platforms/app-plus/service/api/ad/interactive-ad.js @@ -81,6 +81,7 @@ class InteractiveAd { this._adError = '' this._adpid = options.adpid this._provider = options.provider + this._userData = options.userData this._isLoaded = false this._isLoading = false this._loadPromiseResolve = null @@ -99,6 +100,9 @@ class InteractiveAd { provider: this._provider, success: (res) => { this._ad = res + if (this._userData) { + this.bindUserData(this._userData) + } this._loadAd() }, fail: (err) => { @@ -164,6 +168,12 @@ class InteractiveAd { } } + bindUserData (data) { + if (this._ad !== null) { + this._ad.bindUserData(data) + } + } + _loadAd () { if (this._ad !== null) { if (this._isLoading === true) {