@cardsjd/portal 0.1.15 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -254,7 +254,7 @@ export class NextGenAdMobPortal extends BasePortal {
254
254
  await AdMob.start();
255
255
 
256
256
  await AdMob.addListener('interstitial.show', (info) => {
257
- if (info.id === this._interstitialAd?.id) {
257
+ if ((info.id ?? info.adId) === this._interstitialAd?.id) {
258
258
  this.isInterstitialAdReady = false;
259
259
  if (this.onAdOpened) {
260
260
  this.onAdOpened({
@@ -265,7 +265,7 @@ export class NextGenAdMobPortal extends BasePortal {
265
265
  }
266
266
  });
267
267
  await AdMob.addListener('interstitial.dismiss', (info) => {
268
- if (info.id === this._interstitialAd?.id) {
268
+ if ((info.id ?? info.adId) === this._interstitialAd?.id) {
269
269
  this.isInterstitialAdReady = false;
270
270
  this._interstitialAd = null;
271
271
  if (this.onAdClosed) {
@@ -277,7 +277,7 @@ export class NextGenAdMobPortal extends BasePortal {
277
277
  }
278
278
  });
279
279
  await AdMob.addListener('interstitial.loadfail', (info) => {
280
- if (info.id === this._interstitialAd?.id) {
280
+ if ((info.id ?? info.adId) === this._interstitialAd?.id) {
281
281
  this.isInterstitialAdReady = false;
282
282
  this._interstitialAd = null;
283
283
  if (this.onAdError) {
@@ -286,7 +286,7 @@ export class NextGenAdMobPortal extends BasePortal {
286
286
  }
287
287
  });
288
288
  await AdMob.addListener('interstitial.showfail', (info) => {
289
- if (info.id === this._interstitialAd?.id) {
289
+ if ((info.id ?? info.adId) === this._interstitialAd?.id) {
290
290
  this.isInterstitialAdReady = false;
291
291
  this._interstitialAd = null;
292
292
  if (this.onAdError) {
@@ -295,7 +295,7 @@ export class NextGenAdMobPortal extends BasePortal {
295
295
  }
296
296
  });
297
297
  await AdMob.addListener('rewarded.dismiss', (info) => {
298
- if (info.id === this._rewardedAd?.id) {
298
+ if ((info.id ?? info.adId) === this._rewardedAd?.id) {
299
299
  this._isRewardedAdLoaded = false;
300
300
  this._rewardedAd = null;
301
301
  if (this.onAdClosed) {
@@ -311,7 +311,7 @@ export class NextGenAdMobPortal extends BasePortal {
311
311
  }
312
312
  });
313
313
  await AdMob.addListener('rewarded.loadfail', (info) => {
314
- if (info.id === this._rewardedAd?.id) {
314
+ if ((info.id ?? info.adId) === this._rewardedAd?.id) {
315
315
  this._isRewardedAdLoaded = false;
316
316
  this._rewardedAd = null;
317
317
  if (this.onAdError) {
@@ -320,7 +320,7 @@ export class NextGenAdMobPortal extends BasePortal {
320
320
  }
321
321
  });
322
322
  await AdMob.addListener('rewarded.showfail', (info) => {
323
- if (info.id === this._rewardedAd?.id) {
323
+ if ((info.id ?? info.adId) === this._rewardedAd?.id) {
324
324
  this._isRewardedAdLoaded = false;
325
325
  this._rewardedAd = null;
326
326
  if (this.onAdError) {
@@ -329,7 +329,7 @@ export class NextGenAdMobPortal extends BasePortal {
329
329
  }
330
330
  });
331
331
  await AdMob.addListener('rewarded.reward', (info) => {
332
- if (info.id === this._rewardedAd?.id) {
332
+ if ((info.id ?? info.adId) === this._rewardedAd?.id) {
333
333
  this._receivedReward = true;
334
334
  this._rewardInfo = info.reward;
335
335
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cardsjd/portal",
3
3
  "private": false,
4
- "version": "0.1.15",
4
+ "version": "0.1.16",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "publishConfig": {