react-native-google-mobile-ads 14.4.3 → 14.6.0

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 (206) hide show
  1. package/README.md +3 -3
  2. package/__tests__/googleMobileAds.test.ts +1 -1
  3. package/__tests__/interstitial.test.ts +9 -23
  4. package/android/src/main/java/io/invertase/googlemobileads/ReactNativeAppModule.java +0 -28
  5. package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsModule.kt +13 -0
  6. package/ios/RNGoogleMobileAds/{common/RNJSON.h → RNGoogleMobileAdsAppOpenModule.h} +11 -9
  7. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsAppOpenModule.mm +100 -0
  8. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerView.h +4 -0
  9. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerView.mm +6 -1
  10. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsConsentModule.h +13 -2
  11. package/ios/RNGoogleMobileAds/{RNGoogleMobileAdsConsentModule.m → RNGoogleMobileAdsConsentModule.mm} +115 -26
  12. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenAd.h +53 -0
  13. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenAd.mm +220 -0
  14. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenContentDelegate.h +36 -0
  15. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenContentDelegate.mm +80 -0
  16. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsInterstitialModule.h +36 -0
  17. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsInterstitialModule.mm +102 -0
  18. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.mm +17 -0
  19. package/{src/AdsConsentPrivacyOptionsRequirementStatus.ts → ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedInterstitialModule.h} +21 -20
  20. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedInterstitialModule.mm +102 -0
  21. package/{lib/module/AdsConsentStatus.js → ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.h} +20 -12
  22. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.mm +100 -0
  23. package/ios/RNGoogleMobileAds/common/{RNAppModule.m → RNAppModule.mm} +0 -76
  24. package/ios/RNGoogleMobileAds/common/RNSharedUtils.h +0 -4
  25. package/ios/RNGoogleMobileAds/common/{RNSharedUtils.m → RNSharedUtils.mm} +0 -21
  26. package/jest.setup.ts +8 -5
  27. package/lib/commonjs/AdsConsent.js +16 -16
  28. package/lib/commonjs/AdsConsent.js.map +1 -1
  29. package/lib/commonjs/MobileAds.js +1 -1
  30. package/lib/commonjs/ads/AppOpenAd.js +3 -1
  31. package/lib/commonjs/ads/AppOpenAd.js.map +1 -1
  32. package/lib/commonjs/ads/BannerAd.js +1 -1
  33. package/lib/commonjs/ads/BannerAd.js.map +1 -1
  34. package/lib/commonjs/ads/BaseAd.js +1 -1
  35. package/lib/commonjs/ads/GAMBannerAd.js +1 -1
  36. package/lib/commonjs/ads/GAMBannerAd.js.map +1 -1
  37. package/lib/commonjs/ads/InterstitialAd.js +3 -1
  38. package/lib/commonjs/ads/InterstitialAd.js.map +1 -1
  39. package/lib/commonjs/ads/MobileAd.js +5 -18
  40. package/lib/commonjs/ads/MobileAd.js.map +1 -1
  41. package/lib/commonjs/ads/RewardedAd.js +3 -1
  42. package/lib/commonjs/ads/RewardedAd.js.map +1 -1
  43. package/lib/commonjs/ads/RewardedInterstitialAd.js +3 -1
  44. package/lib/commonjs/ads/RewardedInterstitialAd.js.map +1 -1
  45. package/lib/commonjs/common/constants.js +4 -3
  46. package/lib/commonjs/common/constants.js.map +1 -1
  47. package/lib/commonjs/index.js +34 -8
  48. package/lib/commonjs/index.js.map +1 -1
  49. package/lib/commonjs/specs/components/GoogleMobileAdsBannerViewNativeComponent.js.map +1 -0
  50. package/{src/AdsConsentDebugGeography.ts → lib/commonjs/specs/modules/NativeAppOpenModule.js} +10 -23
  51. package/lib/commonjs/specs/modules/NativeAppOpenModule.js.map +1 -0
  52. package/lib/commonjs/specs/modules/NativeConsentModule.js +67 -0
  53. package/lib/commonjs/specs/modules/NativeConsentModule.js.map +1 -0
  54. package/lib/commonjs/specs/modules/NativeGoogleMobileAdsModule.js +25 -0
  55. package/lib/commonjs/specs/modules/NativeGoogleMobileAdsModule.js.map +1 -0
  56. package/lib/commonjs/specs/modules/NativeInterstitialModule.js +25 -0
  57. package/lib/commonjs/specs/modules/NativeInterstitialModule.js.map +1 -0
  58. package/lib/commonjs/specs/modules/NativeRewardedInterstitialModule.js +25 -0
  59. package/lib/commonjs/specs/modules/NativeRewardedInterstitialModule.js.map +1 -0
  60. package/lib/commonjs/specs/modules/NativeRewardedModule.js +25 -0
  61. package/lib/commonjs/specs/modules/NativeRewardedModule.js.map +1 -0
  62. package/lib/commonjs/types/index.js +0 -11
  63. package/lib/commonjs/types/index.js.map +1 -1
  64. package/lib/commonjs/version.js +1 -1
  65. package/lib/module/AdsConsent.js +2 -3
  66. package/lib/module/AdsConsent.js.map +1 -1
  67. package/lib/module/MobileAds.js +1 -1
  68. package/lib/module/MobileAds.js.map +1 -1
  69. package/lib/module/ads/AppOpenAd.js +2 -1
  70. package/lib/module/ads/AppOpenAd.js.map +1 -1
  71. package/lib/module/ads/BannerAd.js +1 -1
  72. package/lib/module/ads/BannerAd.js.map +1 -1
  73. package/lib/module/ads/BaseAd.js +1 -1
  74. package/lib/module/ads/BaseAd.js.map +1 -1
  75. package/lib/module/ads/GAMBannerAd.js +1 -1
  76. package/lib/module/ads/GAMBannerAd.js.map +1 -1
  77. package/lib/module/ads/InterstitialAd.js +3 -1
  78. package/lib/module/ads/InterstitialAd.js.map +1 -1
  79. package/lib/module/ads/MobileAd.js +5 -18
  80. package/lib/module/ads/MobileAd.js.map +1 -1
  81. package/lib/module/ads/RewardedAd.js +3 -1
  82. package/lib/module/ads/RewardedAd.js.map +1 -1
  83. package/lib/module/ads/RewardedInterstitialAd.js +3 -1
  84. package/lib/module/ads/RewardedInterstitialAd.js.map +1 -1
  85. package/lib/module/common/constants.js +3 -3
  86. package/lib/module/common/constants.js.map +1 -1
  87. package/lib/module/index.js +1 -3
  88. package/lib/module/index.js.map +1 -1
  89. package/lib/module/specs/components/GoogleMobileAdsBannerViewNativeComponent.js.map +1 -0
  90. package/{ios/RNGoogleMobileAds/common/RNMeta.h → lib/module/specs/modules/NativeAppOpenModule.js} +3 -13
  91. package/lib/module/specs/modules/NativeAppOpenModule.js.map +1 -0
  92. package/lib/module/specs/modules/NativeConsentModule.js +68 -0
  93. package/lib/module/specs/modules/NativeConsentModule.js.map +1 -0
  94. package/lib/module/specs/modules/NativeGoogleMobileAdsModule.js +20 -0
  95. package/lib/module/specs/modules/NativeGoogleMobileAdsModule.js.map +1 -0
  96. package/lib/module/specs/modules/NativeInterstitialModule.js +20 -0
  97. package/lib/module/specs/modules/NativeInterstitialModule.js.map +1 -0
  98. package/lib/module/specs/modules/NativeRewardedInterstitialModule.js +20 -0
  99. package/lib/module/specs/modules/NativeRewardedInterstitialModule.js.map +1 -0
  100. package/lib/module/specs/modules/NativeRewardedModule.js +20 -0
  101. package/lib/module/specs/modules/NativeRewardedModule.js.map +1 -0
  102. package/lib/module/types/index.js +0 -1
  103. package/lib/module/types/index.js.map +1 -1
  104. package/lib/module/version.js +1 -1
  105. package/lib/typescript/AdsConsent.d.ts +1 -1
  106. package/lib/typescript/AdsConsent.d.ts.map +1 -1
  107. package/lib/typescript/ads/AppOpenAd.d.ts.map +1 -1
  108. package/lib/typescript/ads/BannerAd.d.ts.map +1 -1
  109. package/lib/typescript/ads/BaseAd.d.ts +1 -1
  110. package/lib/typescript/ads/BaseAd.d.ts.map +1 -1
  111. package/lib/typescript/ads/GAMBannerAd.d.ts.map +1 -1
  112. package/lib/typescript/ads/InterstitialAd.d.ts.map +1 -1
  113. package/lib/typescript/ads/MobileAd.d.ts +5 -4
  114. package/lib/typescript/ads/MobileAd.d.ts.map +1 -1
  115. package/lib/typescript/ads/RewardedAd.d.ts.map +1 -1
  116. package/lib/typescript/ads/RewardedInterstitialAd.d.ts.map +1 -1
  117. package/lib/typescript/index.d.ts +2 -4
  118. package/lib/typescript/index.d.ts.map +1 -1
  119. package/lib/typescript/specs/components/GoogleMobileAdsBannerViewNativeComponent.d.ts.map +1 -0
  120. package/lib/typescript/specs/modules/NativeAppOpenModule.d.ts +25 -0
  121. package/lib/typescript/specs/modules/NativeAppOpenModule.d.ts.map +1 -0
  122. package/lib/typescript/{types/AdsConsent.interface.d.ts → specs/modules/NativeConsentModule.d.ts} +249 -172
  123. package/lib/typescript/specs/modules/NativeConsentModule.d.ts.map +1 -0
  124. package/lib/typescript/specs/modules/NativeGoogleMobileAdsModule.d.ts +36 -0
  125. package/lib/typescript/specs/modules/NativeGoogleMobileAdsModule.d.ts.map +1 -0
  126. package/lib/typescript/specs/modules/NativeInterstitialModule.d.ts +25 -0
  127. package/lib/typescript/specs/modules/NativeInterstitialModule.d.ts.map +1 -0
  128. package/lib/typescript/specs/modules/NativeRewardedInterstitialModule.d.ts +25 -0
  129. package/lib/typescript/specs/modules/NativeRewardedInterstitialModule.d.ts.map +1 -0
  130. package/lib/typescript/specs/modules/NativeRewardedModule.d.ts +25 -0
  131. package/lib/typescript/specs/modules/NativeRewardedModule.d.ts.map +1 -0
  132. package/lib/typescript/types/index.d.ts +0 -1
  133. package/lib/typescript/types/index.d.ts.map +1 -1
  134. package/lib/typescript/version.d.ts +1 -1
  135. package/package.json +2 -2
  136. package/src/AdsConsent.ts +17 -21
  137. package/src/MobileAds.ts +1 -1
  138. package/src/ads/AppOpenAd.ts +3 -1
  139. package/src/ads/BannerAd.tsx +3 -1
  140. package/src/ads/BaseAd.tsx +2 -2
  141. package/src/ads/GAMBannerAd.tsx +3 -1
  142. package/src/ads/InterstitialAd.ts +3 -1
  143. package/src/ads/MobileAd.ts +9 -25
  144. package/src/ads/RewardedAd.ts +3 -1
  145. package/src/ads/RewardedInterstitialAd.ts +3 -1
  146. package/src/common/constants.ts +2 -2
  147. package/src/index.ts +9 -3
  148. package/src/specs/modules/NativeAppOpenModule.ts +26 -0
  149. package/src/{types/AdsConsent.interface.ts → specs/modules/NativeConsentModule.ts} +262 -174
  150. package/src/specs/modules/NativeGoogleMobileAdsModule.ts +40 -0
  151. package/src/specs/modules/NativeInterstitialModule.ts +26 -0
  152. package/src/specs/modules/NativeRewardedInterstitialModule.ts +32 -0
  153. package/src/{AdsConsentStatus.ts → specs/modules/NativeRewardedModule.ts} +8 -23
  154. package/src/types/index.ts +0 -1
  155. package/src/version.ts +1 -1
  156. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsAppOpenModule.m +0 -46
  157. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsAppOpenModule.swift +0 -85
  158. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenAd.swift +0 -231
  159. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenContentDelegate.swift +0 -76
  160. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsInterstitialModule.m +0 -46
  161. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsInterstitialModule.swift +0 -123
  162. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedInterstitialModule.m +0 -46
  163. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedInterstitialModule.swift +0 -85
  164. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.m +0 -46
  165. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.swift +0 -85
  166. package/ios/RNGoogleMobileAds/common/RNJSON.m +0 -93
  167. package/ios/RNGoogleMobileAds/common/RNMeta.m +0 -61
  168. package/ios/RNGoogleMobileAds/common/RNPreferences.h +0 -44
  169. package/ios/RNGoogleMobileAds/common/RNPreferences.m +0 -94
  170. package/lib/commonjs/AdsConsentDebugGeography.js +0 -34
  171. package/lib/commonjs/AdsConsentDebugGeography.js.map +0 -1
  172. package/lib/commonjs/AdsConsentPrivacyOptionsRequirementStatus.js +0 -32
  173. package/lib/commonjs/AdsConsentPrivacyOptionsRequirementStatus.js.map +0 -1
  174. package/lib/commonjs/AdsConsentStatus.js +0 -33
  175. package/lib/commonjs/AdsConsentStatus.js.map +0 -1
  176. package/lib/commonjs/NativeGoogleMobileAdsModule.js +0 -9
  177. package/lib/commonjs/NativeGoogleMobileAdsModule.js.map +0 -1
  178. package/lib/commonjs/ads/GoogleMobileAdsBannerViewNativeComponent.js.map +0 -1
  179. package/lib/commonjs/types/AdsConsent.interface.js +0 -6
  180. package/lib/commonjs/types/AdsConsent.interface.js.map +0 -1
  181. package/lib/module/AdsConsentDebugGeography.js +0 -29
  182. package/lib/module/AdsConsentDebugGeography.js.map +0 -1
  183. package/lib/module/AdsConsentPrivacyOptionsRequirementStatus.js +0 -27
  184. package/lib/module/AdsConsentPrivacyOptionsRequirementStatus.js.map +0 -1
  185. package/lib/module/AdsConsentStatus.js.map +0 -1
  186. package/lib/module/NativeGoogleMobileAdsModule.js +0 -3
  187. package/lib/module/NativeGoogleMobileAdsModule.js.map +0 -1
  188. package/lib/module/ads/GoogleMobileAdsBannerViewNativeComponent.js.map +0 -1
  189. package/lib/module/types/AdsConsent.interface.js +0 -2
  190. package/lib/module/types/AdsConsent.interface.js.map +0 -1
  191. package/lib/typescript/AdsConsentDebugGeography.d.ts +0 -20
  192. package/lib/typescript/AdsConsentDebugGeography.d.ts.map +0 -1
  193. package/lib/typescript/AdsConsentPrivacyOptionsRequirementStatus.d.ts +0 -18
  194. package/lib/typescript/AdsConsentPrivacyOptionsRequirementStatus.d.ts.map +0 -1
  195. package/lib/typescript/AdsConsentStatus.d.ts +0 -22
  196. package/lib/typescript/AdsConsentStatus.d.ts.map +0 -1
  197. package/lib/typescript/NativeGoogleMobileAdsModule.d.ts +0 -14
  198. package/lib/typescript/NativeGoogleMobileAdsModule.d.ts.map +0 -1
  199. package/lib/typescript/ads/GoogleMobileAdsBannerViewNativeComponent.d.ts.map +0 -1
  200. package/lib/typescript/types/AdsConsent.interface.d.ts.map +0 -1
  201. package/src/NativeGoogleMobileAdsModule.ts +0 -16
  202. /package/ios/RNGoogleMobileAds/common/{RNRCTEventEmitter.m → RNRCTEventEmitter.mm} +0 -0
  203. /package/lib/commonjs/{ads → specs/components}/GoogleMobileAdsBannerViewNativeComponent.js +0 -0
  204. /package/lib/module/{ads → specs/components}/GoogleMobileAdsBannerViewNativeComponent.js +0 -0
  205. /package/lib/typescript/{ads → specs/components}/GoogleMobileAdsBannerViewNativeComponent.d.ts +0 -0
  206. /package/src/{ads → specs/components}/GoogleMobileAdsBannerViewNativeComponent.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"BaseAd.d.ts","sourceRoot":"","sources":["../../../src/ads/BaseAd.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK1D,eAAO,MAAM,MAAM,sNAiJjB,CAAC"}
