Skip to content

Commit b02a25a

Browse files
authored
Merge pull request #113 from GameDistribution/seperate_ad_workflow
reset adRequestTimer in different location
2 parents 618ab5c + 86f29c9 commit b02a25a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/main.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class SDK {
214214
} else if (this.options.advertisementSettings.autoplay || isConsentDomain) {
215215
this._createSplash(gameData, isConsentDomain);
216216
}
217-
217+
218218
// Create a new VideoAd instance (singleton).
219219
this.adInstance = new VideoAd(
220220
// Deprecated parameters.
@@ -401,11 +401,6 @@ class SDK {
401401
arg => {
402402
this.msgrt.send('ad.impression');
403403

404-
// set timer for future interstitial requests.
405-
if (this.lastRequestedAdType === AdType.Interstitial) {
406-
this.adRequestTimer = new Date();
407-
}
408-
409404
// Lotame tracking.
410405
try {
411406
window['_cc13998'].bcpw('genp', 'ad video');
@@ -1048,6 +1043,7 @@ class SDK {
10481043
};
10491044

10501045
let succeded=(args)=>{
1046+
this.adRequestTimer = new Date();
10511047
this.eventBus.unsubscribeScope(scopeName);
10521048
resolve(args.message);
10531049
};

0 commit comments

Comments
 (0)