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: gather consent method to make user consent easier #654

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

dylancom
Copy link
Collaborator

@dylancom dylancom commented Nov 15, 2024

Description

While checking the official ios docs for changes I noticed that Google uses a helper method in their examples which I think can benefit this library too. Making it less cumbersome to show a consent form when necessary.

So you don't first have to call requestInfoUpdate and then loadAndShowConsentFormIfRequired .
But just gatherConsent.

See: https://github.com/googleads/googleads-mobile-ios-examples/blob/043de5a21d5b529ded1fb845f9f8082d130113f8/Objective-C/admob/BannerExample/BannerExample/GoogleMobileAdsConsentManager.m#L45

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

Copy link

docs-page bot commented Nov 15, 2024

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

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

Documentation is deployed and generated using docs.page.

@dylancom dylancom force-pushed the feature/simplify-consent branch from 3b0a663 to 070db19 Compare November 15, 2024 16:52
@dylancom dylancom requested a review from mikehardy November 15, 2024 16:53
Copy link
Collaborator

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM good spot

@mikehardy mikehardy merged commit 9a9e5e5 into main Nov 15, 2024
12 checks passed
@mikehardy mikehardy deleted the feature/simplify-consent branch November 15, 2024 17:25
github-actions bot pushed a commit that referenced this pull request Nov 15, 2024
## [14.4.0](v14.3.1...v14.4.0) (2024-11-15)

### Features

* gather consent method to make user consent easier ([#654](#654)) ([9a9e5e5](9a9e5e5))
@mikehardy
Copy link
Collaborator

🎉 This PR is included in version 14.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ng-ha
Copy link

ng-ha commented Dec 18, 2024

@dylancom gatherConsent's type is incorrect here. It should be:
gatherConsent(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;

@dylancom
Copy link
Collaborator Author

@ng-ha You're right. Thanks for mentioning it.

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.

3 participants