1
+ {"version":3,"file":"BaseAd.d.ts","sourceRoot":"","sources":["../../../src/ads/BaseAd.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK1D,eAAO,MAAM,MAAM,wOAiJjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GAMBannerAd.d.ts","sourceRoot":"","sources":["../../../src/ads/GAMBannerAd.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI1D,qBAAa,WAAY,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;IAChE,OAAO,CAAC,GAAG,CAAmE;IAE9E,sBAAsB;IAMtB,IAAI;IAMJ,MAAM;CAGP"}
1
+ {"version":3,"file":"GAMBannerAd.d.ts","sourceRoot":"","sources":["../../../src/ads/GAMBannerAd.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAM1D,qBAAa,WAAY,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;IAChE,OAAO,CAAC,GAAG,CAAmE;IAE9E,sBAAsB;IAMtB,IAAI;IAMJ,MAAM;CAGP"}
@@ -1 +1 @@
1
- {"version":3,"file":"InterstitialAd.d.ts","sourceRoot":"","sources":["../../../src/ads/InterstitialAd.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,qBAAa,cAAe,SAAQ,QAAQ;IAC1C,SAAS,CAAC,MAAM,CAAC,oBAAoB,SAAK;IAC1C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc;IAwB3E,mBAAmB,CAAC,CAAC,SAAS,WAAW,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAIxE,kBAAkB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;CAGhF"}
1
+ {"version":3,"file":"InterstitialAd.d.ts","sourceRoot":"","sources":["../../../src/ads/InterstitialAd.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,qBAAa,cAAe,SAAQ,QAAQ;IAC1C,SAAS,CAAC,MAAM,CAAC,oBAAoB,SAAK;IAC1C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc;IAyB3E,mBAAmB,CAAC,CAAC,SAAS,WAAW,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAIxE,kBAAkB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;CAGhF"}
@@ -10,13 +10,15 @@ import { RewardedAdReward } from '../types/RewardedAdReward';
10
10
  import { GAMAdEventType } from '../GAMAdEventType';
11
11
  import { AppEvent } from '../types/AppEvent';
12
12
  type AdType = 'app_open' | 'interstitial' | 'rewarded' | 'rewarded_interstitial';
13
- type NativeModule = 'RNGoogleMobileAdsAppOpenModule' | 'RNGoogleMobileAdsInterstitialModule' | 'RNGoogleMobileAdsRewardedModule' | 'RNGoogleMobileAdsRewardedInterstitialModule';
14
13
  type EventType = AdEventType | RewardedAdEventType | GAMAdEventType;
14
+ type AdLoadFunction = (requestId: number, adUnitId: string, requestOptions: RequestOptions) => void;
15
+ type AdShowFunction = (requestId: number, adUnitId: string, showOptions?: AdShowOptions) => Promise<void>;
15
16
  export declare abstract class MobileAd implements MobileAdInterface {
16
17
  protected _type: AdType;
17
- protected _nativeModule: NativeModule;
18
18
  protected _requestId: number;
19
19
  protected _adUnitId: string;
20
+ protected _adLoadFunction: AdLoadFunction;
21
+ protected _adShowFunction: AdShowFunction;
20
22
  protected _requestOptions: RequestOptions;
21
23
  protected _loaded: boolean;
22
24
  protected _isLoadCalled: boolean;
@@ -25,7 +27,7 @@ export declare abstract class MobileAd implements MobileAdInterface {
25
27
  protected _adEventsListenerId: number;
26
28
  protected _adEventListenerId: number;
27
29
  protected _nativeListener: EmitterSubscription;
28
- protected constructor(type: AdType, nativeModule: NativeModule, requestId: number, adUnitId: string, requestOptions: RequestOptions);
30
+ protected constructor(type: AdType, requestId: number, adUnitId: string, adLoadFunction: AdLoadFunction, adShowFunction: AdShowFunction, requestOptions: RequestOptions);
29
31
  protected _handleAdEvent(event: {
30
32
  body: {
31
33
  type: EventType;
@@ -40,7 +42,6 @@ export declare abstract class MobileAd implements MobileAdInterface {
40
42
  protected _addAdEventListener<T extends EventType>(type: T, listener: AdEventListener<T>): () => void;
41
43
  protected _getAdEventListeners<T extends EventType>(type: T): Map<number, AdEventListener<T>>;
42
44
  protected get _className(): string;
43
- protected get _camelCaseType(): "interstitial" | "rewarded" | "appOpen" | "rewardedInterstitial";
44
45
  load(): void;
45
46
  show(showOptions?: AdShowOptions): Promise<void>;
46
47
  abstract addAdEventsListener<T extends never>(listener: AdEventsListener<T>): () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"MobileAd.d.ts","sourceRoot":"","sources":["../../../src/ads/MobileAd.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,mBAAmB,EAAiB,MAAM,cAAc,CAAC;AAGlE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAkB,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,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,EACP,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;CAS/B"}
1
+ {"version":3,"file":"RewardedAd.d.ts","sourceRoot":"","sources":["../../../src/ads/RewardedAd.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,qBAAa,UAAW,SAAQ,QAAQ;IACtC,SAAS,CAAC,MAAM,CAAC,gBAAgB,SAAK;IACtC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc;IAyB3E,mBAAmB,CAAC,CAAC,SAAS,WAAW,GAAG,mBAAmB,EAC7D,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAC5B,MAAM,IAAI;IAIb,kBAAkB,CAAC,CAAC,SAAS,WAAW,GAAG,mBAAmB,EAC5D,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;CAS/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"RewardedInterstitialAd.d.ts","sourceRoot":"","sources":["../../../src/ads/RewardedInterstitialAd.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC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;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc;IA2B3E,mBAAmB,CAAC,CAAC,SAAS,WAAW,GAAG,mBAAmB,EAC7D,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAC5B,MAAM,IAAI;IAIb,kBAAkB,CAAC,CAAC,SAAS,WAAW,GAAG,mBAAmB,EAC5D,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;CAS/B"}
@@ -1,10 +1,8 @@
1
- export declare const SDK_VERSION = "14.4.3";
1
+ export declare const SDK_VERSION = "14.6.0";
2
2
  export { default, MobileAds } from './MobileAds';
3
- export { AdsConsentDebugGeography } from './AdsConsentDebugGeography';
3
+ export { AdsConsentDebugGeography, AdsConsentInfo, AdsConsentInfoOptions, AdsConsentInterface, AdsConsentPrivacyOptionsRequirementStatus, AdsConsentStatus, AdsConsentUserChoices, } from './specs/modules/NativeConsentModule';
4
4
  export { AdsConsentPurposes } from './AdsConsentPurposes';
5
5
  export { AdsConsentSpecialFeatures } from './AdsConsentSpecialFeatures';
6
- export { AdsConsentStatus } from './AdsConsentStatus';
7
- export { AdsConsentPrivacyOptionsRequirementStatus } from './AdsConsentPrivacyOptionsRequirementStatus';
8
6
  export { MaxAdContentRating } from './MaxAdContentRating';
9
7
  export { TestIds } from './TestIds';
10
8
  export { AdEventType } from './AdEventType';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,WAAW,WAAU,CAAC;AAEnC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,yB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OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,cAAc,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GoogleMobileAdsBannerViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/components/GoogleMobileAdsBannerViewNativeComponent.ts"],"names":[],"mappings":"AAAA,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,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,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;IACtB,sBAAsB,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAC3E,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,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"}
@@ -1,198 +1,77 @@
1
- import { TCModel } from '@iabtcf/core';
2
- import { AdsConsentDebugGeography } from '../AdsConsentDebugGeography';
3
- import { AdsConsentStatus } from '../AdsConsentStatus';
4
- import { AdsConsentPrivacyOptionsRequirementStatus } from '../AdsConsentPrivacyOptionsRequirementStatus';
5
1
  /**
6
- * Under the Google [EU User Consent Policy](https://www.google.com/about/company/consentstaging.html), you must make certain disclosures to your users in the European Economic Area (EEA)
7
- * and obtain their consent to use cookies or other local storage, where legally required, and to use personal data
8
- * (such as AdID) to serve ads. This policy reflects the requirements of the EU ePrivacy Directive and the
9
- * General Data Protection Regulation (GDPR).
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
10
9
  *
11
- * It is recommended that you determine the status of a user's consent at every app launch. The user consent status is held
12
- * on the device until a condition changes which requires the user to consent again, such as a change in publishers.
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.
13
15
  *
14
- * For more information, see [here](https://developers.google.com/admob/ump/android/quick-start#delay_app_measurement_optional).
15
16
  */
16
- export interface AdsConsentInterface {
17
- /**
18
- * Requests user consent information.
19
- *
20
- * The response from this method provides information about consent form availability and consent status.
21
- *
22
- * #### Example
23
- *
24
- * ```js
25
- * import { AdsConsent } from 'react-native-google-mobile-ads';
26
- *
27
- * const consentInfo = await AdsConsent.requestInfoUpdate();
28
- * console.log('A consent form is available:', consentInfo.isConsentFormAvailable);
29
- * console.log('User consent status:', consentInfo.status);
30
- * ```
31
- * @param options An AdsConsentInfoOptions interface.
32
- */
33
- requestInfoUpdate(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;
34
- /**
35
- * Shows a Google-rendered user consent form.
36
- *
37
- * #### Example
38
- *
39
- * ```js
40
- * import { AdsConsent, AdsConsentStatus } from 'react-native-google-mobile-ads';
41
- *
42
- * async function requestConsent() {
43
- * const consentInfo = await AdsConsent.requestInfoUpdate();
44
- *
45
- * // Check if user requires consent
46
- * if (
47
- * consentInfo.isConsentFormAvailable &&
48
- * (consentInfo.status === AdsConsentStatus.UNKNOWN ||
49
- * consentInfo.status === AdsConsentStatus.REQUIRED)) {
50
- * // Show a Google-rendered form
51
- * const formResult = await AdsConsent.showForm();
52
- *
53
- * console.log('User consent obtained: ', formResult.status === AdsConsentStatus.OBTAINED);
54
- * }
55
- * }
56
- *
57
- * ```
58
- */
59
- showForm(): Promise<AdsConsentInfo>;
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 {
60
25
  /**
61
- * Presents a privacy options form if privacyOptionsRequirementStatus is required.
26
+ * Disable any debug geography.
62
27
  */
63
- showPrivacyOptionsForm(): Promise<AdsConsentInfo>;
28
+ DISABLED = 0,
64
29
  /**
65
- * Loads a consent form and immediately presents it if consentStatus is required.
66
- *
67
- * This method is intended for the use case of showing a form if needed when the app starts.
30
+ * Sets the location to within the EEA.
68
31
  */
69
- loadAndShowConsentFormIfRequired(): Promise<AdsConsentInfo>;
70
- /**
71
- * Returns the UMP Consent Information from the last known session.
72
- *
73
- * #### Example
74
- *
75
- * ```js
76
- * import { AdsConsent } from '@invertase/react-native-google-ads';
77
- *
78
- * const consentInfo = await AdsConsent.getConsentInfo();
79
- * ```
80
- */
81
- getConsentInfo(): Promise<AdsConsentInfo>;
32
+ EEA = 1,
82
33
  /**
83
- * Helper method to call the UMP SDK methods to request consent information and load/present a
84
- * consent form if necessary.
34
+ * Sets the location to outside of the EEA.
85
35
  */
86
- gatherConsent(): Promise<AdsConsentInfo>;
36
+ NOT_EEA = 2
37
+ }
38
+ /**
39
+ * AdsConsentStatus enum.
40
+ */
41
+ export declare enum AdsConsentStatus {
87
42
  /**
88
- * Returns the value stored under the `IABTCF_TCString` key
89
- * in NSUserDefaults (iOS) / SharedPreferences (Android) as
90
- * defined by the IAB Europe Transparency & Consent Framework.
91
- *
92
- * More information available here:
93
- * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
94
- *
95
- * #### Example
96
- *
97
- * ```js
98
- * import { AdsConsent } from '@invertase/react-native-google-ads';
99
- *
100
- * const tcString = await AdsConsent.getTCString();
101
- * ```
43
+ * Unknown consent status, AdsConsent.requestInfoUpdate needs to be called to update it.
102
44
  */
103
- getTCString(): Promise<string>;
45
+ UNKNOWN = "UNKNOWN",
104
46
  /**
105
- * Returns the TC Model of the saved IAB TCF 2.0 String.
106
- *
107
- * #### Example
108
- *
109
- * ```js
110
- * import { AdsConsent } from '@invertase/react-native-google-ads';
111
- *
112
- * const tcModel = await AdsConsent.getTCModel();
113
- * ```
47
+ * User consent required but not yet obtained.
114
48
  */
115
- getTCModel(): Promise<TCModel>;
49
+ REQUIRED = "REQUIRED",
116
50
  /**
117
- * Returns the value stored under the `IABTCF_gdprApplies` key
118
- * in NSUserDefaults (iOS) / SharedPreferences (Android) as
119
- * defined by the IAB Europe Transparency & Consent Framework.
120
- *
121
- * More information available here:
122
- * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
123
- *
124
- * #### Example
125
- *
126
- * ```js
127
- * import { AdsConsent } from '@invertase/react-native-google-ads';
128
- *
129
- * await AdsConsent.requestInfoUpdate();
130
- * const gdprApplies = await AdsConsent.getGdprApplies();
131
- * ```
51
+ * User consent not required.
132
52
  */
133
- getGdprApplies(): Promise<boolean>;
53
+ NOT_REQUIRED = "NOT_REQUIRED",
134
54
  /**
135
- * Returns the value stored under the `IABTCF_PurposeConsents` key
136
- * in NSUserDefaults (iOS) / SharedPreferences (Android) as
137
- * defined by the IAB Europe Transparency & Consent Framework.
138
- *
139
- * More information available here:
140
- * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
141
- *
142
- * #### Example
143
- *
144
- * ```js
145
- * import { AdsConsent } from '@invertase/react-native-google-ads';
146
- *
147
- * await AdsConsent.requestInfoUpdate();
148
- * const purposeConsents = await AdsConsent.getPurposeConsents();
149
- * const hasConsentForPurposeOne = purposeConsents.startsWith("1");
150
- * ```
55
+ * User consent already obtained.
151
56
  */
152
- getPurposeConsents(): Promise<string>;
57
+ OBTAINED = "OBTAINED"
58
+ }
59
+ /**
60
+ * AdsConsentPrivacyOptionsRequirementStatus enum.
61
+ */
62
+ export declare enum AdsConsentPrivacyOptionsRequirementStatus {
153
63
  /**
154
- * Returns the value stored under the `IABTCF_PurposeLegitimateInterests` key
155
- * in NSUserDefaults (iOS) / SharedPreferences (Android) as
156
- * defined by the IAB Europe Transparency & Consent Framework.
157
- *
158
- * More information available here:
159
- * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
160
- *
161
- * #### Example
162
- *
163
- * ```js
164
- * import { AdsConsent } from '@invertase/react-native-google-ads';
165
- *
166
- * await AdsConsent.requestInfoUpdate();
167
- * const purposeLegitimateInterests = await AdsConsent.getPurposeLegitimateInterests();
168
- * const hasLegitimateInterestForPurposeTwo = purposeLegitimateInterests.split("")[1] === "1";
169
- * ```
64
+ * Unknown consent status, AdsConsent.requestInfoUpdate needs to be called to update it.
170
65
  */
171
- getPurposeLegitimateInterests(): Promise<string>;
66
+ UNKNOWN = "UNKNOWN",
172
67
  /**
173
- * Provides information about a user's consent choices.
174
- *
175
- * #### Example
176
- *
177
- * ```js
178
- * import { AdsConsent } from '@invertase/react-native-google-ads';
179
- *
180
- * const { storeAndAccessInformationOnDevice } = await AdsConsent.getUserChoices();
181
- * ```
68
+ * User consent required but not yet obtained.
182
69
  */
183
- getUserChoices(): Promise<AdsConsentUserChoices>;
70
+ REQUIRED = "REQUIRED",
184
71
  /**
185
- * Resets the UMP SDK state.
186
- *
187
- * #### Example
188
- *
189
- * ```js
190
- * import { AdsConsent } from '@invertase/react-native-google-ads';
191
- *
192
- * AdsConsent.reset();
193
- * ```
72
+ * User consent not required.
194
73
  */
195
- reset(): void;
74
+ NOT_REQUIRED = "NOT_REQUIRED"
196
75
  }
197
76
  /**
198
77
  * The options used when requesting consent information.
@@ -411,4 +290,202 @@ export interface AdsConsentUserChoices {
411
290
  */
412
291
  usePreciseGeolocationData: boolean;
413
292
  }
414
- //# sourceMappingURL=AdsConsent.interface.d.ts.map
293
+ export interface AdsConsentInterface {
294
+ /**
295
+ * Requests user consent information.
296
+ *
297
+ * The response from this method provides information about consent form availability and consent status.
298
+ *
299
+ * #### Example
300
+ *
301
+ * ```js
302
+ * import { AdsConsent } from 'react-native-google-mobile-ads';
303
+ *
304
+ * const consentInfo = await AdsConsent.requestInfoUpdate();
305
+ * console.log('A consent form is available:', consentInfo.isConsentFormAvailable);
306
+ * console.log('User consent status:', consentInfo.status);
307
+ * ```
308
+ * @param options An AdsConsentInfoOptions interface.
309
+ */
310
+ requestInfoUpdate(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;
311
+ /**
312
+ * Shows a Google-rendered user consent form.
313
+ *
314
+ * #### Example
315
+ *
316
+ * ```js
317
+ * import { AdsConsent, AdsConsentStatus } from 'react-native-google-mobile-ads';
318
+ *
319
+ * async function requestConsent() {
320
+ * const consentInfo = await AdsConsent.requestInfoUpdate();
321
+ *
322
+ * // Check if user requires consent
323
+ * if (
324
+ * consentInfo.isConsentFormAvailable &&
325
+ * (consentInfo.status === AdsConsentStatus.UNKNOWN ||
326
+ * consentInfo.status === AdsConsentStatus.REQUIRED)) {
327
+ * // Show a Google-rendered form
328
+ * const formResult = await AdsConsent.showForm();
329
+ *
330
+ * console.log('User consent obtained: ', formResult.status === AdsConsentStatus.OBTAINED);
331
+ * }
332
+ * }
333
+ *
334
+ * ```
335
+ */
336
+ showForm(): Promise<AdsConsentInfo>;
337
+ /**
338
+ * Presents a privacy options form if privacyOptionsRequirementStatus is required.
339
+ */
340
+ showPrivacyOptionsForm(): Promise<AdsConsentInfo>;
341
+ /**
342
+ * Loads a consent form and immediately presents it if consentStatus is required.
343
+ *
344
+ * This method is intended for the use case of showing a form if needed when the app starts.
345
+ */
346
+ loadAndShowConsentFormIfRequired(): Promise<AdsConsentInfo>;
347
+ /**
348
+ * Returns the UMP Consent Information from the last known session.
349
+ *
350
+ * #### Example
351
+ *
352
+ * ```js
353
+ * import { AdsConsent } from '@invertase/react-native-google-ads';
354
+ *
355
+ * const consentInfo = await AdsConsent.getConsentInfo();
356
+ * ```
357
+ */
358
+ getConsentInfo(): Promise<AdsConsentInfo>;
359
+ /**
360
+ * Helper method to call the UMP SDK methods to request consent information and load/present a
361
+ * consent form if necessary.
362
+ */
363
+ gatherConsent(): Promise<AdsConsentInfo>;
364
+ /**
365
+ * Returns the value stored under the `IABTCF_TCString` key
366
+ * in NSUserDefaults (iOS) / SharedPreferences (Android) as
367
+ * defined by the IAB Europe Transparency & Consent Framework.
368
+ *
369
+ * More information available here:
370
+ * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
371
+ *
372
+ * #### Example
373
+ *
374
+ * ```js
375
+ * import { AdsConsent } from '@invertase/react-native-google-ads';
376
+ *
377
+ * const tcString = await AdsConsent.getTCString();
378
+ * ```
379
+ */
380
+ getTCString(): Promise<string>;
381
+ /**
382
+ * Returns the TC Model of the saved IAB TCF 2.0 String.
383
+ *
384
+ * #### Example
385
+ *
386
+ * ```js
387
+ * import { AdsConsent } from '@invertase/react-native-google-ads';
388
+ *
389
+ * const tcModel = await AdsConsent.getTCModel();
390
+ * ```
391
+ */
392
+ getTCModel(): Promise<TCModel>;
393
+ /**
394
+ * Returns the value stored under the `IABTCF_gdprApplies` key
395
+ * in NSUserDefaults (iOS) / SharedPreferences (Android) as
396
+ * defined by the IAB Europe Transparency & Consent Framework.
397
+ *
398
+ * More information available here:
399
+ * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
400
+ *
401
+ * #### Example
402
+ *
403
+ * ```js
404
+ * import { AdsConsent } from '@invertase/react-native-google-ads';
405
+ *
406
+ * await AdsConsent.requestInfoUpdate();
407
+ * const gdprApplies = await AdsConsent.getGdprApplies();
408
+ * ```
409
+ */
410
+ getGdprApplies(): Promise<boolean>;
411
+ /**
412
+ * Returns the value stored under the `IABTCF_PurposeConsents` key
413
+ * in NSUserDefaults (iOS) / SharedPreferences (Android) as
414
+ * defined by the IAB Europe Transparency & Consent Framework.
415
+ *
416
+ * More information available here:
417
+ * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
418
+ *
419
+ * #### Example
420
+ *
421
+ * ```js
422
+ * import { AdsConsent } from '@invertase/react-native-google-ads';
423
+ *
424
+ * await AdsConsent.requestInfoUpdate();
425
+ * const purposeConsents = await AdsConsent.getPurposeConsents();
426
+ * const hasConsentForPurposeOne = purposeConsents.startsWith("1");
427
+ * ```
428
+ */
429
+ getPurposeConsents(): Promise<string>;
430
+ /**
431
+ * Returns the value stored under the `IABTCF_PurposeLegitimateInterests` key
432
+ * in NSUserDefaults (iOS) / SharedPreferences (Android) as
433
+ * defined by the IAB Europe Transparency & Consent Framework.
434
+ *
435
+ * More information available here:
436
+ * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
437
+ *
438
+ * #### Example
439
+ *
440
+ * ```js
441
+ * import { AdsConsent } from '@invertase/react-native-google-ads';
442
+ *
443
+ * await AdsConsent.requestInfoUpdate();
444
+ * const purposeLegitimateInterests = await AdsConsent.getPurposeLegitimateInterests();
445
+ * const hasLegitimateInterestForPurposeTwo = purposeLegitimateInterests.split("")[1] === "1";
446
+ * ```
447
+ */
448
+ getPurposeLegitimateInterests(): Promise<string>;
449
+ /**
450
+ * Provides information about a user's consent choices.
451
+ *
452
+ * #### Example
453
+ *
454
+ * ```js
455
+ * import { AdsConsent } from '@invertase/react-native-google-ads';
456
+ *
457
+ * const { storeAndAccessInformationOnDevice } = await AdsConsent.getUserChoices();
458
+ * ```
459
+ */
460
+ getUserChoices(): Promise<AdsConsentUserChoices>;
461
+ /**
462
+ * Resets the UMP SDK state.
463
+ *
464
+ * #### Example
465
+ *
466
+ * ```js
467
+ * import { AdsConsent } from '@invertase/react-native-google-ads';
468
+ *
469
+ * AdsConsent.reset();
470
+ * ```
471
+ */
472
+ reset(): void;
473
+ }
474
+ export interface Spec extends TurboModule {
475
+ requestInfoUpdate(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;
476
+ showForm(): Promise<AdsConsentInfo>;
477
+ showPrivacyOptionsForm(): Promise<AdsConsentInfo>;
478
+ loadAndShowConsentFormIfRequired(): Promise<AdsConsentInfo>;
479
+ getConsentInfo(): Promise<AdsConsentInfo>;
480
+ gatherConsent(): Promise<AdsConsentInfo>;
481
+ getTCString(): Promise<string>;
482
+ getTCModel(): Promise<TCModel>;
483
+ getGdprApplies(): Promise<boolean>;
484
+ getPurposeConsents(): Promise<string>;
485
+ getPurposeLegitimateInterests(): Promise<string>;
486
+ getUserChoices(): Promise<AdsConsentUserChoices>;
487
+ reset(): void;
488
+ }
489
+ declare const _default: Spec;
490
+ export default _default;
491
+ //# sourceMappingURL=NativeConsentModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeConsentModule.d.ts","sourceRoot":"","sources":["../../../../src/specs/modules/NativeConsentModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,WAAW,EAAuB,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC;;;;GAIG;AACH,oBAAY,wBAAwB;IAClC;;OAEG;IACH,QAAQ,IAAI;IAEZ;;OAEG;IACH,GAAG,IAAI;IAEP;;OAEG;IACH,OAAO,IAAI;CACZ;AAED;;GAEG;AACH,oBAAY,gBAAgB;IAC1B;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,QAAQ,aAAa;CACtB;AAED;;GAEG;AACH,oBAAY,yCAAyC;IACnD;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,YAAY,iBAAiB;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,cAAc,CAAC,EAAE,wBAAwB,CAAC;IAE1C;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;CAClC;AAED;;GAEG;AACH,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C,CAAC;IACnC,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACtC,6BAA6B,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACjD,cAAc,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACjD,KAAK,IAAI,IAAI,CAAC;CACf;;AAED,wBAAwF"}
@@ -0,0 +1,36 @@
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 type { TurboModule } from 'react-native';
18
+ import { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
19
+ import { AdapterStatus } from '../../types';
20
+ export interface Spec extends TurboModule {
21
+ readonly getConstants: () => {
22
+ REVENUE_PRECISION_ESTIMATED: number;
23
+ REVENUE_PRECISION_PRECISE: number;
24
+ REVENUE_PRECISION_PUBLISHER_PROVIDED: number;
25
+ REVENUE_PRECISION_UNKNOWN: number;
26
+ };
27
+ initialize(): Promise<AdapterStatus[]>;
28
+ setRequestConfiguration(requestConfiguration?: UnsafeObject): Promise<void>;
29
+ openAdInspector(): Promise<void>;
30
+ openDebugMenu(adUnit: string): void;
31
+ setAppVolume(volume: number): void;
32
+ setAppMuted(muted: boolean): void;
33
+ }
34
+ declare const _default: Spec;
35
+ export default _default;
36
+ //# sourceMappingURL=NativeGoogleMobileAdsModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeGoogleMobileAdsModule.d.ts","sourceRoot":"","sources":["../../../../src/specs/modules/NativeGoogleMobileAdsModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,QAAQ,CAAC,YAAY,EAAE,MAAM;QAC3B,2BAA2B,EAAE,MAAM,CAAC;QACpC,yBAAyB,EAAE,MAAM,CAAC;QAClC,oCAAoC,EAAE,MAAM,CAAC;QAC7C,yBAAyB,EAAE,MAAM,CAAC;KACnC,CAAC;IAEF,UAAU,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IACvC,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5E,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACnC;;AAED,wBAAiF"}