@javascriptcommon/react-native-google-mobile-ads 16.3.3
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.
- package/LICENSE +32 -0
- package/README.md +181 -0
- package/RNGoogleMobileAds.podspec +74 -0
- package/__tests__/banner.test.tsx +53 -0
- package/__tests__/consent.test.ts +33 -0
- package/__tests__/googleMobileAds.test.ts +108 -0
- package/__tests__/interstitial.test.ts +140 -0
- package/__tests__/nativeEventEmitter.test.ts +72 -0
- package/__tests__/requestOptions.test.tsx +82 -0
- package/__tests__/rewarded.test.tsx +4 -0
- package/__tests__/showOptions.test.tsx +4 -0
- package/android/.editorconfig +10 -0
- package/android/app-json.gradle +69 -0
- package/android/build.gradle +149 -0
- package/android/lint.xml +5 -0
- package/android/settings.gradle +1 -0
- package/android/src/main/AndroidManifest.xml +23 -0
- package/android/src/main/java/io/invertase/googlemobileads/OnNativeEvent.kt +23 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeAppModule.java +152 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsAppOpenModule.kt +92 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsBannerAdViewManager.java +303 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsCommon.java +277 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsConsentModule.java +293 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsEvent.java +76 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsFullScreenAdModule.kt +201 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsInterstitialModule.kt +92 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsMediaViewManager.java +79 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsModule.kt +178 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsNativeAdViewManager.java +164 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsNativeModule.kt +172 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsPackage.kt +113 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsRewardedInterstitialModule.kt +127 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsRewardedModule.kt +121 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/RCTConvert.java +111 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeAdView.java +128 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeApp.java +34 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeEvent.java +41 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeEventEmitter.java +150 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeInitProvider.java +77 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeJSON.java +107 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeMeta.java +92 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeModule.java +96 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativePreferences.java +86 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/SharedUtils.java +429 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/TaskExecutorService.java +124 -0
- package/android/src/main/java/io/invertase/googlemobileads/interfaces/ContextProvider.java +30 -0
- package/android/src/main/java/io/invertase/googlemobileads/interfaces/NativeError.java +28 -0
- package/android/src/main/java/io/invertase/googlemobileads/interfaces/NativeEvent.java +26 -0
- package/android/src/oldarch/com/facebook/react/viewmanagers/RNGoogleMobileAdsMediaViewManagerDelegate.java +32 -0
- package/android/src/oldarch/com/facebook/react/viewmanagers/RNGoogleMobileAdsMediaViewManagerInterface.java +10 -0
- package/android/src/oldarch/com/facebook/react/viewmanagers/RNGoogleMobileAdsNativeViewManagerDelegate.java +36 -0
- package/android/src/oldarch/com/facebook/react/viewmanagers/RNGoogleMobileAdsNativeViewManagerInterface.java +10 -0
- package/android/src/oldarch/io/invertase/googlemobileads/NativeGoogleMobileAdsNativeModuleSpec.kt +18 -0
- package/app.plugin.js +1 -0
- package/babel.config.js +8 -0
- package/docs/ad-inspector.mdx +47 -0
- package/docs/common-reasons-for-ads-not-showing.mdx +111 -0
- package/docs/displaying-ads-hook.mdx +103 -0
- package/docs/displaying-ads.mdx +512 -0
- package/docs/european-user-consent.mdx +315 -0
- package/docs/img/logo_admob_192px.svg +19 -0
- package/docs/impression-level-ad-revenue.mdx +41 -0
- package/docs/index.mdx +508 -0
- package/docs/mediation.mdx +323 -0
- package/docs/migrating-to-v15.mdx +7 -0
- package/docs/migrating-to-v5.mdx +63 -0
- package/docs/migrating-to-v6.mdx +111 -0
- package/docs/native-ads.mdx +385 -0
- package/docs/testing.mdx +17 -0
- package/docs/video-ad_volume-control.mdx +49 -0
- package/docs.json +36 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAds-Bridging-Header.h +5 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsAppOpenModule.h +36 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsAppOpenModule.mm +104 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerComponent.h +44 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerComponent.m +221 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerView.h +34 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerView.mm +282 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerViewManager.mm +87 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsCommon.h +72 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsCommon.mm +248 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsConsentModule.h +36 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsConsentModule.mm +356 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenAd.h +53 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenAd.mm +220 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenContentDelegate.h +36 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenContentDelegate.mm +80 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsInterstitialModule.h +36 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsInterstitialModule.mm +106 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsMediaView.h +52 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsMediaView.mm +155 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.h +32 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.mm +180 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsNativeModule.h +35 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsNativeModule.mm +321 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsNativeView.h +51 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsNativeView.mm +251 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedInterstitialModule.h +37 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedInterstitialModule.mm +106 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.h +36 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.mm +104 -0
- package/ios/RNGoogleMobileAds/common/RNAppModule.h +24 -0
- package/ios/RNGoogleMobileAds/common/RNAppModule.mm +95 -0
- package/ios/RNGoogleMobileAds/common/RNRCTEventEmitter.h +73 -0
- package/ios/RNGoogleMobileAds/common/RNRCTEventEmitter.mm +150 -0
- package/ios/RNGoogleMobileAds/common/RNSharedUtils.h +43 -0
- package/ios/RNGoogleMobileAds/common/RNSharedUtils.mm +34 -0
- package/ios/RNGoogleMobileAds.xcodeproj/project.pbxproj +377 -0
- package/ios/RNGoogleMobileAds.xcodeproj/xcshareddata/IDETemplateMacros.plist +24 -0
- package/ios_config.sh +192 -0
- package/jest.config.js +7 -0
- package/jest.setup.ts +92 -0
- package/lib/commonjs/AdEventType.js +72 -0
- package/lib/commonjs/AdEventType.js.map +1 -0
- package/lib/commonjs/AdsConsent.js +117 -0
- package/lib/commonjs/AdsConsent.js.map +1 -0
- package/lib/commonjs/AdsConsentPurposes.js +180 -0
- package/lib/commonjs/AdsConsentPurposes.js.map +1 -0
- package/lib/commonjs/AdsConsentSpecialFeatures.js +54 -0
- package/lib/commonjs/AdsConsentSpecialFeatures.js.map +1 -0
- package/lib/commonjs/BannerAdSize.js +75 -0
- package/lib/commonjs/BannerAdSize.js.map +1 -0
- package/lib/commonjs/GAMAdEventType.js +44 -0
- package/lib/commonjs/GAMAdEventType.js.map +1 -0
- package/lib/commonjs/MaxAdContentRating.js +42 -0
- package/lib/commonjs/MaxAdContentRating.js.map +1 -0
- package/lib/commonjs/MobileAds.js +63 -0
- package/lib/commonjs/MobileAds.js.map +1 -0
- package/lib/commonjs/NativeAdEventType.js +50 -0
- package/lib/commonjs/NativeAdEventType.js.map +1 -0
- package/lib/commonjs/RewardedAdEventType.js +66 -0
- package/lib/commonjs/RewardedAdEventType.js.map +1 -0
- package/lib/commonjs/TestIds.js +66 -0
- package/lib/commonjs/TestIds.js.map +1 -0
- package/lib/commonjs/ads/AppOpenAd.js +54 -0
- package/lib/commonjs/ads/AppOpenAd.js.map +1 -0
- package/lib/commonjs/ads/BannerAd.js +45 -0
- package/lib/commonjs/ads/BannerAd.js.map +1 -0
- package/lib/commonjs/ads/BaseAd.js +155 -0
- package/lib/commonjs/ads/BaseAd.js.map +1 -0
- package/lib/commonjs/ads/GAMBannerAd.js +49 -0
- package/lib/commonjs/ads/GAMBannerAd.js.map +1 -0
- package/lib/commonjs/ads/GAMInterstitialAd.js +42 -0
- package/lib/commonjs/ads/GAMInterstitialAd.js.map +1 -0
- package/lib/commonjs/ads/InterstitialAd.js +115 -0
- package/lib/commonjs/ads/InterstitialAd.js.map +1 -0
- package/lib/commonjs/ads/MobileAd.js +153 -0
- package/lib/commonjs/ads/MobileAd.js.map +1 -0
- package/lib/commonjs/ads/RewardedAd.js +128 -0
- package/lib/commonjs/ads/RewardedAd.js.map +1 -0
- package/lib/commonjs/ads/RewardedInterstitialAd.js +128 -0
- package/lib/commonjs/ads/RewardedInterstitialAd.js.map +1 -0
- package/lib/commonjs/ads/native-ad/NativeAd.js +123 -0
- package/lib/commonjs/ads/native-ad/NativeAd.js.map +1 -0
- package/lib/commonjs/ads/native-ad/NativeAdContext.js +26 -0
- package/lib/commonjs/ads/native-ad/NativeAdContext.js.map +1 -0
- package/lib/commonjs/ads/native-ad/NativeAdView.js +52 -0
- package/lib/commonjs/ads/native-ad/NativeAdView.js.map +1 -0
- package/lib/commonjs/ads/native-ad/NativeAsset.js +70 -0
- package/lib/commonjs/ads/native-ad/NativeAsset.js.map +1 -0
- package/lib/commonjs/ads/native-ad/NativeMediaView.js +61 -0
- package/lib/commonjs/ads/native-ad/NativeMediaView.js.map +1 -0
- package/lib/commonjs/common/constants.js +17 -0
- package/lib/commonjs/common/constants.js.map +1 -0
- package/lib/commonjs/common/debounce.js +18 -0
- package/lib/commonjs/common/debounce.js.map +1 -0
- package/lib/commonjs/common/index.js +47 -0
- package/lib/commonjs/common/index.js.map +1 -0
- package/lib/commonjs/common/ref.js +46 -0
- package/lib/commonjs/common/ref.js.map +1 -0
- package/lib/commonjs/common/validate.js +132 -0
- package/lib/commonjs/common/validate.js.map +1 -0
- package/lib/commonjs/declarations.d.js +2 -0
- package/lib/commonjs/declarations.d.js.map +1 -0
- package/lib/commonjs/hooks/useAppOpenAd.js +44 -0
- package/lib/commonjs/hooks/useAppOpenAd.js.map +1 -0
- package/lib/commonjs/hooks/useForeground.js +45 -0
- package/lib/commonjs/hooks/useForeground.js.map +1 -0
- package/lib/commonjs/hooks/useFullScreenAd.js +121 -0
- package/lib/commonjs/hooks/useFullScreenAd.js.map +1 -0
- package/lib/commonjs/hooks/useInterstitialAd.js +44 -0
- package/lib/commonjs/hooks/useInterstitialAd.js.map +1 -0
- package/lib/commonjs/hooks/useRewardedAd.js +44 -0
- package/lib/commonjs/hooks/useRewardedAd.js.map +1 -0
- package/lib/commonjs/hooks/useRewardedInterstitialAd.js +44 -0
- package/lib/commonjs/hooks/useRewardedInterstitialAd.js.map +1 -0
- package/lib/commonjs/index.js +337 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/internal/GoogleMobileAdsNativeEventEmitter.js +54 -0
- package/lib/commonjs/internal/GoogleMobileAdsNativeEventEmitter.js.map +1 -0
- package/lib/commonjs/internal/NativeError.js +53 -0
- package/lib/commonjs/internal/NativeError.js.map +1 -0
- package/lib/commonjs/internal/SharedEventEmitter.js +27 -0
- package/lib/commonjs/internal/SharedEventEmitter.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/specs/components/GoogleMobileAdsBannerViewNativeComponent.ts +62 -0
- package/lib/commonjs/specs/components/GoogleMobileAdsMediaViewNativeComponent.ts +30 -0
- package/lib/commonjs/specs/components/GoogleMobileAdsNativeViewNativeComponent.ts +45 -0
- package/lib/commonjs/specs/modules/NativeAppModule.js +24 -0
- package/lib/commonjs/specs/modules/NativeAppModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeAppOpenModule.js +25 -0
- package/lib/commonjs/specs/modules/NativeAppOpenModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeConsentModule.js +105 -0
- package/lib/commonjs/specs/modules/NativeConsentModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeGoogleMobileAdsModule.js +25 -0
- package/lib/commonjs/specs/modules/NativeGoogleMobileAdsModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeGoogleMobileAdsNativeModule.js +25 -0
- package/lib/commonjs/specs/modules/NativeGoogleMobileAdsNativeModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeInterstitialModule.js +25 -0
- package/lib/commonjs/specs/modules/NativeInterstitialModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeRewardedInterstitialModule.js +25 -0
- package/lib/commonjs/specs/modules/NativeRewardedInterstitialModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeRewardedModule.js +25 -0
- package/lib/commonjs/specs/modules/NativeRewardedModule.js.map +1 -0
- package/lib/commonjs/types/AdEventListener.js +6 -0
- package/lib/commonjs/types/AdEventListener.js.map +1 -0
- package/lib/commonjs/types/AdEventsListener.js +6 -0
- package/lib/commonjs/types/AdEventsListener.js.map +1 -0
- package/lib/commonjs/types/AdShowOptions.js +2 -0
- package/lib/commonjs/types/AdShowOptions.js.map +1 -0
- package/lib/commonjs/types/AdStates.js +6 -0
- package/lib/commonjs/types/AdStates.js.map +1 -0
- package/lib/commonjs/types/AdapterStatus.js +21 -0
- package/lib/commonjs/types/AdapterStatus.js.map +1 -0
- package/lib/commonjs/types/AppEvent.js +2 -0
- package/lib/commonjs/types/AppEvent.js.map +1 -0
- package/lib/commonjs/types/BannerAdProps.js +6 -0
- package/lib/commonjs/types/BannerAdProps.js.map +1 -0
- package/lib/commonjs/types/MobileAd.interface.js +6 -0
- package/lib/commonjs/types/MobileAd.interface.js.map +1 -0
- package/lib/commonjs/types/MobileAdsModule.interface.js +6 -0
- package/lib/commonjs/types/MobileAdsModule.interface.js.map +1 -0
- package/lib/commonjs/types/NativeAdRequestOptions.js +37 -0
- package/lib/commonjs/types/NativeAdRequestOptions.js.map +1 -0
- package/lib/commonjs/types/PaidEventListener.js +6 -0
- package/lib/commonjs/types/PaidEventListener.js.map +1 -0
- package/lib/commonjs/types/RequestConfiguration.js +6 -0
- package/lib/commonjs/types/RequestConfiguration.js.map +1 -0
- package/lib/commonjs/types/RequestOptions.js +2 -0
- package/lib/commonjs/types/RequestOptions.js.map +1 -0
- package/lib/commonjs/types/RewardedAdReward.js +2 -0
- package/lib/commonjs/types/RewardedAdReward.js.map +1 -0
- package/lib/commonjs/types/index.js +138 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/validateAdRequestConfiguration.js +57 -0
- package/lib/commonjs/validateAdRequestConfiguration.js.map +1 -0
- package/lib/commonjs/validateAdRequestOptions.js +121 -0
- package/lib/commonjs/validateAdRequestOptions.js.map +1 -0
- package/lib/commonjs/validateAdShowOptions.js +41 -0
- package/lib/commonjs/validateAdShowOptions.js.map +1 -0
- package/lib/commonjs/validateNativeAdRequestOptions.js +51 -0
- package/lib/commonjs/validateNativeAdRequestOptions.js.map +1 -0
- package/lib/commonjs/version.js +9 -0
- package/lib/commonjs/version.js.map +1 -0
- package/lib/module/AdEventType.js +69 -0
- package/lib/module/AdEventType.js.map +1 -0
- package/lib/module/AdsConsent.js +113 -0
- package/lib/module/AdsConsent.js.map +1 -0
- package/lib/module/AdsConsentPurposes.js +177 -0
- package/lib/module/AdsConsentPurposes.js.map +1 -0
- package/lib/module/AdsConsentSpecialFeatures.js +51 -0
- package/lib/module/AdsConsentSpecialFeatures.js.map +1 -0
- package/lib/module/BannerAdSize.js +72 -0
- package/lib/module/BannerAdSize.js.map +1 -0
- package/lib/module/GAMAdEventType.js +41 -0
- package/lib/module/GAMAdEventType.js.map +1 -0
- package/lib/module/MaxAdContentRating.js +39 -0
- package/lib/module/MaxAdContentRating.js.map +1 -0
- package/lib/module/MobileAds.js +57 -0
- package/lib/module/MobileAds.js.map +1 -0
- package/lib/module/NativeAdEventType.js +46 -0
- package/lib/module/NativeAdEventType.js.map +1 -0
- package/lib/module/RewardedAdEventType.js +63 -0
- package/lib/module/RewardedAdEventType.js.map +1 -0
- package/lib/module/TestIds.js +62 -0
- package/lib/module/TestIds.js.map +1 -0
- package/lib/module/ads/AppOpenAd.js +48 -0
- package/lib/module/ads/AppOpenAd.js.map +1 -0
- package/lib/module/ads/BannerAd.js +39 -0
- package/lib/module/ads/BannerAd.js.map +1 -0
- package/lib/module/ads/BaseAd.js +149 -0
- package/lib/module/ads/BaseAd.js.map +1 -0
- package/lib/module/ads/GAMBannerAd.js +43 -0
- package/lib/module/ads/GAMBannerAd.js.map +1 -0
- package/lib/module/ads/GAMInterstitialAd.js +37 -0
- package/lib/module/ads/GAMInterstitialAd.js.map +1 -0
- package/lib/module/ads/InterstitialAd.js +110 -0
- package/lib/module/ads/InterstitialAd.js.map +1 -0
- package/lib/module/ads/MobileAd.js +148 -0
- package/lib/module/ads/MobileAd.js.map +1 -0
- package/lib/module/ads/RewardedAd.js +123 -0
- package/lib/module/ads/RewardedAd.js.map +1 -0
- package/lib/module/ads/RewardedInterstitialAd.js +123 -0
- package/lib/module/ads/RewardedInterstitialAd.js.map +1 -0
- package/lib/module/ads/native-ad/NativeAd.js +117 -0
- package/lib/module/ads/native-ad/NativeAd.js.map +1 -0
- package/lib/module/ads/native-ad/NativeAdContext.js +22 -0
- package/lib/module/ads/native-ad/NativeAdContext.js.map +1 -0
- package/lib/module/ads/native-ad/NativeAdView.js +45 -0
- package/lib/module/ads/native-ad/NativeAdView.js.map +1 -0
- package/lib/module/ads/native-ad/NativeAsset.js +65 -0
- package/lib/module/ads/native-ad/NativeAsset.js.map +1 -0
- package/lib/module/ads/native-ad/NativeMediaView.js +54 -0
- package/lib/module/ads/native-ad/NativeMediaView.js.map +1 -0
- package/lib/module/common/constants.js +13 -0
- package/lib/module/common/constants.js.map +1 -0
- package/lib/module/common/debounce.js +13 -0
- package/lib/module/common/debounce.js.map +1 -0
- package/lib/module/common/index.js +28 -0
- package/lib/module/common/index.js.map +1 -0
- package/lib/module/common/ref.js +41 -0
- package/lib/module/common/ref.js.map +1 -0
- package/lib/module/common/validate.js +119 -0
- package/lib/module/common/validate.js.map +1 -0
- package/lib/module/declarations.d.js +2 -0
- package/lib/module/declarations.d.js.map +1 -0
- package/lib/module/hooks/useAppOpenAd.js +40 -0
- package/lib/module/hooks/useAppOpenAd.js.map +1 -0
- package/lib/module/hooks/useForeground.js +42 -0
- package/lib/module/hooks/useForeground.js.map +1 -0
- package/lib/module/hooks/useFullScreenAd.js +117 -0
- package/lib/module/hooks/useFullScreenAd.js.map +1 -0
- package/lib/module/hooks/useInterstitialAd.js +40 -0
- package/lib/module/hooks/useInterstitialAd.js.map +1 -0
- package/lib/module/hooks/useRewardedAd.js +40 -0
- package/lib/module/hooks/useRewardedAd.js.map +1 -0
- package/lib/module/hooks/useRewardedInterstitialAd.js +40 -0
- package/lib/module/hooks/useRewardedInterstitialAd.js.map +1 -0
- package/lib/module/index.js +54 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/GoogleMobileAdsNativeEventEmitter.js +49 -0
- package/lib/module/internal/GoogleMobileAdsNativeEventEmitter.js.map +1 -0
- package/lib/module/internal/NativeError.js +48 -0
- package/lib/module/internal/NativeError.js.map +1 -0
- package/lib/module/internal/SharedEventEmitter.js +22 -0
- package/lib/module/internal/SharedEventEmitter.js.map +1 -0
- package/lib/module/specs/components/GoogleMobileAdsBannerViewNativeComponent.ts +62 -0
- package/lib/module/specs/components/GoogleMobileAdsMediaViewNativeComponent.ts +30 -0
- package/lib/module/specs/components/GoogleMobileAdsNativeViewNativeComponent.ts +45 -0
- package/lib/module/specs/modules/NativeAppModule.js +21 -0
- package/lib/module/specs/modules/NativeAppModule.js.map +1 -0
- package/lib/module/specs/modules/NativeAppOpenModule.js +22 -0
- package/lib/module/specs/modules/NativeAppOpenModule.js.map +1 -0
- package/lib/module/specs/modules/NativeConsentModule.js +108 -0
- package/lib/module/specs/modules/NativeConsentModule.js.map +1 -0
- package/lib/module/specs/modules/NativeGoogleMobileAdsModule.js +22 -0
- package/lib/module/specs/modules/NativeGoogleMobileAdsModule.js.map +1 -0
- package/lib/module/specs/modules/NativeGoogleMobileAdsNativeModule.js +22 -0
- package/lib/module/specs/modules/NativeGoogleMobileAdsNativeModule.js.map +1 -0
- package/lib/module/specs/modules/NativeInterstitialModule.js +22 -0
- package/lib/module/specs/modules/NativeInterstitialModule.js.map +1 -0
- package/lib/module/specs/modules/NativeRewardedInterstitialModule.js +22 -0
- package/lib/module/specs/modules/NativeRewardedInterstitialModule.js.map +1 -0
- package/lib/module/specs/modules/NativeRewardedModule.js +22 -0
- package/lib/module/specs/modules/NativeRewardedModule.js.map +1 -0
- package/lib/module/types/AdEventListener.js +4 -0
- package/lib/module/types/AdEventListener.js.map +1 -0
- package/lib/module/types/AdEventsListener.js +4 -0
- package/lib/module/types/AdEventsListener.js.map +1 -0
- package/lib/module/types/AdShowOptions.js +2 -0
- package/lib/module/types/AdShowOptions.js.map +1 -0
- package/lib/module/types/AdStates.js +4 -0
- package/lib/module/types/AdStates.js.map +1 -0
- package/lib/module/types/AdapterStatus.js +18 -0
- package/lib/module/types/AdapterStatus.js.map +1 -0
- package/lib/module/types/AppEvent.js +2 -0
- package/lib/module/types/AppEvent.js.map +1 -0
- package/lib/module/types/BannerAdProps.js +4 -0
- package/lib/module/types/BannerAdProps.js.map +1 -0
- package/lib/module/types/MobileAd.interface.js +4 -0
- package/lib/module/types/MobileAd.interface.js.map +1 -0
- package/lib/module/types/MobileAdsModule.interface.js +4 -0
- package/lib/module/types/MobileAdsModule.interface.js.map +1 -0
- package/lib/module/types/NativeAdRequestOptions.js +34 -0
- package/lib/module/types/NativeAdRequestOptions.js.map +1 -0
- package/lib/module/types/PaidEventListener.js +4 -0
- package/lib/module/types/PaidEventListener.js.map +1 -0
- package/lib/module/types/RequestConfiguration.js +4 -0
- package/lib/module/types/RequestConfiguration.js.map +1 -0
- package/lib/module/types/RequestOptions.js +2 -0
- package/lib/module/types/RequestOptions.js.map +1 -0
- package/lib/module/types/RewardedAdReward.js +2 -0
- package/lib/module/types/RewardedAdReward.js.map +1 -0
- package/lib/module/types/index.js +32 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/validateAdRequestConfiguration.js +53 -0
- package/lib/module/validateAdRequestConfiguration.js.map +1 -0
- package/lib/module/validateAdRequestOptions.js +117 -0
- package/lib/module/validateAdRequestOptions.js.map +1 -0
- package/lib/module/validateAdShowOptions.js +37 -0
- package/lib/module/validateAdShowOptions.js.map +1 -0
- package/lib/module/validateNativeAdRequestOptions.js +47 -0
- package/lib/module/validateNativeAdRequestOptions.js.map +1 -0
- package/lib/module/version.js +5 -0
- package/lib/module/version.js.map +1 -0
- package/lib/typescript/AdEventType.d.ts +49 -0
- package/lib/typescript/AdEventType.d.ts.map +1 -0
- package/lib/typescript/AdsConsent.d.ts +3 -0
- package/lib/typescript/AdsConsent.d.ts.map +1 -0
- package/lib/typescript/AdsConsentPurposes.d.ts +149 -0
- package/lib/typescript/AdsConsentPurposes.d.ts.map +1 -0
- package/lib/typescript/AdsConsentSpecialFeatures.d.ts +23 -0
- package/lib/typescript/AdsConsentSpecialFeatures.d.ts.map +1 -0
- package/lib/typescript/BannerAdSize.d.ts +91 -0
- package/lib/typescript/BannerAdSize.d.ts.map +1 -0
- package/lib/typescript/GAMAdEventType.d.ts +21 -0
- package/lib/typescript/GAMAdEventType.d.ts.map +1 -0
- package/lib/typescript/MaxAdContentRating.d.ts +19 -0
- package/lib/typescript/MaxAdContentRating.d.ts.map +1 -0
- package/lib/typescript/MobileAds.d.ts +15 -0
- package/lib/typescript/MobileAds.d.ts.map +1 -0
- package/lib/typescript/NativeAdEventType.d.ts +43 -0
- package/lib/typescript/NativeAdEventType.d.ts.map +1 -0
- package/lib/typescript/RewardedAdEventType.d.ts +43 -0
- package/lib/typescript/RewardedAdEventType.d.ts.map +1 -0
- package/lib/typescript/TestIds.d.ts +19 -0
- package/lib/typescript/TestIds.d.ts.map +1 -0
- package/lib/typescript/ads/AppOpenAd.d.ts +12 -0
- package/lib/typescript/ads/AppOpenAd.d.ts.map +1 -0
- package/lib/typescript/ads/BannerAd.d.ts +8 -0
- package/lib/typescript/ads/BannerAd.d.ts.map +1 -0
- package/lib/typescript/ads/BaseAd.d.ts +4 -0
- package/lib/typescript/ads/BaseAd.d.ts.map +1 -0
- package/lib/typescript/ads/GAMBannerAd.d.ts +9 -0
- package/lib/typescript/ads/GAMBannerAd.d.ts.map +1 -0
- package/lib/typescript/ads/GAMInterstitialAd.d.ts +34 -0
- package/lib/typescript/ads/GAMInterstitialAd.d.ts.map +1 -0
- package/lib/typescript/ads/InterstitialAd.d.ts +73 -0
- package/lib/typescript/ads/InterstitialAd.d.ts.map +1 -0
- package/lib/typescript/ads/MobileAd.d.ts +54 -0
- package/lib/typescript/ads/MobileAd.d.ts.map +1 -0
- package/lib/typescript/ads/RewardedAd.d.ts +83 -0
- package/lib/typescript/ads/RewardedAd.d.ts.map +1 -0
- package/lib/typescript/ads/RewardedInterstitialAd.d.ts +83 -0
- package/lib/typescript/ads/RewardedInterstitialAd.d.ts.map +1 -0
- package/lib/typescript/ads/native-ad/NativeAd.d.ts +48 -0
- package/lib/typescript/ads/native-ad/NativeAd.d.ts.map +1 -0
- package/lib/typescript/ads/native-ad/NativeAdContext.d.ts +10 -0
- package/lib/typescript/ads/native-ad/NativeAdContext.d.ts.map +1 -0
- package/lib/typescript/ads/native-ad/NativeAdView.d.ts +8 -0
- package/lib/typescript/ads/native-ad/NativeAdView.d.ts.map +1 -0
- package/lib/typescript/ads/native-ad/NativeAsset.d.ts +18 -0
- package/lib/typescript/ads/native-ad/NativeAsset.d.ts.map +1 -0
- package/lib/typescript/ads/native-ad/NativeMediaView.d.ts +7 -0
- package/lib/typescript/ads/native-ad/NativeMediaView.d.ts.map +1 -0
- package/lib/typescript/common/constants.d.ts +7 -0
- package/lib/typescript/common/constants.d.ts.map +1 -0
- package/lib/typescript/common/debounce.d.ts +2 -0
- package/lib/typescript/common/debounce.d.ts.map +1 -0
- package/lib/typescript/common/index.d.ts +4 -0
- package/lib/typescript/common/index.d.ts.map +1 -0
- package/lib/typescript/common/ref.d.ts +13 -0
- package/lib/typescript/common/ref.d.ts.map +1 -0
- package/lib/typescript/common/validate.d.ts +62 -0
- package/lib/typescript/common/validate.d.ts.map +1 -0
- package/lib/typescript/hooks/useAppOpenAd.d.ts +10 -0
- package/lib/typescript/hooks/useAppOpenAd.d.ts.map +1 -0
- package/lib/typescript/hooks/useForeground.d.ts +7 -0
- package/lib/typescript/hooks/useForeground.d.ts.map +1 -0
- package/lib/typescript/hooks/useFullScreenAd.d.ts +7 -0
- package/lib/typescript/hooks/useFullScreenAd.d.ts.map +1 -0
- package/lib/typescript/hooks/useInterstitialAd.d.ts +10 -0
- package/lib/typescript/hooks/useInterstitialAd.d.ts.map +1 -0
- package/lib/typescript/hooks/useRewardedAd.d.ts +10 -0
- package/lib/typescript/hooks/useRewardedAd.d.ts.map +1 -0
- package/lib/typescript/hooks/useRewardedInterstitialAd.d.ts +10 -0
- package/lib/typescript/hooks/useRewardedInterstitialAd.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +32 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/internal/GoogleMobileAdsNativeEventEmitter.d.ts +13 -0
- package/lib/typescript/internal/GoogleMobileAdsNativeEventEmitter.d.ts.map +1 -0
- package/lib/typescript/internal/NativeError.d.ts +27 -0
- package/lib/typescript/internal/NativeError.d.ts.map +1 -0
- package/lib/typescript/internal/SharedEventEmitter.d.ts +3 -0
- package/lib/typescript/internal/SharedEventEmitter.d.ts.map +1 -0
- package/lib/typescript/specs/components/GoogleMobileAdsBannerViewNativeComponent.d.ts +35 -0
- package/lib/typescript/specs/components/GoogleMobileAdsBannerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/specs/components/GoogleMobileAdsMediaViewNativeComponent.d.ts +9 -0
- package/lib/typescript/specs/components/GoogleMobileAdsMediaViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/specs/components/GoogleMobileAdsNativeViewNativeComponent.d.ts +14 -0
- package/lib/typescript/specs/components/GoogleMobileAdsNativeViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeAppModule.d.ts +23 -0
- package/lib/typescript/specs/modules/NativeAppModule.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeAppOpenModule.d.ts +25 -0
- package/lib/typescript/specs/modules/NativeAppOpenModule.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeConsentModule.d.ts +498 -0
- package/lib/typescript/specs/modules/NativeConsentModule.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeGoogleMobileAdsModule.d.ts +14 -0
- package/lib/typescript/specs/modules/NativeGoogleMobileAdsModule.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeGoogleMobileAdsNativeModule.d.ts +42 -0
- package/lib/typescript/specs/modules/NativeGoogleMobileAdsNativeModule.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeInterstitialModule.d.ts +25 -0
- package/lib/typescript/specs/modules/NativeInterstitialModule.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeRewardedInterstitialModule.d.ts +25 -0
- package/lib/typescript/specs/modules/NativeRewardedInterstitialModule.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeRewardedModule.d.ts +25 -0
- package/lib/typescript/specs/modules/NativeRewardedModule.d.ts.map +1 -0
- package/lib/typescript/types/AdEventListener.d.ts +8 -0
- package/lib/typescript/types/AdEventListener.d.ts.map +1 -0
- package/lib/typescript/types/AdEventsListener.d.ts +9 -0
- package/lib/typescript/types/AdEventsListener.d.ts.map +1 -0
- package/lib/typescript/types/AdShowOptions.d.ts +13 -0
- package/lib/typescript/types/AdShowOptions.d.ts.map +1 -0
- package/lib/typescript/types/AdStates.d.ts +91 -0
- package/lib/typescript/types/AdStates.d.ts.map +1 -0
- package/lib/typescript/types/AdapterStatus.d.ts +19 -0
- package/lib/typescript/types/AdapterStatus.d.ts.map +1 -0
- package/lib/typescript/types/AppEvent.d.ts +14 -0
- package/lib/typescript/types/AppEvent.d.ts.map +1 -0
- package/lib/typescript/types/BannerAdProps.d.ts +175 -0
- package/lib/typescript/types/BannerAdProps.d.ts.map +1 -0
- package/lib/typescript/types/MobileAd.interface.d.ts +90 -0
- package/lib/typescript/types/MobileAd.interface.d.ts.map +1 -0
- package/lib/typescript/types/MobileAdsModule.interface.d.ts +75 -0
- package/lib/typescript/types/MobileAdsModule.interface.d.ts.map +1 -0
- package/lib/typescript/types/NativeAdRequestOptions.d.ts +36 -0
- package/lib/typescript/types/NativeAdRequestOptions.d.ts.map +1 -0
- package/lib/typescript/types/PaidEventListener.d.ts +8 -0
- package/lib/typescript/types/PaidEventListener.d.ts.map +1 -0
- package/lib/typescript/types/RequestConfiguration.d.ts +37 -0
- package/lib/typescript/types/RequestConfiguration.d.ts.map +1 -0
- package/lib/typescript/types/RequestOptions.d.ts +133 -0
- package/lib/typescript/types/RequestOptions.d.ts.map +1 -0
- package/lib/typescript/types/RewardedAdReward.d.ts +14 -0
- package/lib/typescript/types/RewardedAdReward.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +13 -0
- package/lib/typescript/types/index.d.ts.map +1 -0
- package/lib/typescript/validateAdRequestConfiguration.d.ts +3 -0
- package/lib/typescript/validateAdRequestConfiguration.d.ts.map +1 -0
- package/lib/typescript/validateAdRequestOptions.d.ts +3 -0
- package/lib/typescript/validateAdRequestOptions.d.ts.map +1 -0
- package/lib/typescript/validateAdShowOptions.d.ts +3 -0
- package/lib/typescript/validateAdShowOptions.d.ts.map +1 -0
- package/lib/typescript/validateNativeAdRequestOptions.d.ts +3 -0
- package/lib/typescript/validateNativeAdRequestOptions.d.ts.map +1 -0
- package/lib/typescript/version.d.ts +2 -0
- package/lib/typescript/version.d.ts.map +1 -0
- package/package.json +176 -0
- package/plugin/__tests__/__snapshots__/plugin.test.ts.snap +739 -0
- package/plugin/__tests__/fixtures/app.config.js +24 -0
- package/plugin/__tests__/fixtures/app.config.ts +24 -0
- package/plugin/__tests__/fixtures/app.json +24 -0
- package/plugin/__tests__/fixtures/package.json +19 -0
- package/plugin/__tests__/fixtures/without-params/app.config.js +11 -0
- package/plugin/__tests__/fixtures/without-params/app.config.ts +11 -0
- package/plugin/__tests__/fixtures/without-params/app.json +11 -0
- package/plugin/__tests__/plugin.test.ts +115 -0
- package/plugin/build/index.d.ts +12 -0
- package/plugin/build/index.js +109 -0
- package/plugin/jest.config.js +1 -0
- package/plugin/src/index.ts +205 -0
- package/plugin/tsconfig.json +9 -0
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/react-native.config.js +19 -0
- package/src/AdEventType.ts +70 -0
- package/src/AdsConsent.ts +170 -0
- package/src/AdsConsentPurposes.ts +182 -0
- package/src/AdsConsentSpecialFeatures.ts +48 -0
- package/src/BannerAdSize.ts +78 -0
- package/src/GAMAdEventType.ts +37 -0
- package/src/MaxAdContentRating.ts +38 -0
- package/src/MobileAds.ts +77 -0
- package/src/NativeAdEventType.ts +51 -0
- package/src/RewardedAdEventType.ts +60 -0
- package/src/TestIds.ts +60 -0
- package/src/ads/AppOpenAd.ts +62 -0
- package/src/ads/BannerAd.tsx +37 -0
- package/src/ads/BaseAd.tsx +185 -0
- package/src/ads/GAMBannerAd.tsx +43 -0
- package/src/ads/GAMInterstitialAd.ts +45 -0
- package/src/ads/InterstitialAd.ts +122 -0
- package/src/ads/MobileAd.ts +227 -0
- package/src/ads/RewardedAd.ts +142 -0
- package/src/ads/RewardedInterstitialAd.ts +144 -0
- package/src/ads/native-ad/NativeAd.ts +159 -0
- package/src/ads/native-ad/NativeAdContext.ts +26 -0
- package/src/ads/native-ad/NativeAdView.tsx +43 -0
- package/src/ads/native-ad/NativeAsset.tsx +66 -0
- package/src/ads/native-ad/NativeMediaView.tsx +44 -0
- package/src/common/constants.ts +9 -0
- package/src/common/debounce.ts +15 -0
- package/src/common/index.ts +30 -0
- package/src/common/ref.ts +46 -0
- package/src/common/validate.ts +116 -0
- package/src/declarations.d.ts +3 -0
- package/src/hooks/useAppOpenAd.ts +46 -0
- package/src/hooks/useForeground.ts +41 -0
- package/src/hooks/useFullScreenAd.ts +112 -0
- package/src/hooks/useInterstitialAd.ts +46 -0
- package/src/hooks/useRewardedAd.ts +46 -0
- package/src/hooks/useRewardedInterstitialAd.ts +47 -0
- package/src/index.ts +60 -0
- package/src/internal/GoogleMobileAdsNativeEventEmitter.ts +58 -0
- package/src/internal/NativeError.ts +56 -0
- package/src/internal/SharedEventEmitter.ts +20 -0
- package/src/specs/components/GoogleMobileAdsBannerViewNativeComponent.ts +62 -0
- package/src/specs/components/GoogleMobileAdsMediaViewNativeComponent.ts +30 -0
- package/src/specs/components/GoogleMobileAdsNativeViewNativeComponent.ts +45 -0
- package/src/specs/modules/NativeAppModule.ts +57 -0
- package/src/specs/modules/NativeAppOpenModule.ts +26 -0
- package/src/specs/modules/NativeConsentModule.ts +532 -0
- package/src/specs/modules/NativeGoogleMobileAdsModule.ts +33 -0
- package/src/specs/modules/NativeGoogleMobileAdsNativeModule.ts +70 -0
- package/src/specs/modules/NativeInterstitialModule.ts +26 -0
- package/src/specs/modules/NativeRewardedInterstitialModule.ts +32 -0
- package/src/specs/modules/NativeRewardedModule.ts +26 -0
- package/src/types/AdEventListener.ts +34 -0
- package/src/types/AdEventsListener.ts +24 -0
- package/src/types/AdShowOptions.ts +12 -0
- package/src/types/AdStates.ts +92 -0
- package/src/types/AdapterStatus.ts +20 -0
- package/src/types/AppEvent.ts +14 -0
- package/src/types/BannerAdProps.ts +184 -0
- package/src/types/MobileAd.interface.ts +113 -0
- package/src/types/MobileAdsModule.interface.ts +80 -0
- package/src/types/NativeAdRequestOptions.ts +55 -0
- package/src/types/PaidEventListener.ts +9 -0
- package/src/types/RequestConfiguration.ts +40 -0
- package/src/types/RequestOptions.ts +137 -0
- package/src/types/RewardedAdReward.ts +14 -0
- package/src/types/index.ts +29 -0
- package/src/validateAdRequestConfiguration.ts +66 -0
- package/src/validateAdRequestOptions.ts +154 -0
- package/src/validateAdShowOptions.ts +41 -0
- package/src/validateNativeAdRequestOptions.ts +50 -0
- package/src/version.ts +2 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class NativeError extends Error {
|
|
2
|
+
namespace: string;
|
|
3
|
+
code: string;
|
|
4
|
+
message: string;
|
|
5
|
+
jsStack: string;
|
|
6
|
+
userInfo: {
|
|
7
|
+
code: string;
|
|
8
|
+
message: string;
|
|
9
|
+
};
|
|
10
|
+
static fromEvent(errorEvent: {
|
|
11
|
+
code: string;
|
|
12
|
+
message: string;
|
|
13
|
+
}, namespace: string, stack?: string): NativeError;
|
|
14
|
+
constructor(nativeError: {
|
|
15
|
+
userInfo: {
|
|
16
|
+
code: string;
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
}, jsStack: string, namespace: string);
|
|
20
|
+
/**
|
|
21
|
+
* Build a stack trace that includes JS stack prior to calling the native method.
|
|
22
|
+
*
|
|
23
|
+
* @returns {string}
|
|
24
|
+
*/
|
|
25
|
+
static getStackWithMessage(message: string, jsStack: string): string;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=NativeError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeError.d.ts","sourceRoot":"","sources":["../../../src/internal/NativeError.ts"],"names":[],"mappings":"AAiBA,qBAAa,WAAY,SAAQ,KAAK;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAE5C,MAAM,CAAC,SAAS,CACd,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAC7C,SAAS,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,MAAM;gBAMd,WAAW,EAAE;QAAE,QAAQ,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,EAC5D,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM;IAYnB;;;;OAIG;IACH,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAG5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SharedEventEmitter.d.ts","sourceRoot":"","sources":["../../../src/internal/SharedEventEmitter.ts"],"names":[],"mappings":"AAiBA,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAE9E,eAAO,MAAM,kBAAkB,EAAE,YAAiC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
3
|
+
import type { BubblingEventHandler, Float } from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
|
+
export type NativeEvent = {
|
|
5
|
+
type: string;
|
|
6
|
+
width?: Float;
|
|
7
|
+
height?: Float;
|
|
8
|
+
code?: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
data?: string;
|
|
12
|
+
currency?: string;
|
|
13
|
+
precision?: Float;
|
|
14
|
+
value?: Float;
|
|
15
|
+
};
|
|
16
|
+
export interface NativeProps extends ViewProps {
|
|
17
|
+
sizeConfig: {
|
|
18
|
+
sizes: string[];
|
|
19
|
+
maxHeight?: Float;
|
|
20
|
+
width?: Float;
|
|
21
|
+
};
|
|
22
|
+
unitId: string;
|
|
23
|
+
request: string;
|
|
24
|
+
manualImpressionsEnabled: boolean;
|
|
25
|
+
onNativeEvent: BubblingEventHandler<NativeEvent>;
|
|
26
|
+
}
|
|
27
|
+
export type ComponentType = HostComponent<NativeProps>;
|
|
28
|
+
interface NativeCommands {
|
|
29
|
+
recordManualImpression: (viewRef: React.ElementRef<ComponentType>) => void;
|
|
30
|
+
load: (viewRef: React.ElementRef<ComponentType>) => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const Commands: NativeCommands;
|
|
33
|
+
declare const _default: HostComponent<NativeProps>;
|
|
34
|
+
export default _default;
|
|
35
|
+
//# sourceMappingURL=GoogleMobileAdsBannerViewNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleMobileAdsBannerViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/components/GoogleMobileAdsBannerViewNativeComponent.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAI7F,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,EAAE,CAAC;QAAC,SAAS,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,wBAAwB,EAAE,OAAO,CAAC;IAClC,aAAa,EAAE,oBAAoB,CAAC,WAAW,CAAC,CAAC;CAClD;AAED,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAEvD,UAAU,cAAc;IAEtB,sBAAsB,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAE3E,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CAC1D;AAID,eAAO,MAAM,QAAQ,EAAE,cAErB,CAAC;wBAIE,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
export interface NativeProps extends ViewProps {
|
|
3
|
+
responseId: string;
|
|
4
|
+
resizeMode?: string;
|
|
5
|
+
}
|
|
6
|
+
type NativeViewComponentType = HostComponent<NativeProps>;
|
|
7
|
+
declare const _default: NativeViewComponentType;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=GoogleMobileAdsMediaViewNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleMobileAdsMediaViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/components/GoogleMobileAdsMediaViewNativeComponent.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG7D,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,KAAK,uBAAuB,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;wBAIrD,uBAAuB;AAF5B,wBAE6B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
3
|
+
import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
|
+
export interface NativeProps extends ViewProps {
|
|
5
|
+
responseId: string;
|
|
6
|
+
}
|
|
7
|
+
type NativeViewComponentType = HostComponent<NativeProps>;
|
|
8
|
+
interface NativeCommands {
|
|
9
|
+
registerAsset: (viewRef: React.ElementRef<NativeViewComponentType>, assetType: string, reactTag: Int32) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Commands: NativeCommands;
|
|
12
|
+
declare const _default: NativeViewComponentType;
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=GoogleMobileAdsNativeViewNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleMobileAdsNativeViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/components/GoogleMobileAdsNativeViewNativeComponent.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAEvE,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,uBAAuB,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAE1D,UAAU,cAAc;IACtB,aAAa,EAAE,CAEb,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,uBAAuB,CAAC,EAClD,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,KAAK,KACZ,IAAI,CAAC;CACX;AAED,eAAO,MAAM,QAAQ,EAAE,cAErB,CAAC;wBAIE,uBAAuB;AAF5B,wBAE6B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
|
2
|
+
import type { CodegenTypes } from 'react-native';
|
|
3
|
+
export interface Spec extends TurboModule {
|
|
4
|
+
initializeApp(options: CodegenTypes.UnsafeObject, appConfig: CodegenTypes.UnsafeObject): Promise<CodegenTypes.UnsafeObject>;
|
|
5
|
+
setAutomaticDataCollectionEnabled(appName: string, enabled: boolean): void;
|
|
6
|
+
deleteApp(appName: string): Promise<void>;
|
|
7
|
+
eventsNotifyReady(ready: boolean): void;
|
|
8
|
+
eventsGetListeners(): Promise<CodegenTypes.UnsafeObject>;
|
|
9
|
+
eventsPing(eventName: string, eventBody: CodegenTypes.UnsafeObject): Promise<CodegenTypes.UnsafeObject>;
|
|
10
|
+
eventsAddListener(eventName: string): void;
|
|
11
|
+
eventsRemoveListener(eventName: string, all: boolean): void;
|
|
12
|
+
addListener(eventName: string): void;
|
|
13
|
+
removeListeners(count: number): void;
|
|
14
|
+
metaGetAll(): Promise<CodegenTypes.UnsafeObject>;
|
|
15
|
+
jsonGetAll(): Promise<CodegenTypes.UnsafeObject>;
|
|
16
|
+
preferencesSetBool(key: string, value: boolean): Promise<void>;
|
|
17
|
+
preferencesSetString(key: string, value: string): Promise<void>;
|
|
18
|
+
preferencesGetAll(): Promise<CodegenTypes.UnsafeObject>;
|
|
19
|
+
preferencesClearAll(): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
declare const _default: Spec;
|
|
22
|
+
export default _default;
|
|
23
|
+
//# sourceMappingURL=NativeAppModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeAppModule.d.ts","sourceRoot":"","sources":["../../../../src/specs/modules/NativeAppModule.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,WAAW,IAAK,SAAQ,WAAW;IAEvC,aAAa,CACX,OAAO,EAAE,YAAY,CAAC,YAAY,EAClC,SAAS,EAAE,YAAY,CAAC,YAAY,GACnC,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IACtC,iCAAiC,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3E,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAG1C,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACxC,kBAAkB,IAAI,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IACzD,UAAU,CACR,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,YAAY,CAAC,YAAY,GACnC,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IACtC,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;IAG5D,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAGrC,UAAU,IAAI,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAGjD,UAAU,IAAI,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAGjD,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,iBAAiB,IAAI,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IACxD,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;;AAED,wBAAqE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this library except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
import { TurboModule } from 'react-native';
|
|
18
|
+
import { Double, UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
|
|
19
|
+
export interface Spec extends TurboModule {
|
|
20
|
+
appOpenLoad(requestId: Double, adUnitId: string, requestOptions: UnsafeObject): void;
|
|
21
|
+
appOpenShow(requestId: Double, adUnitId: string, showOptions?: UnsafeObject): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
declare const _default: Spec;
|
|
24
|
+
export default _default;
|
|
25
|
+
//# sourceMappingURL=NativeAppOpenModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeAppOpenModule.d.ts","sourceRoot":"","sources":["../../../../src/specs/modules/NativeAppOpenModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,WAAW,EAAuB,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAEjF,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,YAAY,GAAG,IAAI,CAAC;IACrF,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7F;;AAED,wBAAwF"}
|
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this library except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
import { TurboModule } from 'react-native';
|
|
18
|
+
import { TCModel } from '@iabtcf/core';
|
|
19
|
+
/**
|
|
20
|
+
* AdsConsentDebugGeography enum.
|
|
21
|
+
*
|
|
22
|
+
* Used to set a mock location when testing the `AdsConsent` helper.
|
|
23
|
+
*/
|
|
24
|
+
export declare enum AdsConsentDebugGeography {
|
|
25
|
+
/**
|
|
26
|
+
* Disable any debug geography.
|
|
27
|
+
*/
|
|
28
|
+
DISABLED = 0,
|
|
29
|
+
/**
|
|
30
|
+
* Geography appears as in EEA for debug devices.
|
|
31
|
+
*/
|
|
32
|
+
EEA = 1,
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Use `OTHER`.
|
|
35
|
+
*/
|
|
36
|
+
NOT_EEA = 2,
|
|
37
|
+
/**
|
|
38
|
+
* Geography appears as in a regulated US State.
|
|
39
|
+
*/
|
|
40
|
+
REGULATED_US_STATE = 3,
|
|
41
|
+
/**
|
|
42
|
+
* Geography appears as in a region with no regulation in force.
|
|
43
|
+
*/
|
|
44
|
+
OTHER = 4
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* AdsConsentStatus enum.
|
|
48
|
+
*/
|
|
49
|
+
export declare enum AdsConsentStatus {
|
|
50
|
+
/**
|
|
51
|
+
* Unknown consent status, AdsConsent.requestInfoUpdate needs to be called to update it.
|
|
52
|
+
*/
|
|
53
|
+
UNKNOWN = "UNKNOWN",
|
|
54
|
+
/**
|
|
55
|
+
* User consent required but not yet obtained.
|
|
56
|
+
*/
|
|
57
|
+
REQUIRED = "REQUIRED",
|
|
58
|
+
/**
|
|
59
|
+
* User consent not required.
|
|
60
|
+
*/
|
|
61
|
+
NOT_REQUIRED = "NOT_REQUIRED",
|
|
62
|
+
/**
|
|
63
|
+
* User consent already obtained.
|
|
64
|
+
*/
|
|
65
|
+
OBTAINED = "OBTAINED"
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* AdsConsentPrivacyOptionsRequirementStatus enum.
|
|
69
|
+
*/
|
|
70
|
+
export declare enum AdsConsentPrivacyOptionsRequirementStatus {
|
|
71
|
+
/**
|
|
72
|
+
* Unknown consent status, AdsConsent.requestInfoUpdate needs to be called to update it.
|
|
73
|
+
*/
|
|
74
|
+
UNKNOWN = "UNKNOWN",
|
|
75
|
+
/**
|
|
76
|
+
* User consent required but not yet obtained.
|
|
77
|
+
*/
|
|
78
|
+
REQUIRED = "REQUIRED",
|
|
79
|
+
/**
|
|
80
|
+
* User consent not required.
|
|
81
|
+
*/
|
|
82
|
+
NOT_REQUIRED = "NOT_REQUIRED"
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The options used when requesting consent information.
|
|
86
|
+
*/
|
|
87
|
+
export interface AdsConsentInfoOptions {
|
|
88
|
+
/**
|
|
89
|
+
* Sets the debug geography to locally test consent.
|
|
90
|
+
*/
|
|
91
|
+
debugGeography?: AdsConsentDebugGeography;
|
|
92
|
+
/**
|
|
93
|
+
* Set to `true` to provide the option for the user to accept being shown personalized ads, defaults to `false`.
|
|
94
|
+
*/
|
|
95
|
+
tagForUnderAgeOfConsent?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* An array of test device IDs to allow.
|
|
98
|
+
*/
|
|
99
|
+
testDeviceIdentifiers?: string[];
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* The result of requesting info about a users consent status.
|
|
103
|
+
*/
|
|
104
|
+
export interface AdsConsentInfo {
|
|
105
|
+
/**
|
|
106
|
+
* The consent status of the user.
|
|
107
|
+
*
|
|
108
|
+
* - `UNKNOWN`: Unknown consent status.
|
|
109
|
+
* - `REQUIRED`: User consent required but not yet obtained.
|
|
110
|
+
* - `NOT_REQUIRED`: User consent not required.
|
|
111
|
+
* - `OBTAINED`: User consent already obtained.
|
|
112
|
+
*/
|
|
113
|
+
status: AdsConsentStatus;
|
|
114
|
+
/**
|
|
115
|
+
* Indicates whether the app has completed the necessary steps for gathering updated user consent.
|
|
116
|
+
*/
|
|
117
|
+
canRequestAds: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Privacy options requirement status.
|
|
120
|
+
*/
|
|
121
|
+
privacyOptionsRequirementStatus: AdsConsentPrivacyOptionsRequirementStatus;
|
|
122
|
+
/**
|
|
123
|
+
* If `true` a consent form is available.
|
|
124
|
+
*/
|
|
125
|
+
isConsentFormAvailable: boolean;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* The options used when requesting consent information.
|
|
129
|
+
*
|
|
130
|
+
* https://vendor-list.consensu.org/v2/vendor-list.json
|
|
131
|
+
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework
|
|
132
|
+
*/
|
|
133
|
+
export interface AdsConsentUserChoices {
|
|
134
|
+
/**
|
|
135
|
+
* Your device can be identified based on a scan of your device's
|
|
136
|
+
* unique combination of characteristics.
|
|
137
|
+
*
|
|
138
|
+
* Vendors can:
|
|
139
|
+
* - Create an identifier using data collected via actively scanning a device for
|
|
140
|
+
* - specific characteristics, e.g. installed fonts or screen resolution.
|
|
141
|
+
* - Use such an identifier to re-identify a device.
|
|
142
|
+
*/
|
|
143
|
+
activelyScanDeviceCharacteristicsForIdentification: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Market research can be used to learn more about the audiences who visit sites/apps and view ads.
|
|
146
|
+
*
|
|
147
|
+
* To apply market research to generate audience insights vendors can:
|
|
148
|
+
* - Provide aggregate reporting to advertisers or their representatives about
|
|
149
|
+
* the audiences reached by their ads, through panel-based and similarly derived insights.
|
|
150
|
+
* - Provide aggregate reporting to publishers about the audiences that were served or
|
|
151
|
+
* interacted with content and/or ads on their property by applying
|
|
152
|
+
* panel-based and similarly derived insights.
|
|
153
|
+
* - Associate offline data with an online user for the purposes of
|
|
154
|
+
* market research to generate audience insights if vendors have declared to match and
|
|
155
|
+
* combine offline data sources (Feature 1)
|
|
156
|
+
* - Combine this information with other information previously collected including from
|
|
157
|
+
* across websites and apps.
|
|
158
|
+
*
|
|
159
|
+
* Vendors cannot:
|
|
160
|
+
* - Measure the performance and effectiveness of ads that a specific user was served or
|
|
161
|
+
* interacted with, without a Legal Basis to measure ad performance.
|
|
162
|
+
* - Measure which content a specific user was served and how they interacted with it,
|
|
163
|
+
* without a Legal Basis to measure content performance.
|
|
164
|
+
*/
|
|
165
|
+
applyMarketResearchToGenerateAudienceInsights: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* A profile can be built about you and your interests to show you personalised ads
|
|
168
|
+
* that are relevant to you.
|
|
169
|
+
*
|
|
170
|
+
* To create a personalised ads profile vendors can:
|
|
171
|
+
* - Collect information about a user, including a user's activity, interests,
|
|
172
|
+
* demographic information, or location, to create or edit a user profile for use
|
|
173
|
+
* in personalised advertising.
|
|
174
|
+
* - Combine this information with other information previously collected,
|
|
175
|
+
* including from across websites and apps, to create or edit a user profile
|
|
176
|
+
* for use in personalised advertising.
|
|
177
|
+
*/
|
|
178
|
+
createAPersonalisedAdsProfile: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* A profile can be built about you and your interests to show you personalised content
|
|
181
|
+
* that is relevant to you.
|
|
182
|
+
*
|
|
183
|
+
* To create a personalised content profile vendors can:
|
|
184
|
+
* - Collect information about a user, including a user's activity, interests, visits to
|
|
185
|
+
* sites or apps, demographic information, or location, to create or edit a user profile
|
|
186
|
+
* for personalising content.
|
|
187
|
+
* - Combine this information with other information previously collected,
|
|
188
|
+
* including from across websites and apps, to create or edit a user profile for use
|
|
189
|
+
* in personalising content.
|
|
190
|
+
*/
|
|
191
|
+
createAPersonalisedContentProfile: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Your data can be used to improve existing systems and software,
|
|
194
|
+
* and to develop new products
|
|
195
|
+
*
|
|
196
|
+
* To develop new products and improve products vendors can:
|
|
197
|
+
* - Use information to improve their existing products with new features and
|
|
198
|
+
* to develop new products
|
|
199
|
+
* - Create new models and algorithms through machine learning
|
|
200
|
+
*
|
|
201
|
+
* Vendors cannot:
|
|
202
|
+
* - Conduct any other data processing operation allowed under
|
|
203
|
+
* a different purpose under this purpose
|
|
204
|
+
*/
|
|
205
|
+
developAndImproveProducts: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* The performance and effectiveness of ads that you see or interact with can be measured.
|
|
208
|
+
*
|
|
209
|
+
* To measure ad performance vendors can:
|
|
210
|
+
* - Measure whether and how ads were delivered to and interacted with by a user
|
|
211
|
+
* - Provide reporting about ads including their effectiveness and performance
|
|
212
|
+
* - Provide reporting about users who interacted with ads using data observed during
|
|
213
|
+
* the course of the user's interaction with that ad
|
|
214
|
+
* - Provide reporting to publishers about the ads displayed on their property
|
|
215
|
+
* - Measure whether an ad is serving in a suitable editorial environment (brand-safe) context
|
|
216
|
+
* - Determine the percentage of the ad that had the opportunity to be seen and
|
|
217
|
+
* the duration of that opportunity
|
|
218
|
+
* - Combine this information with other information previously collected,
|
|
219
|
+
* including from across websites and apps
|
|
220
|
+
*
|
|
221
|
+
* Vendors cannot:
|
|
222
|
+
* - Apply panel- or similarly-derived audience insights data to ad measurement data
|
|
223
|
+
* without a Legal Basis to apply market research to generate audience insights (Purpose 9)
|
|
224
|
+
*/
|
|
225
|
+
measureAdPerformance: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* The performance and effectiveness of content that you see or interact with can be measured.
|
|
228
|
+
*
|
|
229
|
+
* To measure content performance vendors can:
|
|
230
|
+
* - Measure and report on how content was delivered to and interacted with by users.
|
|
231
|
+
* - Provide reporting, using directly measurable or known information, about users who
|
|
232
|
+
* interacted with the content
|
|
233
|
+
* - Combine this information with other information previously collected,
|
|
234
|
+
* including from across websites and apps.
|
|
235
|
+
*
|
|
236
|
+
* Vendors cannot:
|
|
237
|
+
* - Measure whether and how ads (including native ads) were delivered to and
|
|
238
|
+
* interacted with by a user.
|
|
239
|
+
* - Apply panel- or similarly derived audience insights data to ad measurement
|
|
240
|
+
* data without a Legal Basis to apply market research to generate audience insights (Purpose 9)
|
|
241
|
+
*/
|
|
242
|
+
measureContentPerformance: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* Ads can be shown to you based on the content you’re viewing,
|
|
245
|
+
* the app you’re using, your approximate location, or your device type.
|
|
246
|
+
*
|
|
247
|
+
* To do basic ad selection vendors can:
|
|
248
|
+
* - Use real-time information about the context in which the ad will be shown,
|
|
249
|
+
* to show the ad, including information about the content and the device, such as:
|
|
250
|
+
* device type and capabilities, user agent, URL, IP address
|
|
251
|
+
* - Use a user’s non-precise geolocation data
|
|
252
|
+
* - Control the frequency of ads shown to a user.
|
|
253
|
+
* - Sequence the order in which ads are shown to a user.
|
|
254
|
+
* - Prevent an ad from serving in an unsuitable editorial (brand-unsafe) context
|
|
255
|
+
*
|
|
256
|
+
* Vendors cannot:
|
|
257
|
+
* - Create a personalised ads profile using this information for the selection of
|
|
258
|
+
* future ads without a separate legal basis to create a personalised ads profile.
|
|
259
|
+
* - N.B. Non-precise means only an approximate location involving at least a radius
|
|
260
|
+
* of 500 meters is permitted.
|
|
261
|
+
*/
|
|
262
|
+
selectBasicAds: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Personalised ads can be shown to you based on a profile about you.
|
|
265
|
+
*
|
|
266
|
+
* To select personalised ads vendors can:
|
|
267
|
+
* - Select personalised ads based on a user profile or other historical user data,
|
|
268
|
+
* including a user’s prior activity, interests, visits to sites or apps, location,
|
|
269
|
+
* or demographic information.
|
|
270
|
+
*/
|
|
271
|
+
selectPersonalisedAds: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* Personalised content can be shown to you based on a profile about you.
|
|
274
|
+
*
|
|
275
|
+
* To select personalised content vendors can:
|
|
276
|
+
* - Select personalised content based on a user profile or other historical user data,
|
|
277
|
+
* including a user’s prior activity, interests, visits to sites or apps, location,
|
|
278
|
+
* or demographic information.
|
|
279
|
+
*/
|
|
280
|
+
selectPersonalisedContent: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Cookies, device identifiers, or other information can be stored or
|
|
283
|
+
* accessed on your device for the purposes presented to you.
|
|
284
|
+
*
|
|
285
|
+
* Vendors can:
|
|
286
|
+
* - Store and access information on the device such as cookies and
|
|
287
|
+
* device identifiers presented to a user.
|
|
288
|
+
*/
|
|
289
|
+
storeAndAccessInformationOnDevice: boolean;
|
|
290
|
+
/**
|
|
291
|
+
* Your precise geolocation data can be used in support of one or more purposes.
|
|
292
|
+
* This means your location can be accurate to within several meters.
|
|
293
|
+
*
|
|
294
|
+
* Vendors can:
|
|
295
|
+
* - Collect and process precise geolocation data in support of one or more purposes.
|
|
296
|
+
* - Precise geolocation means that there are no restrictions on the precision of
|
|
297
|
+
* a user's location; this can be accurate to within several meters.
|
|
298
|
+
*/
|
|
299
|
+
usePreciseGeolocationData: boolean;
|
|
300
|
+
}
|
|
301
|
+
export interface AdsConsentInterface {
|
|
302
|
+
/**
|
|
303
|
+
* Requests user consent information.
|
|
304
|
+
*
|
|
305
|
+
* The response from this method provides information about consent form availability and consent status.
|
|
306
|
+
*
|
|
307
|
+
* #### Example
|
|
308
|
+
*
|
|
309
|
+
* ```js
|
|
310
|
+
* import { AdsConsent } from 'react-native-google-mobile-ads';
|
|
311
|
+
*
|
|
312
|
+
* const consentInfo = await AdsConsent.requestInfoUpdate();
|
|
313
|
+
* console.log('A consent form is available:', consentInfo.isConsentFormAvailable);
|
|
314
|
+
* console.log('User consent status:', consentInfo.status);
|
|
315
|
+
* ```
|
|
316
|
+
* @param options An AdsConsentInfoOptions interface.
|
|
317
|
+
*/
|
|
318
|
+
requestInfoUpdate(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;
|
|
319
|
+
/**
|
|
320
|
+
* Shows a Google-rendered user consent form.
|
|
321
|
+
*
|
|
322
|
+
* #### Example
|
|
323
|
+
*
|
|
324
|
+
* ```js
|
|
325
|
+
* import { AdsConsent, AdsConsentStatus } from 'react-native-google-mobile-ads';
|
|
326
|
+
*
|
|
327
|
+
* async function requestConsent() {
|
|
328
|
+
* const consentInfo = await AdsConsent.requestInfoUpdate();
|
|
329
|
+
*
|
|
330
|
+
* // Check if user requires consent
|
|
331
|
+
* if (
|
|
332
|
+
* consentInfo.isConsentFormAvailable &&
|
|
333
|
+
* (consentInfo.status === AdsConsentStatus.UNKNOWN ||
|
|
334
|
+
* consentInfo.status === AdsConsentStatus.REQUIRED)) {
|
|
335
|
+
* // Show a Google-rendered form
|
|
336
|
+
* const formResult = await AdsConsent.showForm();
|
|
337
|
+
*
|
|
338
|
+
* console.log('User consent obtained: ', formResult.status === AdsConsentStatus.OBTAINED);
|
|
339
|
+
* }
|
|
340
|
+
* }
|
|
341
|
+
*
|
|
342
|
+
* ```
|
|
343
|
+
*/
|
|
344
|
+
showForm(): Promise<AdsConsentInfo>;
|
|
345
|
+
/**
|
|
346
|
+
* Presents a privacy options form if privacyOptionsRequirementStatus is required.
|
|
347
|
+
*/
|
|
348
|
+
showPrivacyOptionsForm(): Promise<AdsConsentInfo>;
|
|
349
|
+
/**
|
|
350
|
+
* Loads a consent form and immediately presents it if consentStatus is required.
|
|
351
|
+
*
|
|
352
|
+
* This method is intended for the use case of showing a form if needed when the app starts.
|
|
353
|
+
*/
|
|
354
|
+
loadAndShowConsentFormIfRequired(): Promise<AdsConsentInfo>;
|
|
355
|
+
/**
|
|
356
|
+
* Returns the UMP Consent Information from the last known session.
|
|
357
|
+
*
|
|
358
|
+
* #### Example
|
|
359
|
+
*
|
|
360
|
+
* ```js
|
|
361
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
362
|
+
*
|
|
363
|
+
* const consentInfo = await AdsConsent.getConsentInfo();
|
|
364
|
+
* ```
|
|
365
|
+
*/
|
|
366
|
+
getConsentInfo(): Promise<AdsConsentInfo>;
|
|
367
|
+
/**
|
|
368
|
+
* Helper method to call the UMP SDK methods to request consent information and load/present a
|
|
369
|
+
* consent form if necessary.
|
|
370
|
+
*
|
|
371
|
+
* @param options An AdsConsentInfoOptions interface.
|
|
372
|
+
*/
|
|
373
|
+
gatherConsent(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;
|
|
374
|
+
/**
|
|
375
|
+
* Returns the value stored under the `IABTCF_TCString` key
|
|
376
|
+
* in NSUserDefaults (iOS) / SharedPreferences (Android) as
|
|
377
|
+
* defined by the IAB Europe Transparency & Consent Framework.
|
|
378
|
+
*
|
|
379
|
+
* More information available here:
|
|
380
|
+
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
|
|
381
|
+
*
|
|
382
|
+
* #### Example
|
|
383
|
+
*
|
|
384
|
+
* ```js
|
|
385
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
386
|
+
*
|
|
387
|
+
* const tcString = await AdsConsent.getTCString();
|
|
388
|
+
* ```
|
|
389
|
+
*/
|
|
390
|
+
getTCString(): Promise<string>;
|
|
391
|
+
/**
|
|
392
|
+
* Returns the TC Model of the saved IAB TCF 2.0 String.
|
|
393
|
+
*
|
|
394
|
+
* #### Example
|
|
395
|
+
*
|
|
396
|
+
* ```js
|
|
397
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
398
|
+
*
|
|
399
|
+
* const tcModel = await AdsConsent.getTCModel();
|
|
400
|
+
* ```
|
|
401
|
+
*/
|
|
402
|
+
getTCModel(): Promise<TCModel>;
|
|
403
|
+
/**
|
|
404
|
+
* Returns the value stored under the `IABTCF_gdprApplies` key
|
|
405
|
+
* in NSUserDefaults (iOS) / SharedPreferences (Android) as
|
|
406
|
+
* defined by the IAB Europe Transparency & Consent Framework.
|
|
407
|
+
*
|
|
408
|
+
* More information available here:
|
|
409
|
+
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
|
|
410
|
+
*
|
|
411
|
+
* #### Example
|
|
412
|
+
*
|
|
413
|
+
* ```js
|
|
414
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
415
|
+
*
|
|
416
|
+
* await AdsConsent.requestInfoUpdate();
|
|
417
|
+
* const gdprApplies = await AdsConsent.getGdprApplies();
|
|
418
|
+
* ```
|
|
419
|
+
*/
|
|
420
|
+
getGdprApplies(): Promise<boolean>;
|
|
421
|
+
/**
|
|
422
|
+
* Returns the value stored under the `IABTCF_PurposeConsents` key
|
|
423
|
+
* in NSUserDefaults (iOS) / SharedPreferences (Android) as
|
|
424
|
+
* defined by the IAB Europe Transparency & Consent Framework.
|
|
425
|
+
*
|
|
426
|
+
* More information available here:
|
|
427
|
+
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
|
|
428
|
+
*
|
|
429
|
+
* #### Example
|
|
430
|
+
*
|
|
431
|
+
* ```js
|
|
432
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
433
|
+
*
|
|
434
|
+
* await AdsConsent.requestInfoUpdate();
|
|
435
|
+
* const purposeConsents = await AdsConsent.getPurposeConsents();
|
|
436
|
+
* const hasConsentForPurposeOne = purposeConsents.startsWith("1");
|
|
437
|
+
* ```
|
|
438
|
+
*/
|
|
439
|
+
getPurposeConsents(): Promise<string>;
|
|
440
|
+
/**
|
|
441
|
+
* Returns the value stored under the `IABTCF_PurposeLegitimateInterests` key
|
|
442
|
+
* in NSUserDefaults (iOS) / SharedPreferences (Android) as
|
|
443
|
+
* defined by the IAB Europe Transparency & Consent Framework.
|
|
444
|
+
*
|
|
445
|
+
* More information available here:
|
|
446
|
+
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
|
|
447
|
+
*
|
|
448
|
+
* #### Example
|
|
449
|
+
*
|
|
450
|
+
* ```js
|
|
451
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
452
|
+
*
|
|
453
|
+
* await AdsConsent.requestInfoUpdate();
|
|
454
|
+
* const purposeLegitimateInterests = await AdsConsent.getPurposeLegitimateInterests();
|
|
455
|
+
* const hasLegitimateInterestForPurposeTwo = purposeLegitimateInterests.split("")[1] === "1";
|
|
456
|
+
* ```
|
|
457
|
+
*/
|
|
458
|
+
getPurposeLegitimateInterests(): Promise<string>;
|
|
459
|
+
/**
|
|
460
|
+
* Provides information about a user's consent choices.
|
|
461
|
+
*
|
|
462
|
+
* #### Example
|
|
463
|
+
*
|
|
464
|
+
* ```js
|
|
465
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
466
|
+
*
|
|
467
|
+
* const { storeAndAccessInformationOnDevice } = await AdsConsent.getUserChoices();
|
|
468
|
+
* ```
|
|
469
|
+
*/
|
|
470
|
+
getUserChoices(): Promise<AdsConsentUserChoices>;
|
|
471
|
+
/**
|
|
472
|
+
* Resets the UMP SDK state.
|
|
473
|
+
*
|
|
474
|
+
* #### Example
|
|
475
|
+
*
|
|
476
|
+
* ```js
|
|
477
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
478
|
+
*
|
|
479
|
+
* AdsConsent.reset();
|
|
480
|
+
* ```
|
|
481
|
+
*/
|
|
482
|
+
reset(): void;
|
|
483
|
+
}
|
|
484
|
+
export interface Spec extends TurboModule {
|
|
485
|
+
requestInfoUpdate(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;
|
|
486
|
+
showForm(): Promise<AdsConsentInfo>;
|
|
487
|
+
showPrivacyOptionsForm(): Promise<AdsConsentInfo>;
|
|
488
|
+
loadAndShowConsentFormIfRequired(): Promise<AdsConsentInfo>;
|
|
489
|
+
getConsentInfo(): Promise<AdsConsentInfo>;
|
|
490
|
+
getTCString(): Promise<string>;
|
|
491
|
+
getGdprApplies(): Promise<boolean>;
|
|
492
|
+
getPurposeConsents(): Promise<string>;
|
|
493
|
+
getPurposeLegitimateInterests(): Promise<string>;
|
|
494
|
+
reset(): void;
|
|
495
|
+
}
|
|
496
|
+
declare const _default: Spec;
|
|
497
|
+
export default _default;
|
|
498
|
+
//# sourceMappingURL=NativeConsentModule.d.ts.map
|