Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: initialize sdk in parallel #512

Merged
merged 1 commit into from
Dec 30, 2023
Merged

Conversation

dylancom
Copy link
Collaborator

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

Copy link

docs-page bot commented Dec 30, 2023

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.

@dylancom dylancom force-pushed the feature/improved-ump-integration branch from 18eeb9e to 54c714a Compare December 30, 2023 15:31
Copy link

codecov bot commented Dec 30, 2023

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
@@            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     

@dylancom dylancom merged commit 3a427ee into main Dec 30, 2023
10 of 12 checks passed
@dylancom dylancom deleted the feature/improved-ump-integration branch December 30, 2023 15:57
@mikehardy
Copy link
Collaborator

🎉 This PR is included in version 12.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants