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
How to know if user selected "Do not consent"? #23
Comments
Sorry for opening the issue, I found this from stackoverflow. In case anyone else is interested: |
Hello. Did you find a way to handle this case? |
You can read the |
Thanks, @birgernass I'll definitely do that! |
I think I found it. For iOS we should use NSUserDefaults. |
Yes, exactly. On iOS you can do |
@birgernass @scaralfred doesn't AdMob handle this automatically? Do we need to make sure if ads should be shown or which type of ads to display (personalised or not personalised)? |
The information is encoded in the TCString which is send with the ad request. So yes, this is handled automatically. Google won't serve any ads if a user declined consent. There are other reasons to evaluate the consent though, e.g. to offer a subscription as an alternative to users who declined. While I don't intend to add functionality to inspect the individual consent choices to this library, I added such a method to the react-native-google-mobile-ads repository. |
@birgernass Thanks for the response. In my case I am using I am handling the EEA consent scenario, as indicated here. When testing the following code:
I get the ATT form (configured in the AdMob SDK) being displayed on my emulator. What if I press the 'do not consent' option? I mean, if I use this config for requesting ads:
Are those points automatically handled by Google Admob? |
@birgernass So, as you mentioned to me:
Does this mean that I do not need to change the The opposite is done here, at line 122. |
I personally don't work with AdMob, but with AdManager, of which I am also not an expert, so my answers should be taken with a grain of salt. Searching for You also don't have to avoid requests without consent. There is no penalty for requesting ads, as far as I'm aware, you just won't get any ads served. |
@birgernass https://developers.google.com/admob/ump/android/quick-start#forward-consent It seems that, for |
I see, thanks for clarifying! |
Hey @birgernass, I'm here again, sorry. As you told me, you are the person who developed this method. Well, this works great with EEA and GDPR consent. By the way, if we use personalized ads in our app, the user has to grant consent to the IDFA form (ATT). UMP will only display the ATT form for users outside the EEA, without including the GDPR one in the flow. As we have to be able to let AdMob know if the user granted consent or not (to show personalized ads), doing the following for users that are NOT IN THE EEA will result in a problem:
So, imagine that someone, from outside the EEA and using iOS, grants the respective permissions to the ATT form, which is displayed when calling invertase/react-native-google-mobile-ads#185 Do you know something about this? |
I'm not sure which behaviour people would actually expect. In the end the user did not give consent to those individual choices and they are not part of Apple's App Tracking Transparency framework. So one could argue that the |
Currently, after
UMP.showConsentForm()
, no matter the user selected "Consent" or "Do not consent", the returned result isCONSENT_STATUS.OBTAINED
.So when requesting Ads from Admob, how do I know if I should pass
requestNonPersonalizedAdsOnly
?Or I don't have to coz' Google already stored the user's preference?
Thank you!
The text was updated successfully, but these errors were encountered: