@capacitor-community/admob 8.2.0-beta.pr484.shaa6be63853bbd → 8.2.1

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.
Files changed (62) hide show
  1. package/README.md +1 -0
  2. package/android/src/main/java/com/getcapacitor/community/admob/AdMob.java +73 -0
  3. package/android/src/main/java/com/getcapacitor/community/admob/nativeads/NativeAdExecutor.kt +378 -0
  4. package/android/src/main/java/com/getcapacitor/community/admob/nativeads/NativeAdFeedSessions.kt +35 -0
  5. package/android/src/main/java/com/getcapacitor/community/admob/nativeads/NativeAdPlacementValue.kt +44 -0
  6. package/android/src/main/java/com/getcapacitor/community/admob/nativeads/NativeAdPluginEvents.kt +11 -0
  7. package/android/src/main/java/com/getcapacitor/community/admob/nativeads/PluginNativeAdView.kt +187 -0
  8. package/dist/esm/index.d.ts +1 -0
  9. package/dist/esm/index.js +5 -1
  10. package/dist/esm/index.js.map +1 -1
  11. package/dist/esm/native-ads/index.d.ts +6 -0
  12. package/dist/esm/native-ads/index.js +4 -0
  13. package/dist/esm/native-ads/index.js.map +1 -0
  14. package/dist/esm/native-ads/native-ad-definitions.interface.d.ts +14 -0
  15. package/dist/esm/native-ads/native-ad-definitions.interface.js +2 -0
  16. package/dist/esm/native-ads/native-ad-definitions.interface.js.map +1 -0
  17. package/dist/esm/native-ads/native-ad-element.d.ts +9 -0
  18. package/dist/esm/native-ads/native-ad-element.js +53 -0
  19. package/dist/esm/native-ads/native-ad-element.js.map +1 -0
  20. package/dist/esm/native-ads/native-ad-event.interface.d.ts +5 -0
  21. package/dist/esm/native-ads/native-ad-event.interface.js +2 -0
  22. package/dist/esm/native-ads/native-ad-event.interface.js.map +1 -0
  23. package/dist/esm/native-ads/native-ad-feed.d.ts +72 -0
  24. package/dist/esm/native-ads/native-ad-feed.js +568 -0
  25. package/dist/esm/native-ads/native-ad-feed.js.map +1 -0
  26. package/dist/esm/native-ads/native-ad-geometry.d.ts +8 -0
  27. package/dist/esm/native-ads/native-ad-geometry.js +91 -0
  28. package/dist/esm/native-ads/native-ad-geometry.js.map +1 -0
  29. package/dist/esm/native-ads/native-ad-options.interface.d.ts +36 -0
  30. package/dist/esm/native-ads/native-ad-options.interface.js +2 -0
  31. package/dist/esm/native-ads/native-ad-options.interface.js.map +1 -0
  32. package/dist/esm/native-ads/native-ad-placement.interface.d.ts +26 -0
  33. package/dist/esm/native-ads/native-ad-placement.interface.js +2 -0
  34. package/dist/esm/native-ads/native-ad-placement.interface.js.map +1 -0
  35. package/dist/esm/native-ads/native-ad-plugin-events.enum.d.ts +9 -0
  36. package/dist/esm/native-ads/native-ad-plugin-events.enum.js +11 -0
  37. package/dist/esm/native-ads/native-ad-plugin-events.enum.js.map +1 -0
  38. package/dist/esm/native-ads/native-ad-style.interface.d.ts +30 -0
  39. package/dist/esm/native-ads/native-ad-style.interface.js +2 -0
  40. package/dist/esm/native-ads/native-ad-style.interface.js.map +1 -0
  41. package/dist/esm/native-ads/native-ad-template.enum.d.ts +11 -0
  42. package/dist/esm/native-ads/native-ad-template.enum.js +13 -0
  43. package/dist/esm/native-ads/native-ad-template.enum.js.map +1 -0
  44. package/dist/esm/web.d.ts +9 -1
  45. package/dist/esm/web.js +15 -0
  46. package/dist/esm/web.js.map +1 -1
  47. package/dist/plugin.cjs.js +751 -1
  48. package/dist/plugin.cjs.js.map +1 -1
  49. package/dist/plugin.js +751 -1
  50. package/dist/plugin.js.map +1 -1
  51. package/docs/native-ads.md +161 -0
  52. package/ios/Sources/AdMobPlugin/AdMobPlugin.swift +76 -44
  53. package/ios/Sources/AdMobPlugin/NativeAds/NativeAdExecutor.swift +354 -0
  54. package/ios/Sources/AdMobPlugin/NativeAds/NativeAdFeedSessions.swift +34 -0
  55. package/ios/Sources/AdMobPlugin/NativeAds/NativeAdPlacementValue.swift +50 -0
  56. package/ios/Sources/AdMobPlugin/NativeAds/NativeAdPluginEvents.swift +11 -0
  57. package/ios/Sources/AdMobPlugin/NativeAds/NativeAdScrollTracker.swift +66 -0
  58. package/ios/Sources/AdMobPlugin/NativeAds/NativeAdValues.swift +27 -0
  59. package/ios/Sources/AdMobPlugin/NativeAds/PluginNativeAdView.swift +187 -0
  60. package/ios/Tests/AdMobPluginTests/AdMobPluginTests.swift +37 -0
  61. package/ios/Tests/AdMobPluginTests/NativeAdScrollTrackerTests.swift +47 -0
  62. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/definitions.js","esm/banner/banner-ad-plugin-events.enum.js","esm/banner/banner-ad-position.enum.js","esm/banner/banner-ad-size.enum.js","esm/interstitial/interstitial-ad-plugin-events.enum.js","esm/reward-interstitial/reward-interstitial-ad-plugin-events.enum.js","esm/reward/reward-ad-plugin-events.enum.js","esm/consent/consent-status.enum.js","esm/consent/consent-debug-geography.enum.js","esm/shared/ad-mob-revenue-data.interface.js","esm/app-open/app-open-ad-plugin-events.enum.js","esm/index.js","esm/consent/privacy-options-requirement-status.enum.js","esm/web.js"],"sourcesContent":["export var MaxAdContentRating;\n(function (MaxAdContentRating) {\n /**\n * Content suitable for general audiences, including families.\n */\n MaxAdContentRating[\"General\"] = \"General\";\n /**\n * Content suitable for most audiences with parental guidance.\n */\n MaxAdContentRating[\"ParentalGuidance\"] = \"ParentalGuidance\";\n /**\n * Content suitable for teen and older audiences.\n */\n MaxAdContentRating[\"Teen\"] = \"Teen\";\n /**\n * Content suitable only for mature audiences.\n */\n MaxAdContentRating[\"MatureAudience\"] = \"MatureAudience\";\n})(MaxAdContentRating || (MaxAdContentRating = {}));\n//# sourceMappingURL=definitions.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var BannerAdPluginEvents;\n(function (BannerAdPluginEvents) {\n /**\n * Emits when the displayed banner size changes.\n */\n BannerAdPluginEvents[\"SizeChanged\"] = \"bannerAdSizeChanged\";\n /**\n * Emits when a banner ad has loaded.\n */\n BannerAdPluginEvents[\"Loaded\"] = \"bannerAdLoaded\";\n /**\n * Emits when a banner ad fails to load.\n */\n BannerAdPluginEvents[\"FailedToLoad\"] = \"bannerAdFailedToLoad\";\n /**\n * Emits when a banner opens an overlay after the user taps it.\n */\n BannerAdPluginEvents[\"Opened\"] = \"bannerAdOpened\";\n /**\n * Emits when the banner overlay is closed.\n */\n BannerAdPluginEvents[\"Closed\"] = \"bannerAdClosed\";\n /**\n * Emits when an impression is recorded for the banner ad.\n */\n BannerAdPluginEvents[\"AdImpression\"] = \"bannerAdImpression\";\n /**\n * Emits impression-level ad revenue data when a paid event is recorded.\n */\n BannerAdPluginEvents[\"AdPaid\"] = \"bannerAdPaid\";\n})(BannerAdPluginEvents || (BannerAdPluginEvents = {}));\n//# sourceMappingURL=banner-ad-plugin-events.enum.js.map","/**\n * @see https://developer.android.com/reference/android/widget/LinearLayout#attr_android:gravity\n */\nexport var BannerAdPosition;\n(function (BannerAdPosition) {\n /**\n * Positions the banner at the top center of the screen.\n */\n BannerAdPosition[\"TOP_CENTER\"] = \"TOP_CENTER\";\n /**\n * Positions the banner at the center of the screen.\n */\n BannerAdPosition[\"CENTER\"] = \"CENTER\";\n /**\n * Positions the banner at the bottom center of the screen.\n */\n BannerAdPosition[\"BOTTOM_CENTER\"] = \"BOTTOM_CENTER\";\n})(BannerAdPosition || (BannerAdPosition = {}));\n//# sourceMappingURL=banner-ad-position.enum.js.map","/**\n * For more information:\n * https://developers.google.com/admob/ios/banner#banner_sizes\n * https://developers.google.com/android/reference/com/google/android/gms/ads/AdSize\n *\n * */\nexport var BannerAdSize;\n(function (BannerAdSize) {\n /**\n * Mobile Marketing Association (MMA)\n * banner ad size (320x50 density-independent pixels).\n */\n BannerAdSize[\"BANNER\"] = \"BANNER\";\n /**\n * Interactive Advertising Bureau (IAB)\n * full banner ad size (468x60 density-independent pixels).\n */\n BannerAdSize[\"FULL_BANNER\"] = \"FULL_BANNER\";\n /**\n * Large banner ad size (320x100 density-independent pixels).\n */\n BannerAdSize[\"LARGE_BANNER\"] = \"LARGE_BANNER\";\n /**\n * Interactive Advertising Bureau (IAB)\n * medium rectangle ad size (300x250 density-independent pixels).\n */\n BannerAdSize[\"MEDIUM_RECTANGLE\"] = \"MEDIUM_RECTANGLE\";\n /**\n * Interactive Advertising Bureau (IAB)\n * leaderboard ad size (728x90 density-independent pixels).\n */\n BannerAdSize[\"LEADERBOARD\"] = \"LEADERBOARD\";\n /**\n * A dynamically sized banner that is full-width and auto-height.\n */\n BannerAdSize[\"ADAPTIVE_BANNER\"] = \"ADAPTIVE_BANNER\";\n /**\n * A legacy smart banner sized to the screen width.\n * Retained for compatibility; use `ADAPTIVE_BANNER` for new integrations.\n *\n * @deprecated Use `ADAPTIVE_BANNER` instead.\n */\n BannerAdSize[\"SMART_BANNER\"] = \"SMART_BANNER\";\n})(BannerAdSize || (BannerAdSize = {}));\n//# sourceMappingURL=banner-ad-size.enum.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var InterstitialAdPluginEvents;\n(function (InterstitialAdPluginEvents) {\n /**\n * Emits when an interstitial ad has loaded and is ready to show.\n */\n InterstitialAdPluginEvents[\"Loaded\"] = \"interstitialAdLoaded\";\n /**\n * Emits when an interstitial ad fails to load.\n */\n InterstitialAdPluginEvents[\"FailedToLoad\"] = \"interstitialAdFailedToLoad\";\n /**\n * Emits when an interstitial ad is shown.\n */\n InterstitialAdPluginEvents[\"Showed\"] = \"interstitialAdShowed\";\n /**\n * Emits when a loaded interstitial ad fails to show.\n */\n InterstitialAdPluginEvents[\"FailedToShow\"] = \"interstitialAdFailedToShow\";\n /**\n * Emits when an interstitial ad is dismissed.\n */\n InterstitialAdPluginEvents[\"Dismissed\"] = \"interstitialAdDismissed\";\n /**\n * Emits impression-level ad revenue data when a paid event is recorded.\n */\n InterstitialAdPluginEvents[\"AdImpression\"] = \"interstitialAdImpression\";\n})(InterstitialAdPluginEvents || (InterstitialAdPluginEvents = {}));\n//# sourceMappingURL=interstitial-ad-plugin-events.enum.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var RewardInterstitialAdPluginEvents;\n(function (RewardInterstitialAdPluginEvents) {\n /**\n * Emits when a rewarded interstitial ad has loaded and is ready to show.\n */\n RewardInterstitialAdPluginEvents[\"Loaded\"] = \"onRewardedInterstitialAdLoaded\";\n /**\n * Emits when a rewarded interstitial ad fails to load.\n */\n RewardInterstitialAdPluginEvents[\"FailedToLoad\"] = \"onRewardedInterstitialAdFailedToLoad\";\n /**\n * Emits when a rewarded interstitial ad is shown.\n */\n RewardInterstitialAdPluginEvents[\"Showed\"] = \"onRewardedInterstitialAdShowed\";\n /**\n * Emits when a loaded rewarded interstitial ad fails to show.\n */\n RewardInterstitialAdPluginEvents[\"FailedToShow\"] = \"onRewardedInterstitialAdFailedToShow\";\n /**\n * Emits when a rewarded interstitial ad is dismissed.\n *\n * This event does not indicate whether the user earned a reward. Listen for\n * `Rewarded` separately before granting the reward.\n */\n RewardInterstitialAdPluginEvents[\"Dismissed\"] = \"onRewardedInterstitialAdDismissed\";\n /**\n * Emits when the user earns the advertised reward.\n */\n RewardInterstitialAdPluginEvents[\"Rewarded\"] = \"onRewardedInterstitialAdReward\";\n /**\n * Emits impression-level ad revenue data when a paid event is recorded.\n */\n RewardInterstitialAdPluginEvents[\"AdImpression\"] = \"onRewardedInterstitialAdImpression\";\n})(RewardInterstitialAdPluginEvents || (RewardInterstitialAdPluginEvents = {}));\n//# sourceMappingURL=reward-interstitial-ad-plugin-events.enum.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var RewardAdPluginEvents;\n(function (RewardAdPluginEvents) {\n /**\n * Emits when the SDK records a click on a rewarded ad.\n */\n RewardAdPluginEvents[\"adClicked\"] = \"onRewardedVideoAdClicked\";\n /**\n * Emits when a rewarded ad has loaded and is ready to show.\n */\n RewardAdPluginEvents[\"Loaded\"] = \"onRewardedVideoAdLoaded\";\n /**\n * Emits when a rewarded ad fails to load.\n */\n RewardAdPluginEvents[\"FailedToLoad\"] = \"onRewardedVideoAdFailedToLoad\";\n /**\n * Emits when a rewarded ad is shown.\n */\n RewardAdPluginEvents[\"Showed\"] = \"onRewardedVideoAdShowed\";\n /**\n * Emits when a loaded rewarded ad fails to show.\n */\n RewardAdPluginEvents[\"FailedToShow\"] = \"onRewardedVideoAdFailedToShow\";\n /**\n * Emits when a rewarded ad is dismissed.\n *\n * This event does not indicate whether the user earned a reward. Listen for\n * `Rewarded` separately before granting the reward.\n */\n RewardAdPluginEvents[\"Dismissed\"] = \"onRewardedVideoAdDismissed\";\n /**\n * Emits when the user earns the advertised reward.\n */\n RewardAdPluginEvents[\"Rewarded\"] = \"onRewardedVideoAdReward\";\n /**\n * Emits impression-level ad revenue data when a paid event is recorded.\n */\n RewardAdPluginEvents[\"AdImpression\"] = \"onRewardedVideoAdImpression\";\n})(RewardAdPluginEvents || (RewardAdPluginEvents = {}));\n//# sourceMappingURL=reward-ad-plugin-events.enum.js.map","/**\n * For more information:\n * https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/ump/api#consentstatus\n *\n * */\nexport var AdmobConsentStatus;\n(function (AdmobConsentStatus) {\n /**\n * User consent not required.\n */\n AdmobConsentStatus[\"NOT_REQUIRED\"] = \"NOT_REQUIRED\";\n /**\n * User consent already obtained.\n */\n AdmobConsentStatus[\"OBTAINED\"] = \"OBTAINED\";\n /**\n * User consent required but not yet obtained.\n */\n AdmobConsentStatus[\"REQUIRED\"] = \"REQUIRED\";\n /**\n * Unknown consent status, AdsConsent.requestInfoUpdate needs to be called to update it.\n */\n AdmobConsentStatus[\"UNKNOWN\"] = \"UNKNOWN\";\n})(AdmobConsentStatus || (AdmobConsentStatus = {}));\n//# sourceMappingURL=consent-status.enum.js.map","/**\n * For more information:\n * https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/ump/api#debuggeography\n *\n * */\nexport var AdmobConsentDebugGeography;\n(function (AdmobConsentDebugGeography) {\n /**\n * Debug geography disabled.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"DISABLED\"] = 0] = \"DISABLED\";\n /**\n * Geography appears as in EEA for debug devices.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"EEA\"] = 1] = \"EEA\";\n /**\n * Geography appears as not in EEA for debug devices.\n * @deprecated\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"NOT_EEA\"] = 2] = \"NOT_EEA\";\n /**\n * Geography appears as in regulated US state for debug devices.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"US\"] = 3] = \"US\";\n /**\n * Geography appears as OTHER state for debug devices.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"OTHER\"] = 4] = \"OTHER\";\n})(AdmobConsentDebugGeography || (AdmobConsentDebugGeography = {}));\n//# sourceMappingURL=consent-debug-geography.enum.js.map","/**\n * The precision of an impression-level ad value.\n */\nexport var AdValuePrecision;\n(function (AdValuePrecision) {\n /**\n * The ad value precision is unknown.\n */\n AdValuePrecision[AdValuePrecision[\"Unknown\"] = 0] = \"Unknown\";\n /**\n * The ad value is estimated from aggregated data.\n */\n AdValuePrecision[AdValuePrecision[\"Estimated\"] = 1] = \"Estimated\";\n /**\n * The ad value was provided by the publisher.\n */\n AdValuePrecision[AdValuePrecision[\"PublisherProvided\"] = 2] = \"PublisherProvided\";\n /**\n * The ad value is the precise value paid for this ad.\n */\n AdValuePrecision[AdValuePrecision[\"Precise\"] = 3] = \"Precise\";\n})(AdValuePrecision || (AdValuePrecision = {}));\n//# sourceMappingURL=ad-mob-revenue-data.interface.js.map","export var AppOpenAdPluginEvents;\n(function (AppOpenAdPluginEvents) {\n /**\n * Emits when an App Open ad has loaded.\n */\n AppOpenAdPluginEvents[\"Loaded\"] = \"appOpenAdLoaded\";\n /**\n * Emits when an App Open ad fails to load.\n */\n AppOpenAdPluginEvents[\"FailedToLoad\"] = \"appOpenAdFailedToLoad\";\n /**\n * Emits when an App Open ad is shown.\n */\n AppOpenAdPluginEvents[\"Opened\"] = \"appOpenAdOpened\";\n /**\n * Emits when an App Open ad is dismissed.\n */\n AppOpenAdPluginEvents[\"Closed\"] = \"appOpenAdClosed\";\n /**\n * Emits when a loaded App Open ad fails to show.\n */\n AppOpenAdPluginEvents[\"FailedToShow\"] = \"appOpenAdFailedToShow\";\n /**\n * Emits impression-level ad revenue data when a paid event is recorded.\n */\n AppOpenAdPluginEvents[\"AdImpression\"] = \"appOpenAdImpression\";\n})(AppOpenAdPluginEvents || (AppOpenAdPluginEvents = {}));\n//# sourceMappingURL=app-open-ad-plugin-events.enum.js.map","import { registerPlugin } from '@capacitor/core';\nconst AdMob = registerPlugin('AdMob', {\n web: () => import('./web').then((m) => new m.AdMobWeb()),\n});\nexport * from './definitions';\nexport * from './banner/index';\nexport * from './interstitial/index';\nexport * from './reward-interstitial/index';\nexport * from './reward/index';\nexport * from './consent/index';\nexport * from './shared/index';\nexport * from './app-open/index';\nexport { AdMob };\n//# sourceMappingURL=index.js.map","/**\n * For more information:\n * https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/ump/api#privacyoptionsrequirementstatus\n *\n * */\nexport var PrivacyOptionsRequirementStatus;\n(function (PrivacyOptionsRequirementStatus) {\n /**\n * Privacy options entry point is not required.\n */\n PrivacyOptionsRequirementStatus[\"NOT_REQUIRED\"] = \"NOT_REQUIRED\";\n /**\n * Privacy options entry point is required.\n */\n PrivacyOptionsRequirementStatus[\"REQUIRED\"] = \"REQUIRED\";\n /**\n * Privacy options requirement status is unknown.\n */\n PrivacyOptionsRequirementStatus[\"UNKNOWN\"] = \"UNKNOWN\";\n})(PrivacyOptionsRequirementStatus || (PrivacyOptionsRequirementStatus = {}));\n//# sourceMappingURL=privacy-options-requirement-status.enum.js.map","import { WebPlugin } from '@capacitor/core';\nimport { AdmobConsentStatus } from './consent/consent-status.enum';\nimport { PrivacyOptionsRequirementStatus } from './consent/privacy-options-requirement-status.enum';\nexport class AdMobWeb extends WebPlugin {\n async initialize() {\n console.log('initialize');\n }\n async requestTrackingAuthorization() {\n console.log('requestTrackingAuthorization');\n }\n async trackingAuthorizationStatus() {\n return {\n status: 'authorized',\n };\n }\n async requestConsentInfo(options) {\n console.log('requestConsentInfo', options);\n return {\n status: AdmobConsentStatus.REQUIRED,\n isConsentFormAvailable: true,\n canRequestAds: true,\n privacyOptionsRequirementStatus: PrivacyOptionsRequirementStatus.REQUIRED,\n };\n }\n async showPrivacyOptionsForm() {\n console.log('showPrivacyOptionsForm');\n }\n async showConsentForm() {\n console.log('showConsentForm');\n return {\n status: AdmobConsentStatus.REQUIRED,\n canRequestAds: true,\n privacyOptionsRequirementStatus: PrivacyOptionsRequirementStatus.REQUIRED,\n };\n }\n async resetConsentInfo() {\n console.log('resetConsentInfo');\n }\n async setApplicationMuted(options) {\n console.log('setApplicationMuted', options);\n }\n async setApplicationVolume(options) {\n console.log('setApplicationVolume', options);\n }\n async showBanner(options) {\n console.log('showBanner', options);\n }\n async hideBanner() {\n console.log('hideBanner');\n }\n async resumeBanner() {\n console.log('resumeBanner');\n }\n async removeBanner() {\n console.log('removeBanner');\n }\n async prepareInterstitial(options) {\n console.log('prepareInterstitial', options);\n return {\n adUnitId: options.adId,\n };\n }\n async showInterstitial(options) {\n console.log('showInterstitial', options);\n }\n async prepareRewardVideoAd(options) {\n console.log('prepareRewardVideoAd', options);\n return {\n adUnitId: options.adId,\n };\n }\n async showRewardVideoAd(options) {\n console.log('showRewardVideoAd', options);\n return {\n type: '',\n amount: 0,\n };\n }\n async prepareRewardInterstitialAd(options) {\n console.log('prepareRewardInterstitialAd', options);\n return {\n adUnitId: options.adId,\n };\n }\n async showRewardInterstitialAd(options) {\n console.log('showRewardInterstitialAd', options);\n return {\n type: '',\n amount: 0,\n };\n }\n async loadAppOpen(options) {\n console.log('loadAppOpen', options);\n return {\n adUnitId: options.adId,\n };\n }\n async showAppOpen(options) {\n console.log('showAppOpen', options);\n }\n async isAppOpenLoaded() {\n return { value: false };\n }\n addListener(eventName, listenerFunc) {\n void listenerFunc;\n console.log('addListener', eventName);\n return Promise.resolve({ remove: () => Promise.resolve() });\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["MaxAdContentRating","BannerAdPluginEvents","BannerAdPosition","BannerAdSize","InterstitialAdPluginEvents","RewardInterstitialAdPluginEvents","RewardAdPluginEvents","AdmobConsentStatus","AdmobConsentDebugGeography","AdValuePrecision","AppOpenAdPluginEvents","registerPlugin","WebPlugin"],"mappings":";;;AAAWA;IACX,CAAC,UAAU,kBAAkB,EAAE;IAC/B;IACA;IACA;IACA,IAAI,kBAAkB,CAAC,SAAS,CAAC,GAAG,SAAS;IAC7C;IACA;IACA;IACA,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,GAAG,kBAAkB;IAC/D;IACA;IACA;IACA,IAAI,kBAAkB,CAAC,MAAM,CAAC,GAAG,MAAM;IACvC;IACA;IACA;IACA,IAAI,kBAAkB,CAAC,gBAAgB,CAAC,GAAG,gBAAgB;IAC3D,CAAC,EAAEA,0BAAkB,KAAKA,0BAAkB,GAAG,EAAE,CAAC,CAAC;;IClBnD;AACWC;IACX,CAAC,UAAU,oBAAoB,EAAE;IACjC;IACA;IACA;IACA,IAAI,oBAAoB,CAAC,aAAa,CAAC,GAAG,qBAAqB;IAC/D;IACA;IACA;IACA,IAAI,oBAAoB,CAAC,QAAQ,CAAC,GAAG,gBAAgB;IACrD;IACA;IACA;IACA,IAAI,oBAAoB,CAAC,cAAc,CAAC,GAAG,sBAAsB;IACjE;IACA;IACA;IACA,IAAI,oBAAoB,CAAC,QAAQ,CAAC,GAAG,gBAAgB;IACrD;IACA;IACA;IACA,IAAI,oBAAoB,CAAC,QAAQ,CAAC,GAAG,gBAAgB;IACrD;IACA;IACA;IACA,IAAI,oBAAoB,CAAC,cAAc,CAAC,GAAG,oBAAoB;IAC/D;IACA;IACA;IACA,IAAI,oBAAoB,CAAC,QAAQ,CAAC,GAAG,cAAc;IACnD,CAAC,EAAEA,4BAAoB,KAAKA,4BAAoB,GAAG,EAAE,CAAC,CAAC;;IC/BvD;IACA;IACA;AACWC;IACX,CAAC,UAAU,gBAAgB,EAAE;IAC7B;IACA;IACA;IACA,IAAI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AO,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;IACnE,IAAI;IACJ;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/native-ads/native-ad-element.js","esm/native-ads/native-ad-geometry.js","esm/native-ads/native-ad-template.enum.js","esm/native-ads/native-ad-feed.js","esm/definitions.js","esm/banner/banner-ad-plugin-events.enum.js","esm/banner/banner-ad-position.enum.js","esm/banner/banner-ad-size.enum.js","esm/interstitial/interstitial-ad-plugin-events.enum.js","esm/reward-interstitial/reward-interstitial-ad-plugin-events.enum.js","esm/reward/reward-ad-plugin-events.enum.js","esm/consent/consent-status.enum.js","esm/consent/consent-debug-geography.enum.js","esm/shared/ad-mob-revenue-data.interface.js","esm/app-open/app-open-ad-plugin-events.enum.js","esm/native-ads/native-ad-plugin-events.enum.js","esm/index.js","esm/consent/privacy-options-requirement-status.enum.js","esm/web.js"],"sourcesContent":["export const NATIVE_AD_ELEMENT_NAME = 'capacitor-admob-native';\nexport const defineNativeAdElement = (findFeed) => {\n const runtime = globalThis;\n runtime.__capacitorAdMobNativeFeedLookup = findFeed;\n if (typeof customElements === 'undefined' || customElements.get(NATIVE_AD_ELEMENT_NAME)) {\n return;\n }\n customElements.define(NATIVE_AD_ELEMENT_NAME, class extends HTMLElement {\n static get observedAttributes() {\n return ['feed-id', 'slot-key'];\n }\n connectedCallback() {\n this.connectToFeed();\n }\n disconnectedCallback() {\n this.disconnectFromFeed();\n }\n attributeChangedCallback() {\n if (!this.isConnected) {\n return;\n }\n this.disconnectFromFeed();\n this.connectToFeed();\n }\n connectToFeed() {\n var _a, _b, _c;\n const feedId = (_a = this.getAttribute('feed-id')) === null || _a === void 0 ? void 0 : _a.trim();\n const slotKey = (_b = this.getAttribute('slot-key')) === null || _b === void 0 ? void 0 : _b.trim();\n const feed = feedId ? (_c = runtime.__capacitorAdMobNativeFeedLookup) === null || _c === void 0 ? void 0 : _c.call(runtime, feedId) : undefined;\n if (!feed || !slotKey) {\n return;\n }\n try {\n feed.attach(slotKey, this);\n this.attachedFeed = feed;\n }\n catch (error) {\n this.dispatchEvent(new CustomEvent('nativeAdError', { bubbles: true, detail: error }));\n }\n }\n disconnectFromFeed() {\n var _a;\n (_a = this.attachedFeed) === null || _a === void 0 ? void 0 : _a.detach(this);\n this.attachedFeed = undefined;\n }\n });\n};\nexport const connectNativeAdElements = () => {\n document\n .querySelectorAll(NATIVE_AD_ELEMENT_NAME)\n .forEach((element) => { var _a, _b; return (_b = (_a = element).connectToFeed) === null || _b === void 0 ? void 0 : _b.call(_a); });\n};\n//# sourceMappingURL=native-ad-element.js.map","const intersectRects = (left, right) => {\n const x = Math.max(left.x, right.x);\n const y = Math.max(left.y, right.y);\n const maxX = Math.min(left.x + left.width, right.x + right.width);\n const maxY = Math.min(left.y + left.height, right.y + right.height);\n return {\n x,\n y,\n width: Math.max(0, maxX - x),\n height: Math.max(0, maxY - y),\n };\n};\nconst toNativeRect = (rect) => ({\n x: rect.left,\n y: rect.top,\n width: rect.width,\n height: rect.height,\n});\nconst clipsDescendants = (element) => {\n const style = window.getComputedStyle(element);\n return [style.overflow, style.overflowX, style.overflowY].some((value) => ['auto', 'hidden', 'scroll', 'clip'].includes(value));\n};\nexport function* nativeAdAncestors(element) {\n var _a, _b;\n let current = element;\n while (current) {\n const root = current.getRootNode();\n current =\n (_b = (_a = current.assignedSlot) !== null && _a !== void 0 ? _a : current.parentElement) !== null && _b !== void 0 ? _b : (root instanceof ShadowRoot ? root.host : null);\n if (current)\n yield current;\n }\n}\nexport const measureNativeAdSlot = (element, scrollElement) => {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n const style = window.getComputedStyle(element);\n const domRect = element.getBoundingClientRect();\n if (!element.isConnected ||\n style.display === 'none' ||\n style.visibility === 'hidden' ||\n Number.parseFloat(style.opacity || '1') === 0 ||\n domRect.width <= 0 ||\n domRect.height <= 0) {\n return undefined;\n }\n const rect = toNativeRect(domRect);\n let clipRect = scrollElement\n ? rect\n : {\n x: (_b = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.offsetLeft) !== null && _b !== void 0 ? _b : 0,\n y: (_d = (_c = window.visualViewport) === null || _c === void 0 ? void 0 : _c.offsetTop) !== null && _d !== void 0 ? _d : 0,\n width: (_f = (_e = window.visualViewport) === null || _e === void 0 ? void 0 : _e.width) !== null && _f !== void 0 ? _f : window.innerWidth,\n height: (_h = (_g = window.visualViewport) === null || _g === void 0 ? void 0 : _g.height) !== null && _h !== void 0 ? _h : window.innerHeight,\n };\n let foundScrollElement = !scrollElement;\n for (const ancestor of nativeAdAncestors(element)) {\n if (ancestor === scrollElement) {\n foundScrollElement = true;\n break;\n }\n if (clipsDescendants(ancestor)) {\n clipRect = intersectRects(clipRect, toNativeRect(ancestor.getBoundingClientRect()));\n }\n }\n clipRect = intersectRects(rect, clipRect);\n if (!foundScrollElement || clipRect.width <= 0 || clipRect.height <= 0)\n return undefined;\n if (scrollElement) {\n const origin = scrollElement.getBoundingClientRect();\n const translate = (value) => (Object.assign(Object.assign({}, value), { x: value.x - origin.left + scrollElement.scrollLeft, y: value.y - origin.top + scrollElement.scrollTop }));\n return { rect: translate(rect), clipRect: translate(clipRect) };\n }\n return { rect, clipRect };\n};\nexport const measureNativeAdScrollContainer = (element) => {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n const rect = toNativeRect(element.getBoundingClientRect());\n let clipRect = intersectRects(rect, {\n x: (_b = (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.offsetLeft) !== null && _b !== void 0 ? _b : 0,\n y: (_d = (_c = window.visualViewport) === null || _c === void 0 ? void 0 : _c.offsetTop) !== null && _d !== void 0 ? _d : 0,\n width: (_f = (_e = window.visualViewport) === null || _e === void 0 ? void 0 : _e.width) !== null && _f !== void 0 ? _f : window.innerWidth,\n height: (_h = (_g = window.visualViewport) === null || _g === void 0 ? void 0 : _g.height) !== null && _h !== void 0 ? _h : window.innerHeight,\n });\n for (const ancestor of nativeAdAncestors(element)) {\n if (clipsDescendants(ancestor)) {\n clipRect = intersectRects(clipRect, toNativeRect(ancestor.getBoundingClientRect()));\n }\n }\n return { rect, clipRect, contentWidth: element.scrollWidth, contentHeight: element.scrollHeight };\n};\n//# sourceMappingURL=native-ad-geometry.js.map","/**\n * Layouts rendered by the native Google Mobile Ads SDK.\n *\n * The dimensions of a native ad slot must remain stable while it is used by a\n * virtual scroller. `small` is intended for compact rows, while `medium`\n * includes a larger media area.\n */\nexport var NativeAdTemplate;\n(function (NativeAdTemplate) {\n NativeAdTemplate[\"Small\"] = \"small\";\n NativeAdTemplate[\"Medium\"] = \"medium\";\n})(NativeAdTemplate || (NativeAdTemplate = {}));\n//# sourceMappingURL=native-ad-template.enum.js.map","import { Capacitor } from '@capacitor/core';\nimport { connectNativeAdElements, defineNativeAdElement } from './native-ad-element';\nimport { measureNativeAdSlot, measureNativeAdScrollContainer, nativeAdAncestors } from './native-ad-geometry';\nimport { NativeAdTemplate } from './native-ad-template.enum';\nconst SCROLL_SETTLE_MS = 120;\nconst MAX_NATIVE_ADS = 3;\nconst MAX_ACTIVE_FEEDS = 2;\nconst MIN_SMALL_SLOT_WIDTH = 120;\nconst MIN_MEDIUM_SLOT_WIDTH = 144;\nconst MIN_MEDIUM_SLOT_HEIGHT = 300;\nconst MIN_SMALL_SLOT_HEIGHT = 120;\nconst TEMPLATE_ATTRIBUTE = 'data-capacitor-admob-template';\nconst applySlotDefaults = (element, template) => {\n const root = element.getRootNode();\n const container = root instanceof ShadowRoot ? root : element.ownerDocument.head;\n if (!container.querySelector('style[data-capacitor-admob-defaults]')) {\n const style = element.ownerDocument.createElement('style');\n style.setAttribute('data-capacitor-admob-defaults', '');\n // Prefer the first cascade layer; older WebViews use zero-specificity rules.\n const defaults = `\n :where([${TEMPLATE_ATTRIBUTE}]) { display: block; height: 320px; }\n :where([${TEMPLATE_ATTRIBUTE}=\"small\"]) { height: 120px; }\n `;\n style.textContent =\n 'CSSLayerBlockRule' in globalThis ? `@layer capacitor-admob-defaults { ${defaults} }` : defaults;\n container.prepend(style);\n }\n element.setAttribute(TEMPLATE_ATTRIBUTE, template);\n};\nlet bridge;\nlet sessionSequence = 0;\nconst feeds = new Map();\nconst createSessionId = () => { var _a, _b, _c; return (_c = (_b = (_a = globalThis.crypto) === null || _a === void 0 ? void 0 : _a.randomUUID) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : `${Date.now()}-${++sessionSequence}-${Math.random().toString(36).slice(2)}`; };\n/**\n * Experimental manager for native-ad integration research.\n *\n * A stable `slotKey`, rather than the element or array index, owns the native\n * ad lifecycle. Virtual-scroller compatibility has not yet been validated.\n *\n * @experimental Native overlay gesture routing is still being validated on devices.\n */\nexport class NativeAdFeed {\n constructor(options) {\n var _a;\n this.sessionId = createSessionId();\n this.slots = new Map();\n this.elementSlots = new Map();\n this.scrollRoots = new Set();\n this.destroyed = false;\n this.nativeStarted = false;\n this.paused = false;\n this.layoutInvalidated = false;\n this.lastPlacementWasDirect = false;\n this.placementAcknowledgementRequired = false;\n this.operationTask = Promise.resolve();\n this.updateDirty = false;\n this.placementSequence = 0;\n this.listenerHandles = new Set();\n this.handleViewportMotion = (event) => {\n if (this.destroyed) {\n return;\n }\n if (!(this.nativeScrollElement &&\n event instanceof Event &&\n ['scroll', 'touchmove', 'wheel'].includes(event.type))) {\n this.schedulePlacementUpdate();\n }\n this.scheduleEvaluation();\n };\n this.handleVisibilityChange = () => {\n if (this.destroyed) {\n return;\n }\n if (document.hidden) {\n this.layoutInvalidated = true;\n void this.requestPlacementUpdate();\n return;\n }\n this.scheduleEvaluation();\n };\n const id = options.feedId.trim();\n if (!id) {\n throw new Error('Native ad feed id must not be empty');\n }\n if (feeds.has(id)) {\n throw new Error(`Native ad feed id already exists: ${id}`);\n }\n if (feeds.size >= MAX_ACTIVE_FEEDS) {\n throw new Error(`At most ${MAX_ACTIVE_FEEDS} native ad feeds can be active`);\n }\n this.options = Object.assign(Object.assign({}, options), { feedId: id });\n this.nativeScrollElement = Capacitor.getPlatform() === 'ios' ? options.scrollElement : undefined;\n if (typeof IntersectionObserver !== 'undefined') {\n this.intersectionObserver = new IntersectionObserver((entries) => {\n for (const entry of entries) {\n const slotKey = this.elementSlots.get(entry.target);\n const state = slotKey ? this.slots.get(slotKey) : undefined;\n if (state) {\n state.intersecting = entry.isIntersecting;\n }\n }\n this.schedulePlacementUpdate();\n this.scheduleEvaluation();\n });\n }\n if (typeof ResizeObserver !== 'undefined') {\n this.resizeObserver = new ResizeObserver(this.handleViewportMotion);\n if (this.nativeScrollElement)\n this.resizeObserver.observe(this.nativeScrollElement);\n }\n document.addEventListener('scroll', this.handleViewportMotion, true);\n document.addEventListener('touchmove', this.handleViewportMotion, { capture: true, passive: true });\n document.addEventListener('wheel', this.handleViewportMotion, { capture: true, passive: true });\n window.addEventListener('resize', this.handleViewportMotion, { passive: true });\n (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.addEventListener('resize', this.handleViewportMotion, { passive: true });\n document.addEventListener('visibilitychange', this.handleVisibilityChange);\n document.addEventListener('load', this.handleViewportMotion, true);\n feeds.set(id, this);\n }\n static async create(options) {\n var _a;\n if (!bridge) {\n throw new Error('AdMob native ad bridge is not configured');\n }\n if (typeof document === 'undefined' || typeof window === 'undefined') {\n throw new Error('NativeAdFeed can only be created in a browser environment');\n }\n if (options.isTesting !== true && !((_a = options.adId) === null || _a === void 0 ? void 0 : _a.trim())) {\n throw new Error('adId is required unless isTesting is true');\n }\n const feed = new NativeAdFeed(options);\n try {\n await bridge.startNativeAdFeed({ feedId: feed.feedId, sessionId: feed.sessionId });\n feed.nativeStarted = true;\n defineNativeAdElement((feedId) => feeds.get(feedId));\n connectNativeAdElements();\n return feed;\n }\n catch (error) {\n await feed.destroy();\n throw error;\n }\n }\n get feedId() {\n return this.options.feedId;\n }\n async addListener(eventName, listener) {\n this.assertActive();\n if (!bridge) {\n throw new Error('AdMob native ad bridge is not configured');\n }\n const nativeHandle = await bridge.addListener(eventName, (event) => {\n if (event.feedId === this.options.feedId && event.sessionId === this.sessionId) {\n const filteredListener = listener;\n filteredListener(event);\n }\n });\n if (this.destroyed) {\n await nativeHandle.remove();\n this.assertActive();\n }\n let removed = false;\n const handle = {\n remove: async () => {\n if (removed) {\n return;\n }\n removed = true;\n this.listenerHandles.delete(handle);\n await nativeHandle.remove();\n },\n };\n this.listenerHandles.add(handle);\n return handle;\n }\n attach(slotKey, element) {\n var _a, _b, _c;\n this.assertActive();\n const normalizedKey = slotKey.trim();\n if (!normalizedKey) {\n throw new Error('Native ad slotKey must not be empty');\n }\n const previousKey = this.elementSlots.get(element);\n if (previousKey === normalizedKey) {\n return;\n }\n if (previousKey && previousKey !== normalizedKey) {\n this.detach(element);\n }\n const existing = this.slots.get(normalizedKey);\n if ((existing === null || existing === void 0 ? void 0 : existing.element) && existing.element !== element) {\n throw new Error(`Native ad slotKey is already attached: ${normalizedKey}`);\n }\n const state = existing !== null && existing !== void 0 ? existing : {\n slotKey: normalizedKey,\n generation: 0,\n intersecting: !this.intersectionObserver,\n status: 'idle',\n lastUsed: Date.now(),\n loadVersion: 0,\n };\n applySlotDefaults(element, (_a = this.options.template) !== null && _a !== void 0 ? _a : NativeAdTemplate.Medium);\n state.element = element;\n state.generation += 1;\n state.lastUsed = Date.now();\n this.slots.set(normalizedKey, state);\n this.elementSlots.set(element, normalizedKey);\n this.updateScrollRoots();\n (_b = this.intersectionObserver) === null || _b === void 0 ? void 0 : _b.observe(element);\n (_c = this.resizeObserver) === null || _c === void 0 ? void 0 : _c.observe(element);\n this.scheduleEvaluation();\n }\n detach(element) {\n var _a, _b;\n const slotKey = this.elementSlots.get(element);\n if (!slotKey) {\n return;\n }\n const state = this.slots.get(slotKey);\n if ((state === null || state === void 0 ? void 0 : state.element) === element) {\n state.element = undefined;\n state.intersecting = false;\n state.generation += 1;\n state.lastUsed = Date.now();\n }\n (_a = this.intersectionObserver) === null || _a === void 0 ? void 0 : _a.unobserve(element);\n (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.unobserve(element);\n this.elementSlots.delete(element);\n this.updateScrollRoots();\n void this.requestPlacementUpdate();\n this.scheduleEvaluation();\n }\n async reload(slotKey) {\n this.assertActive();\n const normalizedKey = slotKey.trim();\n const state = this.slots.get(normalizedKey);\n if (!state) {\n throw new Error(`Native ad slotKey is not registered: ${normalizedKey}`);\n }\n await this.runOperation(async () => {\n await this.removeStateAd(state);\n const protectedStates = new Set(this.getVisibleStates());\n protectedStates.add(state);\n await this.evictUnusedAds(protectedStates);\n if ([...this.slots.values()].filter((slot) => this.occupiesNativeAd(slot)).length >= MAX_NATIVE_ADS) {\n throw new Error('Native ad capacity is currently in use by visible slots');\n }\n await this.loadState(state);\n });\n }\n /** Immediately hides this feed's overlays until {@link resume} is called. */\n async pause() {\n this.assertActive();\n this.paused = true;\n this.layoutInvalidated = true;\n if (!(await this.requestPlacementUpdate())) {\n throw new Error('Failed to hide native ad placements');\n }\n }\n /** Re-evaluates slots and restores eligible overlays after the viewport settles. */\n resume() {\n this.assertActive();\n this.paused = false;\n this.scheduleEvaluation();\n }\n /** Hides stale overlays and remeasures after an application-driven layout change. */\n async invalidateLayout() {\n this.assertActive();\n this.layoutInvalidated = true;\n this.scheduleEvaluation();\n if (!(await this.requestPlacementUpdate())) {\n throw new Error('Failed to hide native ad placements');\n }\n }\n async destroy() {\n var _a, _b, _c;\n if (!this.destroyed) {\n this.destroyed = true;\n feeds.delete(this.options.feedId);\n document.removeEventListener('scroll', this.handleViewportMotion, true);\n for (const root of this.scrollRoots) {\n root.removeEventListener('scroll', this.handleViewportMotion, true);\n }\n this.scrollRoots.clear();\n document.removeEventListener('touchmove', this.handleViewportMotion, true);\n document.removeEventListener('wheel', this.handleViewportMotion, true);\n window.removeEventListener('resize', this.handleViewportMotion);\n (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.removeEventListener('resize', this.handleViewportMotion);\n document.removeEventListener('visibilitychange', this.handleVisibilityChange);\n document.removeEventListener('load', this.handleViewportMotion, true);\n if (this.settleTimer) {\n clearTimeout(this.settleTimer);\n }\n if (this.placementFrame !== undefined) {\n cancelAnimationFrame(this.placementFrame);\n this.placementFrame = undefined;\n }\n (_b = this.intersectionObserver) === null || _b === void 0 ? void 0 : _b.disconnect();\n (_c = this.resizeObserver) === null || _c === void 0 ? void 0 : _c.disconnect();\n }\n if (this.destroyTask) {\n return this.destroyTask;\n }\n this.destroyTask = this.destroyResources();\n try {\n await this.destroyTask;\n }\n finally {\n this.destroyTask = undefined;\n }\n }\n schedulePlacementUpdate() {\n if (this.destroyed || this.placementFrame !== undefined) {\n return;\n }\n this.placementFrame = requestAnimationFrame(() => {\n this.placementFrame = undefined;\n void this.requestPlacementUpdate(true);\n });\n }\n updateScrollRoots() {\n const roots = new Set();\n for (const element of this.elementSlots.keys()) {\n for (const ancestor of [element, ...nativeAdAncestors(element)]) {\n const root = ancestor.getRootNode();\n if (root instanceof ShadowRoot)\n roots.add(root);\n }\n }\n for (const root of this.scrollRoots) {\n if (!roots.has(root)) {\n root.removeEventListener('scroll', this.handleViewportMotion, true);\n this.scrollRoots.delete(root);\n }\n }\n for (const root of roots) {\n if (!this.scrollRoots.has(root)) {\n // Element scroll events do not cross a shadow boundary.\n root.addEventListener('scroll', this.handleViewportMotion, true);\n this.scrollRoots.add(root);\n }\n }\n }\n scheduleEvaluation() {\n if (this.destroyed) {\n return;\n }\n if (this.settleTimer) {\n clearTimeout(this.settleTimer);\n }\n this.settleTimer = setTimeout(() => {\n this.layoutInvalidated = false;\n void this.runOperation(() => this.evaluate());\n }, SCROLL_SETTLE_MS);\n }\n async evaluate() {\n if (this.destroyed || this.paused || document.hidden) {\n return;\n }\n const visibleStates = this.getVisibleStates();\n for (const state of visibleStates) {\n state.lastUsed = Date.now();\n }\n await this.evictUnusedAds(new Set(visibleStates));\n const occupied = [...this.slots.values()].filter((state) => this.occupiesNativeAd(state)).length;\n const loadable = visibleStates\n .filter((state) => state.status === 'idle')\n .slice(0, Math.max(0, MAX_NATIVE_ADS - occupied));\n await Promise.allSettled(loadable.map((state) => this.loadState(state)));\n void this.requestPlacementUpdate();\n }\n async loadState(state) {\n var _a;\n if (state.status !== 'idle' || !bridge) {\n return;\n }\n state.status = 'loading';\n const loadVersion = ++state.loadVersion;\n try {\n await bridge.loadNativeAd({\n feedId: this.options.feedId,\n sessionId: this.sessionId,\n slotKey: state.slotKey,\n template: (_a = this.options.template) !== null && _a !== void 0 ? _a : NativeAdTemplate.Medium,\n style: this.options.style,\n adId: this.options.adId,\n isTesting: this.options.isTesting,\n npa: this.options.npa,\n });\n if (state.loadVersion === loadVersion) {\n state.status = 'loaded';\n state.lastUsed = Date.now();\n }\n }\n catch (error) {\n if (state.loadVersion === loadVersion) {\n state.status = 'failed';\n }\n throw error;\n }\n }\n async evictUnusedAds(visibleStates) {\n const occupied = [...this.slots.values()].filter((state) => this.occupiesNativeAd(state));\n const requestedLoads = [...visibleStates].filter((state) => state.status === 'idle').length;\n const evictionCount = Math.max(0, occupied.length + Math.min(requestedLoads, MAX_NATIVE_ADS) - MAX_NATIVE_ADS);\n const evicted = occupied\n .filter((state) => !visibleStates.has(state))\n .sort((left, right) => left.lastUsed - right.lastUsed)\n .slice(0, evictionCount);\n await Promise.allSettled(evicted.map((state) => this.removeStateAd(state)));\n const detached = [...this.slots.values()]\n .filter((state) => !state.element && !this.occupiesNativeAd(state))\n .sort((left, right) => right.lastUsed - left.lastUsed);\n for (const state of detached.slice(MAX_NATIVE_ADS)) {\n this.slots.delete(state.slotKey);\n }\n }\n occupiesNativeAd(state) {\n return ['loading', 'loaded', 'removing', 'removeFailed'].includes(state.status);\n }\n getVisibleStates() {\n return [...this.slots.values()].filter((state) => {\n const measured = state.element && state.intersecting ? measureNativeAdSlot(state.element) : undefined;\n return Boolean(measured && this.isSupportedSize(measured));\n });\n }\n isSupportedSize(measured) {\n var _a, _b;\n const minimumHeight = ((_a = this.options.template) !== null && _a !== void 0 ? _a : NativeAdTemplate.Medium) === NativeAdTemplate.Small\n ? MIN_SMALL_SLOT_HEIGHT\n : MIN_MEDIUM_SLOT_HEIGHT;\n const minimumWidth = ((_b = this.options.template) !== null && _b !== void 0 ? _b : NativeAdTemplate.Medium) === NativeAdTemplate.Small\n ? MIN_SMALL_SLOT_WIDTH\n : MIN_MEDIUM_SLOT_WIDTH;\n return measured.rect.width >= minimumWidth && measured.rect.height >= minimumHeight;\n }\n async removeStateAd(state) {\n if (state.status === 'removing') {\n return;\n }\n if (!bridge || state.status === 'idle' || state.status === 'failed') {\n state.status = 'idle';\n return;\n }\n state.status = 'removing';\n const removeVersion = ++state.loadVersion;\n await this.requestPlacementUpdate();\n try {\n await bridge.removeNativeAd({\n feedId: this.options.feedId,\n sessionId: this.sessionId,\n slotKey: state.slotKey,\n });\n if (state.loadVersion === removeVersion) {\n state.status = 'idle';\n }\n }\n catch (error) {\n if (state.loadVersion === removeVersion) {\n state.status = 'removeFailed';\n }\n throw error;\n }\n }\n runOperation(operation) {\n const result = this.operationTask.then(operation);\n this.operationTask = result.catch(() => undefined);\n return result;\n }\n async destroyResources() {\n await Promise.all([\n ...[...this.listenerHandles].map((handle) => handle.remove()),\n ...(this.nativeStarted && bridge\n ? [bridge.destroyNativeAdFeed({ feedId: this.options.feedId, sessionId: this.sessionId })]\n : []),\n ]);\n this.nativeStarted = false;\n this.listenerHandles.clear();\n this.slots.clear();\n this.elementSlots.clear();\n }\n requestPlacementUpdate(allowDirect = false) {\n this.updateDirty = true;\n this.placementAcknowledgementRequired || (this.placementAcknowledgementRequired = !allowDirect);\n if (!this.placementUpdateTask) {\n this.placementUpdateTask = Promise.resolve().then(() => this.flushPlacementUpdates());\n }\n return this.placementUpdateTask;\n }\n async flushPlacementUpdates() {\n if (!bridge || this.destroyed) {\n return true;\n }\n try {\n while (this.updateDirty && !this.destroyed) {\n this.updateDirty = false;\n const allowDirect = !this.placementAcknowledgementRequired;\n this.placementAcknowledgementRequired = false;\n const placements = [...this.slots.values()]\n .filter((state) => state.status === 'loaded')\n .map((state) => {\n const measured = state.element ? measureNativeAdSlot(state.element, this.nativeScrollElement) : undefined;\n const visible = Boolean(!this.paused && !this.layoutInvalidated && measured && this.isSupportedSize(measured) && !document.hidden);\n return {\n feedId: this.options.feedId,\n slotKey: state.slotKey,\n generation: state.generation,\n visible,\n rect: measured === null || measured === void 0 ? void 0 : measured.rect,\n clipRect: measured === null || measured === void 0 ? void 0 : measured.clipRect,\n };\n });\n const scrollContainer = this.nativeScrollElement\n ? measureNativeAdScrollContainer(this.nativeScrollElement)\n : undefined;\n const serializedPlacements = JSON.stringify({ placements, scrollContainer });\n if (serializedPlacements === this.lastPlacements && (allowDirect || !this.lastPlacementWasDirect)) {\n continue;\n }\n try {\n const batch = Object.assign({ feedId: this.options.feedId, sessionId: this.sessionId, sequence: ++this.placementSequence, placements }, (scrollContainer ? { scrollContainer } : {}));\n const channel = Capacitor.getPlatform() === 'android'\n ? window\n .capacitorAdMobPlacements\n : undefined;\n let sentDirectly = false;\n if (allowDirect && channel) {\n try {\n channel.postMessage(JSON.stringify(batch));\n sentDirectly = true;\n }\n catch (_a) {\n // Keep the acknowledged bridge available if the direct channel fails.\n }\n }\n if (!sentDirectly)\n await bridge.updateNativeAdPlacements(batch);\n this.lastPlacementWasDirect = sentDirectly;\n this.lastPlacements = serializedPlacements;\n }\n catch (_b) {\n this.lastPlacements = undefined;\n // Retry on the next scroll, resize, or lifecycle update without\n // creating an unhandled rejection from this fire-and-forget task.\n this.updateDirty = true;\n return false;\n }\n }\n return true;\n }\n catch (_c) {\n this.updateDirty = true;\n return false;\n }\n finally {\n this.placementUpdateTask = undefined;\n }\n }\n assertActive() {\n if (this.destroyed) {\n throw new Error(`Native ad feed has been destroyed: ${this.options.feedId}`);\n }\n }\n}\nexport const configureNativeAdBridge = (adMobBridge) => {\n bridge = adMobBridge;\n};\n//# sourceMappingURL=native-ad-feed.js.map","export var MaxAdContentRating;\n(function (MaxAdContentRating) {\n /**\n * Content suitable for general audiences, including families.\n */\n MaxAdContentRating[\"General\"] = \"General\";\n /**\n * Content suitable for most audiences with parental guidance.\n */\n MaxAdContentRating[\"ParentalGuidance\"] = \"ParentalGuidance\";\n /**\n * Content suitable for teen and older audiences.\n */\n MaxAdContentRating[\"Teen\"] = \"Teen\";\n /**\n * Content suitable only for mature audiences.\n */\n MaxAdContentRating[\"MatureAudience\"] = \"MatureAudience\";\n})(MaxAdContentRating || (MaxAdContentRating = {}));\n//# sourceMappingURL=definitions.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var BannerAdPluginEvents;\n(function (BannerAdPluginEvents) {\n /**\n * Emits when the displayed banner size changes.\n */\n BannerAdPluginEvents[\"SizeChanged\"] = \"bannerAdSizeChanged\";\n /**\n * Emits when a banner ad has loaded.\n */\n BannerAdPluginEvents[\"Loaded\"] = \"bannerAdLoaded\";\n /**\n * Emits when a banner ad fails to load.\n */\n BannerAdPluginEvents[\"FailedToLoad\"] = \"bannerAdFailedToLoad\";\n /**\n * Emits when a banner opens an overlay after the user taps it.\n */\n BannerAdPluginEvents[\"Opened\"] = \"bannerAdOpened\";\n /**\n * Emits when the banner overlay is closed.\n */\n BannerAdPluginEvents[\"Closed\"] = \"bannerAdClosed\";\n /**\n * Emits when an impression is recorded for the banner ad.\n */\n BannerAdPluginEvents[\"AdImpression\"] = \"bannerAdImpression\";\n /**\n * Emits impression-level ad revenue data when a paid event is recorded.\n */\n BannerAdPluginEvents[\"AdPaid\"] = \"bannerAdPaid\";\n})(BannerAdPluginEvents || (BannerAdPluginEvents = {}));\n//# sourceMappingURL=banner-ad-plugin-events.enum.js.map","/**\n * @see https://developer.android.com/reference/android/widget/LinearLayout#attr_android:gravity\n */\nexport var BannerAdPosition;\n(function (BannerAdPosition) {\n /**\n * Positions the banner at the top center of the screen.\n */\n BannerAdPosition[\"TOP_CENTER\"] = \"TOP_CENTER\";\n /**\n * Positions the banner at the center of the screen.\n */\n BannerAdPosition[\"CENTER\"] = \"CENTER\";\n /**\n * Positions the banner at the bottom center of the screen.\n */\n BannerAdPosition[\"BOTTOM_CENTER\"] = \"BOTTOM_CENTER\";\n})(BannerAdPosition || (BannerAdPosition = {}));\n//# sourceMappingURL=banner-ad-position.enum.js.map","/**\n * For more information:\n * https://developers.google.com/admob/ios/banner#banner_sizes\n * https://developers.google.com/android/reference/com/google/android/gms/ads/AdSize\n *\n * */\nexport var BannerAdSize;\n(function (BannerAdSize) {\n /**\n * Mobile Marketing Association (MMA)\n * banner ad size (320x50 density-independent pixels).\n */\n BannerAdSize[\"BANNER\"] = \"BANNER\";\n /**\n * Interactive Advertising Bureau (IAB)\n * full banner ad size (468x60 density-independent pixels).\n */\n BannerAdSize[\"FULL_BANNER\"] = \"FULL_BANNER\";\n /**\n * Large banner ad size (320x100 density-independent pixels).\n */\n BannerAdSize[\"LARGE_BANNER\"] = \"LARGE_BANNER\";\n /**\n * Interactive Advertising Bureau (IAB)\n * medium rectangle ad size (300x250 density-independent pixels).\n */\n BannerAdSize[\"MEDIUM_RECTANGLE\"] = \"MEDIUM_RECTANGLE\";\n /**\n * Interactive Advertising Bureau (IAB)\n * leaderboard ad size (728x90 density-independent pixels).\n */\n BannerAdSize[\"LEADERBOARD\"] = \"LEADERBOARD\";\n /**\n * A dynamically sized banner that is full-width and auto-height.\n */\n BannerAdSize[\"ADAPTIVE_BANNER\"] = \"ADAPTIVE_BANNER\";\n /**\n * A legacy smart banner sized to the screen width.\n * Retained for compatibility; use `ADAPTIVE_BANNER` for new integrations.\n *\n * @deprecated Use `ADAPTIVE_BANNER` instead.\n */\n BannerAdSize[\"SMART_BANNER\"] = \"SMART_BANNER\";\n})(BannerAdSize || (BannerAdSize = {}));\n//# sourceMappingURL=banner-ad-size.enum.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var InterstitialAdPluginEvents;\n(function (InterstitialAdPluginEvents) {\n /**\n * Emits when an interstitial ad has loaded and is ready to show.\n */\n InterstitialAdPluginEvents[\"Loaded\"] = \"interstitialAdLoaded\";\n /**\n * Emits when an interstitial ad fails to load.\n */\n InterstitialAdPluginEvents[\"FailedToLoad\"] = \"interstitialAdFailedToLoad\";\n /**\n * Emits when an interstitial ad is shown.\n */\n InterstitialAdPluginEvents[\"Showed\"] = \"interstitialAdShowed\";\n /**\n * Emits when a loaded interstitial ad fails to show.\n */\n InterstitialAdPluginEvents[\"FailedToShow\"] = \"interstitialAdFailedToShow\";\n /**\n * Emits when an interstitial ad is dismissed.\n */\n InterstitialAdPluginEvents[\"Dismissed\"] = \"interstitialAdDismissed\";\n /**\n * Emits impression-level ad revenue data when a paid event is recorded.\n */\n InterstitialAdPluginEvents[\"AdImpression\"] = \"interstitialAdImpression\";\n})(InterstitialAdPluginEvents || (InterstitialAdPluginEvents = {}));\n//# sourceMappingURL=interstitial-ad-plugin-events.enum.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var RewardInterstitialAdPluginEvents;\n(function (RewardInterstitialAdPluginEvents) {\n /**\n * Emits when a rewarded interstitial ad has loaded and is ready to show.\n */\n RewardInterstitialAdPluginEvents[\"Loaded\"] = \"onRewardedInterstitialAdLoaded\";\n /**\n * Emits when a rewarded interstitial ad fails to load.\n */\n RewardInterstitialAdPluginEvents[\"FailedToLoad\"] = \"onRewardedInterstitialAdFailedToLoad\";\n /**\n * Emits when a rewarded interstitial ad is shown.\n */\n RewardInterstitialAdPluginEvents[\"Showed\"] = \"onRewardedInterstitialAdShowed\";\n /**\n * Emits when a loaded rewarded interstitial ad fails to show.\n */\n RewardInterstitialAdPluginEvents[\"FailedToShow\"] = \"onRewardedInterstitialAdFailedToShow\";\n /**\n * Emits when a rewarded interstitial ad is dismissed.\n *\n * This event does not indicate whether the user earned a reward. Listen for\n * `Rewarded` separately before granting the reward.\n */\n RewardInterstitialAdPluginEvents[\"Dismissed\"] = \"onRewardedInterstitialAdDismissed\";\n /**\n * Emits when the user earns the advertised reward.\n */\n RewardInterstitialAdPluginEvents[\"Rewarded\"] = \"onRewardedInterstitialAdReward\";\n /**\n * Emits impression-level ad revenue data when a paid event is recorded.\n */\n RewardInterstitialAdPluginEvents[\"AdImpression\"] = \"onRewardedInterstitialAdImpression\";\n})(RewardInterstitialAdPluginEvents || (RewardInterstitialAdPluginEvents = {}));\n//# sourceMappingURL=reward-interstitial-ad-plugin-events.enum.js.map","// This enum should be keep in sync with their native equivalents with the same name\nexport var RewardAdPluginEvents;\n(function (RewardAdPluginEvents) {\n /**\n * Emits when the SDK records a click on a rewarded ad.\n */\n RewardAdPluginEvents[\"adClicked\"] = \"onRewardedVideoAdClicked\";\n /**\n * Emits when a rewarded ad has loaded and is ready to show.\n */\n RewardAdPluginEvents[\"Loaded\"] = \"onRewardedVideoAdLoaded\";\n /**\n * Emits when a rewarded ad fails to load.\n */\n RewardAdPluginEvents[\"FailedToLoad\"] = \"onRewardedVideoAdFailedToLoad\";\n /**\n * Emits when a rewarded ad is shown.\n */\n RewardAdPluginEvents[\"Showed\"] = \"onRewardedVideoAdShowed\";\n /**\n * Emits when a loaded rewarded ad fails to show.\n */\n RewardAdPluginEvents[\"FailedToShow\"] = \"onRewardedVideoAdFailedToShow\";\n /**\n * Emits when a rewarded ad is dismissed.\n *\n * This event does not indicate whether the user earned a reward. Listen for\n * `Rewarded` separately before granting the reward.\n */\n RewardAdPluginEvents[\"Dismissed\"] = \"onRewardedVideoAdDismissed\";\n /**\n * Emits when the user earns the advertised reward.\n */\n RewardAdPluginEvents[\"Rewarded\"] = \"onRewardedVideoAdReward\";\n /**\n * Emits impression-level ad revenue data when a paid event is recorded.\n */\n RewardAdPluginEvents[\"AdImpression\"] = \"onRewardedVideoAdImpression\";\n})(RewardAdPluginEvents || (RewardAdPluginEvents = {}));\n//# sourceMappingURL=reward-ad-plugin-events.enum.js.map","/**\n * For more information:\n * https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/ump/api#consentstatus\n *\n * */\nexport var AdmobConsentStatus;\n(function (AdmobConsentStatus) {\n /**\n * User consent not required.\n */\n AdmobConsentStatus[\"NOT_REQUIRED\"] = \"NOT_REQUIRED\";\n /**\n * User consent already obtained.\n */\n AdmobConsentStatus[\"OBTAINED\"] = \"OBTAINED\";\n /**\n * User consent required but not yet obtained.\n */\n AdmobConsentStatus[\"REQUIRED\"] = \"REQUIRED\";\n /**\n * Unknown consent status, AdsConsent.requestInfoUpdate needs to be called to update it.\n */\n AdmobConsentStatus[\"UNKNOWN\"] = \"UNKNOWN\";\n})(AdmobConsentStatus || (AdmobConsentStatus = {}));\n//# sourceMappingURL=consent-status.enum.js.map","/**\n * For more information:\n * https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/ump/api#debuggeography\n *\n * */\nexport var AdmobConsentDebugGeography;\n(function (AdmobConsentDebugGeography) {\n /**\n * Debug geography disabled.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"DISABLED\"] = 0] = \"DISABLED\";\n /**\n * Geography appears as in EEA for debug devices.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"EEA\"] = 1] = \"EEA\";\n /**\n * Geography appears as not in EEA for debug devices.\n * @deprecated\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"NOT_EEA\"] = 2] = \"NOT_EEA\";\n /**\n * Geography appears as in regulated US state for debug devices.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"US\"] = 3] = \"US\";\n /**\n * Geography appears as OTHER state for debug devices.\n */\n AdmobConsentDebugGeography[AdmobConsentDebugGeography[\"OTHER\"] = 4] = \"OTHER\";\n})(AdmobConsentDebugGeography || (AdmobConsentDebugGeography = {}));\n//# sourceMappingURL=consent-debug-geography.enum.js.map","/**\n * The precision of an impression-level ad value.\n */\nexport var AdValuePrecision;\n(function (AdValuePrecision) {\n /**\n * The ad value precision is unknown.\n */\n AdValuePrecision[AdValuePrecision[\"Unknown\"] = 0] = \"Unknown\";\n /**\n * The ad value is estimated from aggregated data.\n */\n AdValuePrecision[AdValuePrecision[\"Estimated\"] = 1] = \"Estimated\";\n /**\n * The ad value was provided by the publisher.\n */\n AdValuePrecision[AdValuePrecision[\"PublisherProvided\"] = 2] = \"PublisherProvided\";\n /**\n * The ad value is the precise value paid for this ad.\n */\n AdValuePrecision[AdValuePrecision[\"Precise\"] = 3] = \"Precise\";\n})(AdValuePrecision || (AdValuePrecision = {}));\n//# sourceMappingURL=ad-mob-revenue-data.interface.js.map","export var AppOpenAdPluginEvents;\n(function (AppOpenAdPluginEvents) {\n /**\n * Emits when an App Open ad has loaded.\n */\n AppOpenAdPluginEvents[\"Loaded\"] = \"appOpenAdLoaded\";\n /**\n * Emits when an App Open ad fails to load.\n */\n AppOpenAdPluginEvents[\"FailedToLoad\"] = \"appOpenAdFailedToLoad\";\n /**\n * Emits when an App Open ad is shown.\n */\n AppOpenAdPluginEvents[\"Opened\"] = \"appOpenAdOpened\";\n /**\n * Emits when an App Open ad is dismissed.\n */\n AppOpenAdPluginEvents[\"Closed\"] = \"appOpenAdClosed\";\n /**\n * Emits when a loaded App Open ad fails to show.\n */\n AppOpenAdPluginEvents[\"FailedToShow\"] = \"appOpenAdFailedToShow\";\n /**\n * Emits impression-level ad revenue data when a paid event is recorded.\n */\n AppOpenAdPluginEvents[\"AdImpression\"] = \"appOpenAdImpression\";\n})(AppOpenAdPluginEvents || (AppOpenAdPluginEvents = {}));\n//# sourceMappingURL=app-open-ad-plugin-events.enum.js.map","export var NativeAdPluginEvents;\n(function (NativeAdPluginEvents) {\n NativeAdPluginEvents[\"Loaded\"] = \"nativeAdLoaded\";\n NativeAdPluginEvents[\"FailedToLoad\"] = \"nativeAdFailedToLoad\";\n NativeAdPluginEvents[\"Clicked\"] = \"nativeAdClicked\";\n NativeAdPluginEvents[\"AdImpression\"] = \"nativeAdImpression\";\n NativeAdPluginEvents[\"Opened\"] = \"nativeAdOpened\";\n NativeAdPluginEvents[\"Closed\"] = \"nativeAdClosed\";\n NativeAdPluginEvents[\"AdPaid\"] = \"nativeAdPaid\";\n})(NativeAdPluginEvents || (NativeAdPluginEvents = {}));\n//# sourceMappingURL=native-ad-plugin-events.enum.js.map","import { registerPlugin } from '@capacitor/core';\nimport { configureNativeAdBridge } from './native-ads/native-ad-feed';\nconst nativeAdBridge = registerPlugin('AdMob', {\n web: () => import('./web').then((m) => new m.AdMobWeb()),\n});\nconst AdMob = nativeAdBridge;\nconfigureNativeAdBridge(nativeAdBridge);\nexport * from './definitions';\nexport * from './banner/index';\nexport * from './interstitial/index';\nexport * from './reward-interstitial/index';\nexport * from './reward/index';\nexport * from './consent/index';\nexport * from './shared/index';\nexport * from './app-open/index';\nexport * from './native-ads/index';\nexport { AdMob };\n//# sourceMappingURL=index.js.map","/**\n * For more information:\n * https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/ump/api#privacyoptionsrequirementstatus\n *\n * */\nexport var PrivacyOptionsRequirementStatus;\n(function (PrivacyOptionsRequirementStatus) {\n /**\n * Privacy options entry point is not required.\n */\n PrivacyOptionsRequirementStatus[\"NOT_REQUIRED\"] = \"NOT_REQUIRED\";\n /**\n * Privacy options entry point is required.\n */\n PrivacyOptionsRequirementStatus[\"REQUIRED\"] = \"REQUIRED\";\n /**\n * Privacy options requirement status is unknown.\n */\n PrivacyOptionsRequirementStatus[\"UNKNOWN\"] = \"UNKNOWN\";\n})(PrivacyOptionsRequirementStatus || (PrivacyOptionsRequirementStatus = {}));\n//# sourceMappingURL=privacy-options-requirement-status.enum.js.map","import { WebPlugin } from '@capacitor/core';\nimport { AdmobConsentStatus } from './consent/consent-status.enum';\nimport { PrivacyOptionsRequirementStatus } from './consent/privacy-options-requirement-status.enum';\nexport class AdMobWeb extends WebPlugin {\n async initialize() {\n console.log('initialize');\n }\n async requestTrackingAuthorization() {\n console.log('requestTrackingAuthorization');\n }\n async trackingAuthorizationStatus() {\n return {\n status: 'authorized',\n };\n }\n async requestConsentInfo(options) {\n console.log('requestConsentInfo', options);\n return {\n status: AdmobConsentStatus.REQUIRED,\n isConsentFormAvailable: true,\n canRequestAds: true,\n privacyOptionsRequirementStatus: PrivacyOptionsRequirementStatus.REQUIRED,\n };\n }\n async showPrivacyOptionsForm() {\n console.log('showPrivacyOptionsForm');\n }\n async showConsentForm() {\n console.log('showConsentForm');\n return {\n status: AdmobConsentStatus.REQUIRED,\n canRequestAds: true,\n privacyOptionsRequirementStatus: PrivacyOptionsRequirementStatus.REQUIRED,\n };\n }\n async resetConsentInfo() {\n console.log('resetConsentInfo');\n }\n async setApplicationMuted(options) {\n console.log('setApplicationMuted', options);\n }\n async setApplicationVolume(options) {\n console.log('setApplicationVolume', options);\n }\n async showBanner(options) {\n console.log('showBanner', options);\n }\n async hideBanner() {\n console.log('hideBanner');\n }\n async resumeBanner() {\n console.log('resumeBanner');\n }\n async removeBanner() {\n console.log('removeBanner');\n }\n async startNativeAdFeed() {\n throw new Error('Native ads are only available on iOS and Android');\n }\n async destroyNativeAdFeed(options) {\n console.log('destroyNativeAdFeed', options);\n }\n async loadNativeAd() {\n throw new Error('Native ads are only available on iOS and Android');\n }\n async updateNativeAdPlacements(options) {\n console.log('updateNativeAdPlacements', options);\n }\n async removeNativeAd(options) {\n console.log('removeNativeAd', options);\n }\n async prepareInterstitial(options) {\n console.log('prepareInterstitial', options);\n return {\n adUnitId: options.adId,\n };\n }\n async showInterstitial(options) {\n console.log('showInterstitial', options);\n }\n async prepareRewardVideoAd(options) {\n console.log('prepareRewardVideoAd', options);\n return {\n adUnitId: options.adId,\n };\n }\n async showRewardVideoAd(options) {\n console.log('showRewardVideoAd', options);\n return {\n type: '',\n amount: 0,\n };\n }\n async prepareRewardInterstitialAd(options) {\n console.log('prepareRewardInterstitialAd', options);\n return {\n adUnitId: options.adId,\n };\n }\n async showRewardInterstitialAd(options) {\n console.log('showRewardInterstitialAd', options);\n return {\n type: '',\n amount: 0,\n };\n }\n async loadAppOpen(options) {\n console.log('loadAppOpen', options);\n return {\n adUnitId: options.adId,\n };\n }\n async showAppOpen(options) {\n console.log('showAppOpen', options);\n }\n async isAppOpenLoaded() {\n return { value: false };\n }\n addListener(eventName, listenerFunc) {\n void listenerFunc;\n console.log('addListener', eventName);\n return Promise.resolve({ remove: () => Promise.resolve() });\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["NativeAdTemplate","Capacitor","MaxAdContentRating","BannerAdPluginEvents","BannerAdPosition","BannerAdSize","InterstitialAdPluginEvents","RewardInterstitialAdPluginEvents","RewardAdPluginEvents","AdmobConsentStatus","AdmobConsentDebugGeography","AdValuePrecision","AppOpenAdPluginEvents","NativeAdPluginEvents","registerPlugin","WebPlugin"],"mappings":";;;IAAO,MAAM,sBAAsB,GAAG,wBAAwB;IACvD,MAAM,qBAAqB,GAAG,CAAC,QAAQ,KAAK;IACnD,IAAI,MAAM,OAAO,GAAG,UAAU;IAC9B,IAAI,OAAO,CAAC,gCAAgC,GAAG,QAAQ;IACvD,IAAI,IAAI,OAAO,cAAc,KAAK,WAAW,IAAI,cAAc,CAAC,GAAG,CAAC,sBAAsB,CAAC,EAAE;IAC7F,QAAQ;IACR,IAAI;IACJ,IAAI,cAAc,CAAC,MAAM,CAAC,sBAAsB,EAAE,cAAc,WAAW,CAAC;IAC5E,QAAQ,WAAW,kBAAkB,GAAG;IACxC,YAAY,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC;IAC1C,QAAQ;IACR,QAAQ,iBAAiB,GAAG;IAC5B,YAAY,IAAI,CAAC,aAAa,EAAE;IAChC,QAAQ;IACR,QAAQ,oBAAoB,GAAG;IAC/B,YAAY,IAAI,CAAC,kBAAkB,EAAE;IACrC,QAAQ;IACR,QAAQ,wBAAwB,GAAG;IACnC,YAAY,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;IACnC,gBAAgB;IAChB,YAAY;IACZ,YAAY,IAAI,CAAC,kBAAkB,EAAE;IACrC,YAAY,IAAI,CAAC,aAAa,EAAE;IAChC,QAAQ;IACR,QAAQ,aAAa,GAAG;IACxB,YAAY,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE;IAC1B,YAAY,MAAM,MAAM,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,SAAS,C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T,IAAI;IACJ,IAAI,MAAM,WAAW,CAAC,OAAO,EAAE;IAC/B,QAAQ,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC;IAC3C,QAAQ,OAAO;IACf,YAAY,QAAQ,EAAE,OAAO,CAAC,IAAI;IAClC,SAAS;IACT,IAAI;IACJ,IAAI,MAAM,WAAW,CAAC,OAAO,EAAE;IAC/B,QAAQ,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC;IAC3C,IAAI;IACJ,IAAI,MAAM,eAAe,GAAG;IAC5B,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE;IAC/B,IAAI;IACJ,IAAI,WAAW,CAAC,SAAS,EAAE,YAAY,EAAE;IAEzC,QAAQ,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,SAAS,CAAC;IAC7C,QAAQ,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;IACnE,IAAI;IACJ;;;;;;;;;;;;"}
@@ -0,0 +1,161 @@
1
+ # Native Ads (Preview)
2
+
3
+ **Native Ads is a Preview feature.** You can use it for testing and in production. Its API may change in a minor release while in Preview.
4
+
5
+ Native ads are rendered with Google Mobile Ads SDK views owned by this plugin. Your app reserves an HTML slot and supplies a stable key; it does not implement a `NativeAdView` in Kotlin or Swift and does not render ad assets in JavaScript.
6
+
7
+ Native Ads is available on iOS and Android. Virtual scrolling is not yet supported. A native ad is placed above the WebView, so a pan beginning on the ad may not reach the WebView's scroll container. The implementation updates overlay coordinates as the WebView scrolls, but that cannot solve the initial gesture-routing problem.
8
+
9
+ Browsers and PWAs are unsupported. `NativeAdFeed.create()` rejects instead of leaving an empty ad slot.
10
+
11
+ ## Create a feed
12
+
13
+ Create one manager for each visible feed screen after initializing AdMob and obtaining consent.
14
+
15
+ ```ts
16
+ import { NativeAdFeed, NativeAdPluginEvents, NativeAdTemplate } from '@capacitor-community/admob';
17
+
18
+ const nativeAds = await NativeAdFeed.create({
19
+ feedId: 'home-feed',
20
+ template: NativeAdTemplate.Medium,
21
+ isTesting: true,
22
+ style: {
23
+ backgroundColor: '#ffffff',
24
+ cornerRadius: 12,
25
+ headlineColor: '#111827',
26
+ callToActionBackgroundColor: '#2563eb',
27
+ },
28
+ });
29
+
30
+ const paidHandle = await nativeAds.addListener(NativeAdPluginEvents.AdPaid, (event) => {
31
+ console.log(event.slotKey, event.valueMicros, event.currencyCode);
32
+ });
33
+ ```
34
+
35
+ Use the framework-independent element in ordinary or virtualized markup. `slot-key` must identify the logical ad item, not its array index and not the recycled DOM node.
36
+
37
+ ```html
38
+ <capacitor-admob-native feed-id="home-feed" slot-key="sponsored-after-article-42"></capacitor-admob-native>
39
+ ```
40
+
41
+ The element reserves `320px` for `Medium` and `120px` for `Small` only when author CSS does not provide a height. Author `display: none` and explicit height rules are respected. `Small` slots must be at least `120×120px`; `Medium` slots must be at least `144×300px`. Smaller slots are not loaded. These are lower bounds, not a guarantee that every creative and font size will fit. On Android, `Medium` stays hidden if its measured media area is smaller than `120×120dp`; increase the slot size to accommodate text, device font scaling, and pixel rounding. Do not animate or dynamically measure the slot height.
42
+
43
+ `Small` has no video area. If the SDK returns a video ad for this template, the load fails with `NativeAdPluginEvents.FailedToLoad` (code `-1`); it is not displayed or automatically retried. Use `Medium` for ad units that serve video ads.
44
+
45
+ If a framework does not accept custom elements, attach an ordinary element instead:
46
+
47
+ ```ts
48
+ nativeAds.attach('sponsored-after-article-42', element);
49
+
50
+ // Before the element is destroyed or reused for another logical item:
51
+ nativeAds.detach(element);
52
+ ```
53
+
54
+ Destroy the manager with its screen:
55
+
56
+ ```ts
57
+ await paidHandle.remove();
58
+ await nativeAds.destroy();
59
+ ```
60
+
61
+ ## Virtual-scroll integration experiments
62
+
63
+ The stable-key lifecycle is designed for later validation with Angular CDK virtual scroll, React Virtuoso, and Vue Virtual Scroller. These integrations are examples for experiments, not a support claim:
64
+
65
+ - Put the logical ad ID in `slot-key` (Angular binding, React prop/ref, or Vue `:slot-key`). Never use the rendered index.
66
+ - Keep the ad row at a fixed height and include that height in the virtual scroller's item-size calculation.
67
+ - When a library recycles a row, update the key or call `detach` before calling `attach` with the new key. The plugin hides the old generation before loading or showing the new one.
68
+ - Use a single vertical scroll root. Nested scroll containers, horizontal virtual lists, sticky/transformed ancestors, and animated row heights are not in the initial support profile.
69
+
70
+ For Angular, add `CUSTOM_ELEMENTS_SCHEMA` to the standalone component or NgModule that owns the feed, then bind attributes (not properties) inside the virtual row:
71
+
72
+ ```html
73
+ <capacitor-admob-native feed-id="home-feed" [attr.slot-key]="item.stableAdKey"></capacitor-admob-native>
74
+ ```
75
+
76
+ With React, `createElement` keeps custom dash-cased attributes type-safe without adding a framework dependency to the plugin:
77
+
78
+ ```tsx
79
+ import { createElement } from 'react';
80
+
81
+ const NativeAdRow = ({ slotKey }: { slotKey: string }) =>
82
+ createElement('capacitor-admob-native', {
83
+ 'feed-id': 'home-feed',
84
+ 'slot-key': slotKey,
85
+ });
86
+ ```
87
+
88
+ For Vue, mark the tag as a custom element in the Vue compiler and bind the stable key:
89
+
90
+ ```ts
91
+ // vite.config.ts
92
+ vue({
93
+ template: {
94
+ compilerOptions: {
95
+ isCustomElement: (tag) => tag === 'capacitor-admob-native',
96
+ },
97
+ },
98
+ });
99
+ ```
100
+
101
+ ```html
102
+ <capacitor-admob-native feed-id="home-feed" :slot-key="item.stableAdKey" />
103
+ ```
104
+
105
+ Use a normal HTML `overflow: auto` container or Ionic `ion-content`; Android requires no scroll-specific option. Ads follow the slot and its clipping bounds, but can lag behind fast scrolling. New ads load after scrolling settles.
106
+
107
+ A feed keeps at most three native ads, including attached offscreen slots; additional visible slots wait for capacity. At most two feed managers may be active. Ads are not automatically refreshed, and failed loads are not silently retried. Call `reload(slotKey)` only at an explicit product-defined retry or refresh point.
108
+
109
+ ## Layout and overlay lifecycle
110
+
111
+ Call `invalidateLayout()` after application-driven layout changes that can move a slot without scrolling, such as expanding an accordion. Slot size changes and captured image-load events are detected automatically.
112
+
113
+ Native ads sit above WebView content and cannot infer that an Ionic modal, popover, menu, loading indicator, or route transition covers the slot. Hide the feed before presenting an overlay and resume it after dismissal:
114
+
115
+ ```ts
116
+ await nativeAds.pause();
117
+ await modal.present();
118
+ await modal.onDidDismiss();
119
+ nativeAds.resume();
120
+ ```
121
+
122
+ Call `destroy()` when leaving a screen. Await `pause()` before presenting an overlay; it rejects if the native hide update fails. `resume()` waits for the viewport to settle before showing eligible placements again. `invalidateLayout()` likewise resolves only after the stale placement has been hidden.
123
+
124
+ ## API
125
+
126
+ | Member | Purpose |
127
+ | ---------------------------------------------- | -------------------------------------------------------------- |
128
+ | `NativeAdFeed.create(options)` | Starts a native feed session. Rejects outside iOS and Android. |
129
+ | `feedId` | Normalized feed identifier used by the custom element. |
130
+ | `addListener(event, listener)` | Adds a listener filtered to this feed session. |
131
+ | `attach(slotKey, element)` / `detach(element)` | Advanced lifecycle for an ordinary element. |
132
+ | `reload(slotKey)` | Explicitly removes and reloads one registered slot. |
133
+ | `pause(): Promise<void>` / `resume(): void` | Hides placements during Web overlays or inactive page states. |
134
+ | `invalidateLayout(): Promise<void>` | Hides and remeasures after an application-driven reflow. |
135
+ | `destroy()` | Removes listeners and all native resources for the session. |
136
+
137
+ `NativeAdFeedOptions` contains `feedId`, `adId`, `template`, `style`, `isTesting`, `npa`, and the optional iOS `scrollElement`. Set `isTesting: true` to use Google's platform test ad unit. For production ads, set your platform-specific native ad unit ID in `adId` and omit `isTesting` or set it to `false`. `adId` is required unless `isTesting` is `true`. `feedId` and every `slotKey` must be non-empty and stable; reuse the same feed IDs across WebView reloads so stale native sessions can be replaced safely.
138
+
139
+ ## Rendering and policy boundary
140
+
141
+ The `Small` and `Medium` templates, attribution, AdChoices, media, and clickable asset registration are owned by the plugin. The public style API intentionally exposes a limited set of cross-platform tokens instead of arbitrary native layouts or HTML asset rendering. This keeps Google SDK impression and click handling inside the native SDK.
142
+
143
+ Style colors use CSS-style `#RRGGBB` or `#RRGGBBAA` values on both platforms. Dimensions use logical pixels; font sizes use points on iOS and `sp` on Android. Invalid colors fall back to the template defaults. Negative dimensions are clamped to zero; headline, body, and call-to-action fonts are clamped to `12–24`, `10–18`, and `12–18` respectively.
144
+
145
+ Follow Google's native ad policies and implementation guidance for [Android](https://developers.google.com/admob/android/native/advanced) and [iOS](https://developers.google.com/admob/ios/native/advanced).
146
+
147
+ ## iOS scroll container
148
+
149
+ For a single Ionic scroll container, pass its actual scroll element when creating the feed:
150
+
151
+ ```ts
152
+ const feed = await NativeAdFeed.create({
153
+ feedId: 'articles',
154
+ isTesting: true,
155
+ scrollElement: await ionContent.getScrollElement(),
156
+ });
157
+ ```
158
+
159
+ On iOS, specifying `scrollElement` enables experimental native scroll tracking for that container. Layout changes still require remeasurement; call `invalidateLayout()` after application-driven changes. Clipping inside the scroll container and at its visible bounds is retained. `pause()` and `destroy()` stop tracking. Other platforms ignore this option and retain JavaScript coordinate updates.
160
+
161
+ If the specified container cannot be identified unambiguously, the update fails and its ads stay hidden. Use one untransformed, unzoomed overflow scroll container; nested scrolling, document scrolling through this option, and virtual-scroll integrations are not supported. This does not change gesture routing for swipes that begin on an ad.
@@ -23,6 +23,11 @@ public class AdMobPlugin: CAPPlugin, CAPBridgedPlugin {
23
23
  CAPPluginMethod(name: "resumeBanner", returnType: CAPPluginReturnPromise),
24
24
  CAPPluginMethod(name: "hideBanner", returnType: CAPPluginReturnPromise),
25
25
  CAPPluginMethod(name: "removeBanner", returnType: CAPPluginReturnPromise),
26
+ CAPPluginMethod(name: "startNativeAdFeed", returnType: CAPPluginReturnPromise),
27
+ CAPPluginMethod(name: "destroyNativeAdFeed", returnType: CAPPluginReturnPromise),
28
+ CAPPluginMethod(name: "loadNativeAd", returnType: CAPPluginReturnPromise),
29
+ CAPPluginMethod(name: "updateNativeAdPlacements", returnType: CAPPluginReturnPromise),
30
+ CAPPluginMethod(name: "removeNativeAd", returnType: CAPPluginReturnPromise),
26
31
  CAPPluginMethod(name: "prepareInterstitial", returnType: CAPPluginReturnPromise),
27
32
  CAPPluginMethod(name: "showInterstitial", returnType: CAPPluginReturnPromise),
28
33
  CAPPluginMethod(name: "prepareRewardVideoAd", returnType: CAPPluginReturnPromise),
@@ -64,6 +69,7 @@ public class AdMobPlugin: CAPPlugin, CAPBridgedPlugin {
64
69
  private let adRewardExecutor = AdRewardExecutor()
65
70
  private let adRewardInterstitialExecutor = AdRewardInterstitialExecutor()
66
71
  private let consentExecutor = ConsentExecutor()
72
+ private let nativeAdExecutor = NativeAdExecutor()
67
73
 
68
74
  public override func load() {
69
75
  self.consentExecutor.plugin = self
@@ -99,22 +105,6 @@ public class AdMobPlugin: CAPPlugin, CAPBridgedPlugin {
99
105
  self.bridge?.webView?.setAllMediaPlaybackSuspended(suspended, completionHandler: nil)
100
106
  }
101
107
 
102
- /**
103
- * Enable SKAdNetwork to track conversions
104
- * https://developers.google.com/admob/ios/ios14
105
- */
106
- @objc func initialize(_ call: CAPPluginCall) {
107
- self.bannerExecutor.plugin = self
108
- self.adInterstitialExecutor.plugin = self
109
- self.adRewardExecutor.plugin = self
110
- self.adRewardInterstitialExecutor.plugin = self
111
- self.adInterstitialExecutor.plugin = self
112
- self.setRequestConfiguration(call)
113
-
114
- MobileAds.shared.start(completionHandler: nil)
115
- call.resolve([:])
116
- }
117
-
118
108
  /**
119
109
  * DEPRECATED: It's now ship with Admob UMP Consent
120
110
  */
@@ -156,34 +146,12 @@ public class AdMobPlugin: CAPPlugin, CAPBridgedPlugin {
156
146
  }
157
147
  }
158
148
 
159
- /**
160
- * AdMob: Banner
161
- * https://developers.google.com/ad-manager/mobile-ads-sdk/ios/banner?hl=ja
162
- */
163
- @objc func showBanner(_ call: CAPPluginCall) {
164
- let adUnitID = getAdId(call, "ca-app-pub-3940256099942544/6300978111")
165
- let request = self.GADRequestWithOption(call.getBool("npa") ?? false)
166
-
167
- DispatchQueue.main.async {
168
- self.bannerExecutor.showBanner(call, request, adUnitID)
169
- }
170
- }
171
-
172
- @objc func hideBanner(_ call: CAPPluginCall) {
173
- DispatchQueue.main.async {
174
- self.bannerExecutor.hideBanner(call)
175
- }
176
- }
177
-
178
- @objc func resumeBanner(_ call: CAPPluginCall) {
179
- DispatchQueue.main.async {
180
- self.bannerExecutor.resumeBanner(call)
181
- }
182
- }
183
-
184
- @objc func removeBanner(_ call: CAPPluginCall) {
185
- DispatchQueue.main.async {
186
- self.bannerExecutor.removeBanner(call)
149
+ deinit {
150
+ let executor = nativeAdExecutor
151
+ if Thread.isMainThread {
152
+ executor.destroyAll()
153
+ } else {
154
+ DispatchQueue.main.async { executor.destroyAll() }
187
155
  }
188
156
  }
189
157
 
@@ -379,3 +347,67 @@ public class AdMobPlugin: CAPPlugin, CAPBridgedPlugin {
379
347
  return window?.rootViewController
380
348
  }
381
349
  }
350
+
351
+ extension AdMobPlugin {
352
+ // MARK: SDK initialization
353
+
354
+ @objc func initialize(_ call: CAPPluginCall) {
355
+ bannerExecutor.plugin = self
356
+ adInterstitialExecutor.plugin = self
357
+ adRewardExecutor.plugin = self
358
+ adRewardInterstitialExecutor.plugin = self
359
+ adInterstitialExecutor.plugin = self
360
+ nativeAdExecutor.plugin = self
361
+ setRequestConfiguration(call)
362
+
363
+ MobileAds.shared.start(completionHandler: nil)
364
+ call.resolve([:])
365
+ }
366
+
367
+ // MARK: Banner ads
368
+
369
+ @objc func showBanner(_ call: CAPPluginCall) {
370
+ let adUnitID = getAdId(call, "ca-app-pub-3940256099942544/6300978111")
371
+ let request = GADRequestWithOption(call.getBool("npa") ?? false)
372
+ DispatchQueue.main.async {
373
+ self.bannerExecutor.showBanner(call, request, adUnitID)
374
+ }
375
+ }
376
+
377
+ @objc func hideBanner(_ call: CAPPluginCall) {
378
+ DispatchQueue.main.async { self.bannerExecutor.hideBanner(call) }
379
+ }
380
+
381
+ @objc func resumeBanner(_ call: CAPPluginCall) {
382
+ DispatchQueue.main.async { self.bannerExecutor.resumeBanner(call) }
383
+ }
384
+
385
+ @objc func removeBanner(_ call: CAPPluginCall) {
386
+ DispatchQueue.main.async { self.bannerExecutor.removeBanner(call) }
387
+ }
388
+
389
+ // MARK: Native ads research preview
390
+
391
+ @objc func startNativeAdFeed(_ call: CAPPluginCall) {
392
+ DispatchQueue.main.async { self.nativeAdExecutor.startFeed(call) }
393
+ }
394
+
395
+ @objc func destroyNativeAdFeed(_ call: CAPPluginCall) {
396
+ DispatchQueue.main.async { self.nativeAdExecutor.destroyFeed(call) }
397
+ }
398
+
399
+ @objc func loadNativeAd(_ call: CAPPluginCall) {
400
+ let request = GADRequestWithOption(call.getBool("npa") ?? false)
401
+ DispatchQueue.main.async {
402
+ self.nativeAdExecutor.load(call, request: request)
403
+ }
404
+ }
405
+
406
+ @objc func updateNativeAdPlacements(_ call: CAPPluginCall) {
407
+ DispatchQueue.main.async { self.nativeAdExecutor.updatePlacements(call) }
408
+ }
409
+
410
+ @objc func removeNativeAd(_ call: CAPPluginCall) {
411
+ DispatchQueue.main.async { self.nativeAdExecutor.remove(call) }
412
+ }
413
+ }