invertase / react-native-google-mobile-ads

React Native Google Mobile Ads enables you to monetize your app with AdMob.
https://docs.page/invertase/react-native-google-mobile-ads
Other
629 stars 121 forks source link

feat: initialize sdk in parallel #512

Closed dylancom closed 6 months ago

dylancom commented 6 months ago

Description

As a latency best practice, Google recommends not waiting for the loadAndPresentIfRequired callback to complete so you can start loading ads as soon as possible after your app launches.

This PR adds a method that directly exposes the UMP Consent Information without having to wait for callbacks. And so the SDK can be initialized faster if consent was obtained in a previous session.

See: https://developers.google.com/admob/ios/privacy#request-ads https://developers.google.com/admob/android/privacy#request-ads

docs-page[bot] commented 6 months ago

To view this pull requests documentation preview, visit the following URL:

docs.page/invertase/react-native-google-mobile-ads~512

Documentation is deployed and generated using docs.page.

codecov[bot] commented 6 months ago

Codecov Report

Merging #512 (54c714a) into main (daa3eee) will decrease coverage by 0.16%. Report is 1 commits behind head on main. The diff coverage is 0.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #512 +/- ## ========================================== - Coverage 44.16% 43.99% -0.16% ========================================== Files 29 29 Lines 530 532 +2 Branches 147 147 ========================================== Hits 234 234 - Misses 296 298 +2 ```
mikehardy commented 6 months ago

:tada: This PR is included in version 12.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: