react-native-google-mobile-ads 14.7.0 → 14.7.2

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/README.md CHANGED
@@ -30,6 +30,89 @@ React Native Google Mobile Ads is built with three key principals in mind;
30
30
  - 📄 **Well documented**
31
31
  - full reference & installation documentation alongside detailed guides and FAQs
32
32
 
33
+ ## Ad formats
34
+
35
+ ### App open
36
+
37
+ App open ads are a special ad format intended for publishers wishing to monetize their app load screens.
38
+
39
+ <img width="200" src="https://developers.google.com/static/admob/images/app-open-ad.png" alt="App open ad">
40
+
41
+ [Learn More](https://docs.page/invertase/react-native-google-mobile-ads/displaying-ads#app-open-ads)
42
+
43
+ ### Banner
44
+
45
+ Banner ad units display rectangular ads that occupy a portion of an app's layout.
46
+ They stay on screen while users are interacting with the app, either anchored at the top or bottom of the screen or inline with content as the user scrolls.
47
+ Banner ads can refresh automatically after a certain period of time.
48
+
49
+ #### Anchored adaptive
50
+
51
+ A dynamically sized banner that is full-width and auto-height. Anchored adaptive banners are expected to be always on-screen, locked to the screen’s top or bottom.
52
+
53
+ <img width="200" src="https://developers.google.com/static/admob/images/Android_adaptive.png" alt="Anchored adaptive">
54
+
55
+ [Learn More](https://docs.page/invertase/react-native-google-mobile-ads/displaying-ads#banner-ads-component)
56
+
57
+ #### Inline adaptive
58
+
59
+ Inline adaptive banners are larger, taller banners compared to anchored adaptive banners.
60
+ They are of variable height, and can be as tall as the device screen.
61
+ They are intended to be placed in scrolling content.
62
+
63
+ <img width="600" src="https://developers.google.com/static/admob/images/inline-adaptive.png" alt="Inline adaptive">
64
+
65
+ [Learn More](https://docs.page/invertase/react-native-google-mobile-ads/displaying-ads#banner-ads-component)
66
+
67
+ #### Collapsible
68
+
69
+ Collapsible banner ads are intended to improve performance of anchored ads that are otherwise a smaller size.
70
+
71
+ <img width="400" src="https://developers.google.com/static/admob/images/collapsible-banner.png" alt="Collapsible banner">
72
+
73
+ [Learn More](https://docs.page/invertase/react-native-google-mobile-ads/displaying-ads#collapsible-banner-ads)
74
+
75
+ #### Fixed size (legacy)
76
+
77
+ The Google Mobile Ads SDK supports fixed ad sizes for situations where adaptive banners ads don't meet your needs.
78
+ Banner (320x50), Large banner (320x100), Medium rectangle (300x250), full banner (468x60) and leaderboard (728x90).
79
+
80
+ [Learn More](https://docs.page/invertase/react-native-google-mobile-ads/displaying-ads#banner-ads-component)
81
+
82
+ ### Native
83
+
84
+ Native ads allow you to customize the look and feel of the ads that appear in your app.
85
+ You decide how and where they're placed, so the layout is more consistent your app's design.
86
+
87
+ <img width="300" src="https://developers.google.com/static/admob/images/format-native.svg" alt="Native">
88
+
89
+ [Work In Progress](https://github.com/invertase/react-native-google-mobile-ads/pull/650)
90
+
91
+ ### Interstitial
92
+
93
+ Interstitial ad units show full-page ads in your app. Place them at natural breaks & transitions in your app's interface, such as after level completion in a gaming app.
94
+
95
+ <img width="300" src="https://developers.google.com/static/admob/images/format-interstitial.svg" alt="Interstitial">
96
+
97
+ [Learn More](https://docs.page/invertase/react-native-google-mobile-ads/displaying-ads#interstitial-ads)
98
+
99
+ ### Rewarded
100
+
101
+ AdMob rewarded ad units allow you to reward users with in-app items for interacting with video ads, playable ads, and surveys.
102
+
103
+ <img width="300" src="https://developers.google.com/static/admob/images/format-rewarded.svg" alt="Rewarded">
104
+
105
+ [Learn More](https://docs.page/invertase/react-native-google-mobile-ads/displaying-ads#rewarded-ads)
106
+
107
+ ### Rewarded Interstitial
108
+
109
+ Rewarded interstitial is a type of incentivized ad format that allows you offer rewards for ads that appear automatically during natural app transitions.
110
+ Unlike rewarded ads, users aren't required to opt-in to view a rewarded interstitial.
111
+
112
+ <img width="300" src="https://developers.google.com/static/admob/images/format-rewarded-interstitial.svg" alt="Rewarded interstitial">
113
+
114
+ [Learn More](https://docs.page/invertase/react-native-google-mobile-ads/displaying-ads#rewarded-interstitial-ads)
115
+
33
116
  ## Migrating to the New Architecture Status (backwards compatible)
34
117
 
35
118
  This package can be used in both The Old and [The New Architecture](https://reactnative.dev/docs/the-new-architecture/landing-page).
@@ -189,6 +189,8 @@ After you have received the most up-to-date consent status, call `loadAndShowCon
189
189
  If the consent status is required, the SDK loads a form and immediately presents it.
190
190
  The completion handler is called after the form is dismissed. If consent is not required, the completion handler is called immediately.
191
191
 
192
+ To make it easier we added a helper method `gatherConsent` that combines requesting consent information and loading/presenting a consent form if necessary.
193
+
192
194
  Before requesting ads in your app, check if you have obtained consent from the user using `canRequestAds`.
193
195
  If an error occurs during the consent gathering process, you should still attempt to request ads.
194
196
  The UMP SDK uses the consent status from the previous session.
package/docs/index.mdx CHANGED
@@ -305,10 +305,8 @@ Note that these identifiers are subject to change and should be updated regularl
305
305
  "skAdNetworkItems": [
306
306
  "cstr6suwn9.skadnetwork",
307
307
  "4fzdc2evr5.skadnetwork",
308
- "4pfyvq9l8r.skadnetwork",
309
308
  "2fnua5tdw4.skadnetwork",
310
309
  "ydx93a7ass.skadnetwork",
311
- "5a6flpkh64.skadnetwork",
312
310
  "p78axxw29g.skadnetwork",
313
311
  "v72qych5uu.skadnetwork",
314
312
  "ludvb6z3bs.skadnetwork",
@@ -317,39 +315,34 @@ Note that these identifiers are subject to change and should be updated regularl
317
315
  "c6k4g5qg8m.skadnetwork",
318
316
  "s39g8k73mm.skadnetwork",
319
317
  "3qy4746246.skadnetwork",
320
- "f38h382jlk.skadnetwork",
321
318
  "hs6bdukanm.skadnetwork",
319
+ "mlmmfzh3r3.skadnetwork",
322
320
  "v4nxqhlyqp.skadnetwork",
323
321
  "wzmmz9fp6w.skadnetwork",
322
+ "su67r6k2v3.skadnetwork",
324
323
  "yclnxrl5pm.skadnetwork",
325
- "t38b2kh725.skadnetwork",
326
324
  "7ug5zh24hu.skadnetwork",
327
325
  "gta9lk7p23.skadnetwork",
328
326
  "vutu7akeur.skadnetwork",
329
327
  "y5ghdn5j9k.skadnetwork",
330
- "n6fk4nfna4.skadnetwork",
331
328
  "v9wttpbfk9.skadnetwork",
332
329
  "n38lu8286q.skadnetwork",
333
330
  "47vhws6wlr.skadnetwork",
334
331
  "kbd757ywx3.skadnetwork",
335
332
  "9t245vhmpl.skadnetwork",
336
- "eh6m2bh4zr.skadnetwork",
337
333
  "a2p9lx4jpn.skadnetwork",
338
334
  "22mmun2rn5.skadnetwork",
339
335
  "4468km3ulz.skadnetwork",
340
336
  "2u9pt9hc89.skadnetwork",
341
337
  "8s468mfl3y.skadnetwork",
342
- "klf5c3l5u5.skadnetwork",
343
338
  "ppxm28t8ap.skadnetwork",
344
- "ecpz2srf59.skadnetwork",
345
339
  "uw77j35x4d.skadnetwork",
346
340
  "pwa73g5rt2.skadnetwork",
347
- "mlmmfzh3r3.skadnetwork",
348
341
  "578prtvx9j.skadnetwork",
349
342
  "4dzt52r2t5.skadnetwork",
343
+ "tl55sbb4fm.skadnetwork",
350
344
  "e5fvkxwrpn.skadnetwork",
351
345
  "8c4e2ghe7u.skadnetwork",
352
- "zq492l623r.skadnetwork",
353
346
  "3rd42ekr43.skadnetwork",
354
347
  "3qcr597p9d.skadnetwork"
355
348
  ]
@@ -408,7 +401,10 @@ Within your projects configuration file, you have to provide a user tracking usa
408
401
 
409
402
  #### Requesting App Tracking Transparency authorization
410
403
 
411
- To request the App Tracking Transparency authorization we recommend using the [react-native-permissions](https://github.com/zoontek/react-native-permissions) library or making it part of the UMP consent flow [European User Consent page](/european-user-consent).
404
+ To request the App Tracking Transparency authorization we recommend using a library or making it part of the UMP consent flow [European User Consent page](/european-user-consent).
405
+
406
+ <Tabs groupId="framework" values={[{label: 'React Native', value: 'bare'}, {label: 'Expo', value: 'expo'}]}>
407
+ <TabItem value="bare">
412
408
 
413
409
  ```js
414
410
  import { check, request, PERMISSIONS, RESULTS } from 'react-native-permissions';
@@ -424,6 +420,29 @@ const adapterStatuses = await mobileAds().initialize();
424
420
  // Now ads can be loaded.
425
421
  ```
426
422
 
423
+ </TabItem>
424
+ <TabItem value="expo">
425
+
426
+ ```js
427
+ import {
428
+ getTrackingPermissionsAsync,
429
+ PermissionStatus,
430
+ requestTrackingPermissionsAsync,
431
+ } from 'expo-tracking-transparency';
432
+
433
+ const { status } = await getTrackingPermissionsAsync();
434
+ if (status === PermissionStatus.UNDETERMINED) {
435
+ await requestTrackingPermissionsAsync();
436
+ }
437
+
438
+ const adapterStatuses = await mobileAds().initialize();
439
+
440
+ // Now ads can be loaded.
441
+ ```
442
+
443
+ </TabItem>
444
+ </Tabs>
445
+
427
446
  ### European User Consent
428
447
 
429
448
  Out of the box, AdMob does not handle any related regulations which you may need to enforce on your application.
@@ -54,6 +54,10 @@ RCT_EXPORT_MODULE();
54
54
  return dispatch_get_main_queue();
55
55
  }
56
56
 
57
+ + (BOOL)requiresMainQueueSetup {
58
+ return YES;
59
+ }
60
+
57
61
  RCT_EXPORT_METHOD(appOpenLoad
58
62
  : (double)requestId adUnitId
59
63
  : (NSString *)adUnitId requestOptions
@@ -56,6 +56,10 @@ RCT_EXPORT_MODULE();
56
56
  return dispatch_get_main_queue();
57
57
  }
58
58
 
59
+ + (BOOL)requiresMainQueueSetup {
60
+ return YES;
61
+ }
62
+
59
63
  RCT_EXPORT_METHOD(interstitialLoad
60
64
  : (double)requestId adUnitId
61
65
  : (NSString *)adUnitId requestOptions
@@ -36,6 +36,10 @@ RCT_EXPORT_MODULE();
36
36
  return dispatch_get_main_queue();
37
37
  }
38
38
 
39
+ + (BOOL)requiresMainQueueSetup {
40
+ return YES;
41
+ }
42
+
39
43
  #pragma mark -
40
44
  #pragma mark Google Mobile Ads Methods
41
45
 
@@ -56,6 +56,10 @@ RCT_EXPORT_MODULE();
56
56
  return dispatch_get_main_queue();
57
57
  }
58
58
 
59
+ + (BOOL)requiresMainQueueSetup {
60
+ return YES;
61
+ }
62
+
59
63
  RCT_EXPORT_METHOD(rewardedInterstitialLoad
60
64
  : (double)requestId adUnitId
61
65
  : (NSString *)adUnitId requestOptions
@@ -54,6 +54,10 @@ RCT_EXPORT_MODULE();
54
54
  return dispatch_get_main_queue();
55
55
  }
56
56
 
57
+ + (BOOL)requiresMainQueueSetup {
58
+ return YES;
59
+ }
60
+
57
61
  RCT_EXPORT_METHOD(rewardedLoad
58
62
  : (double)requestId adUnitId
59
63
  : (NSString *)adUnitId requestOptions
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","AdsConsentDebugGeography","exports","AdsConsentStatus","AdsConsentPrivacyOptionsRequirementStatus","_default","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeConsentModule.ts"],"mappings":";;;;;;AAiBA,IAAAA,YAAA,GAAAC,OAAA;AAjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AAJA,IAKYC,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,0BAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA;AA2BpC;AACA;AACA;AAFA,IAGYE,gBAAgB,GAAAD,OAAA,CAAAC,gBAAA,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;AAsB5B;AACA;AACA;AAFA,IAGYC,yCAAyC,GAAAF,OAAA,CAAAE,yCAAA,0BAAzCA,yCAAyC;EAAzCA,yCAAyC;EAAzCA,yCAAyC;EAAzCA,yCAAyC;EAAA,OAAzCA,yCAAyC;AAAA;AAiBrD;AACA;AACA;AAkBA;AACA;AACA;AA4BA;AACA;AACA;AACA;AACA;AACA;AALA,IAAAC,QAAA,GAAAH,OAAA,CAAAI,OAAA,GAiYeC,gCAAmB,CAACC,YAAY,CAAO,gCAAgC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","AdsConsentDebugGeography","exports","AdsConsentStatus","AdsConsentPrivacyOptionsRequirementStatus","_default","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeConsentModule.ts"],"mappings":";;;;;;AAiBA,IAAAA,YAAA,GAAAC,OAAA;AAjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AAJA,IAKYC,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,0BAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA;AA2BpC;AACA;AACA;AAFA,IAGYE,gBAAgB,GAAAD,OAAA,CAAAC,gBAAA,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;AAsB5B;AACA;AACA;AAFA,IAGYC,yCAAyC,GAAAF,OAAA,CAAAE,yCAAA,0BAAzCA,yCAAyC;EAAzCA,yCAAyC;EAAzCA,yCAAyC;EAAzCA,yCAAyC;EAAA,OAAzCA,yCAAyC;AAAA;AAiBrD;AACA;AACA;AAkBA;AACA;AACA;AA4BA;AACA;AACA;AACA;AACA;AACA;AALA,IAAAC,QAAA,GAAAH,OAAA,CAAAI,OAAA,GAgYeC,gCAAmB,CAACC,YAAY,CAAO,gCAAgC,CAAC","ignoreList":[]}
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // Generated by genversion.
8
- const version = exports.version = '14.7.0';
8
+ const version = exports.version = '14.7.2';
9
9
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["TurboModuleRegistry","AdsConsentDebugGeography","AdsConsentStatus","AdsConsentPrivacyOptionsRequirementStatus","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeConsentModule.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAsBA,mBAAmB,QAAQ,cAAc;AAG/D;AACA;AACA;AACA;AACA;AACA,WAAYC,wBAAwB,0BAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA;;AA2BpC;AACA;AACA;AACA,WAAYC,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;;AAsB5B;AACA;AACA;AACA,WAAYC,yCAAyC,0BAAzCA,yCAAyC;EAAzCA,yCAAyC;EAAzCA,yCAAyC;EAAzCA,yCAAyC;EAAA,OAAzCA,yCAAyC;AAAA;;AAiBrD;AACA;AACA;;AAkBA;AACA;AACA;;AA4BA;AACA;AACA;AACA;AACA;AACA;;AA4XA,eAAeH,mBAAmB,CAACI,YAAY,CAAO,gCAAgC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["TurboModuleRegistry","AdsConsentDebugGeography","AdsConsentStatus","AdsConsentPrivacyOptionsRequirementStatus","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeConsentModule.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAsBA,mBAAmB,QAAQ,cAAc;AAG/D;AACA;AACA;AACA;AACA;AACA,WAAYC,wBAAwB,0BAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA;;AA2BpC;AACA;AACA;AACA,WAAYC,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;;AAsB5B;AACA;AACA;AACA,WAAYC,yCAAyC,0BAAzCA,yCAAyC;EAAzCA,yCAAyC;EAAzCA,yCAAyC;EAAzCA,yCAAyC;EAAA,OAAzCA,yCAAyC;AAAA;;AAiBrD;AACA;AACA;;AAkBA;AACA;AACA;;AA4BA;AACA;AACA;AACA;AACA;AACA;;AA2XA,eAAeH,mBAAmB,CAACI,YAAY,CAAO,gCAAgC,CAAC","ignoreList":[]}
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '14.7.0';
2
+ export const version = '14.7.2';
3
3
  //# sourceMappingURL=version.js.map
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "14.7.0";
1
+ export declare const SDK_VERSION = "14.7.2";
2
2
  export { default, MobileAds } from './MobileAds';
3
3
  export { AdsConsentDebugGeography, AdsConsentInfo, AdsConsentInfoOptions, AdsConsentInterface, AdsConsentPrivacyOptionsRequirementStatus, AdsConsentStatus, AdsConsentUserChoices, } from './specs/modules/NativeConsentModule';
4
4
  export { AdsConsentPurposes } from './AdsConsentPurposes';
@@ -367,8 +367,10 @@ export interface AdsConsentInterface {
367
367
  /**
368
368
  * Helper method to call the UMP SDK methods to request consent information and load/present a
369
369
  * consent form if necessary.
370
+ *
371
+ * @param options An AdsConsentInfoOptions interface.
370
372
  */
371
- gatherConsent(): Promise<AdsConsentInfo>;
373
+ gatherConsent(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;
372
374
  /**
373
375
  * Returns the value stored under the `IABTCF_TCString` key
374
376
  * in NSUserDefaults (iOS) / SharedPreferences (Android) as
@@ -485,13 +487,10 @@ export interface Spec extends TurboModule {
485
487
  showPrivacyOptionsForm(): Promise<AdsConsentInfo>;
486
488
  loadAndShowConsentFormIfRequired(): Promise<AdsConsentInfo>;
487
489
  getConsentInfo(): Promise<AdsConsentInfo>;
488
- gatherConsent(): Promise<AdsConsentInfo>;
489
490
  getTCString(): Promise<string>;
490
- getTCModel(): Promise<TCModel>;
491
491
  getGdprApplies(): Promise<boolean>;
492
492
  getPurposeConsents(): Promise<string>;
493
493
  getPurposeLegitimateInterests(): Promise<string>;
494
- getUserChoices(): Promise<AdsConsentUserChoices>;
495
494
  reset(): void;
496
495
  }
497
496
  declare const _default: Spec;
@@ -1 +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;IAEX;;OAEG;IACH,kBAAkB,IAAI;IAEtB;;OAEG;IACH,KAAK,IAAI;CACV;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,oB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C,sBAAsB,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;IAClD,gCAAgC,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;IAC5D,cAAc,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1C,aAAa,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;IACzC,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/B,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC,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"}
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;IAEX;;OAEG;IACH,kBAAkB,IAAI;IAEtB;;OAEG;IACH,KAAK,IAAI;CACV;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;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AClD,gCAAgC,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;IAC5D,cAAc,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1C,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACtC,6BAA6B,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACjD,KAAK,IAAI,IAAI,CAAC;CACf;;AAED,wBAAwF"}
@@ -1,2 +1,2 @@
1
- export declare const version = "14.7.0";
1
+ export declare const version = "14.7.2";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-google-mobile-ads",
3
- "version": "14.7.0",
3
+ "version": "14.7.2",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Google Mobile Ads is an easy way to monetize mobile apps with targeted, in-app advertising.",
6
6
  "main": "lib/commonjs/index.js",
@@ -394,8 +394,10 @@ export interface AdsConsentInterface {
394
394
  /**
395
395
  * Helper method to call the UMP SDK methods to request consent information and load/present a
396
396
  * consent form if necessary.
397
+ *
398
+ * @param options An AdsConsentInfoOptions interface.
397
399
  */
398
- gatherConsent(): Promise<AdsConsentInfo>;
400
+ gatherConsent(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;
399
401
 
400
402
  /**
401
403
  * Returns the value stored under the `IABTCF_TCString` key
@@ -520,13 +522,10 @@ export interface Spec extends TurboModule {
520
522
  showPrivacyOptionsForm(): Promise<AdsConsentInfo>;
521
523
  loadAndShowConsentFormIfRequired(): Promise<AdsConsentInfo>;
522
524
  getConsentInfo(): Promise<AdsConsentInfo>;
523
- gatherConsent(): Promise<AdsConsentInfo>;
524
525
  getTCString(): Promise<string>;
525
- getTCModel(): Promise<TCModel>;
526
526
  getGdprApplies(): Promise<boolean>;
527
527
  getPurposeConsents(): Promise<string>;
528
528
  getPurposeLegitimateInterests(): Promise<string>;
529
- getUserChoices(): Promise<AdsConsentUserChoices>;
530
529
  reset(): void;
531
530
  }
532
531
 
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '14.7.0';
2
+ export const version = '14.7.2';