cordova-plugin-admob-free
cordova-plugin-admob-free copied to clipboard
the new Admob GDPR Update
Hi, is there any option to the GDPR: https://developers.google.com/admob/android/eu-consent#forward_consent_without_the_consent_sdk
because i have no idea what to do
me too
@anirnet i hope someone can help us
@X0t0 You can build your own modal with agreement and pass "npa" param when users deny agreement
@ivanov84 can you give me a small tutorial how to pass npa , because i don't know and i couldn't find this npa in the documentation
You'll need to handle permissions on your side.. so make a popup with the terms and agree/deny buttons. On agree save the setting and continue as normal. If they disagree, save the preference and add the npa:1 as adExtras
Ex admob.banner.config({ id: 'bannerId', adExtras: {npa: 1} });
@jellomaster thanks
@jellomaster Thank you for answering this. I am really have no idea about GDPR.
It would be great if anyone could explain what needs to done for library like this, and any further actions required to comply to GDPR, it would help many users.
I don't think you need to change anything in the plugin... The optimal solution would be for another plugin. The plugin should use some sort of database (ex. sqlite) and on startup don't display ads and load the value... if it's blank, display a modal that describes the Personalized ads feature and provide Allow / Deny buttons. Store the user's choice in the database for the next time the app loads. This way when displaying ads you can have an if/else section. If personalized ads are allowed, use the normal code. Else, use adExtras: {npa: 1} in the config like I mentioned above.
@jellomaster if you could give a small example (i mean the code) of how to do it that will be so helpfull 👍 Thanks for your reply
Because I had the same problem in one of my apps, I have written a new plugin yesterday night and tody, which wrapps the google consent sdk for ionic. At the moment it supports only Android.
You can get it here: https://github.com/tobyherrmann/cordova-plugin-google-consent
To pass the NPA parameter with typescript you have to write a custom config, because the ionic wrapper does not support it at the moment.
See #210
Hope the adExtras: {npa: 1}
is added as an option to the plugin @ratson
A thing to note here is that it seems that the npa parameter is not the final solution.
The following is mentioned in the docs
If non-personalized ads are requested, the ad request URL currently includes &npa=1. However, note that this is an internal implementation detail of the Google Mobile Ads SDK and is subject to change.
As they say it is "subject to change" this means that there will be no getting around the consent SDK in the future.
The plugin needs to be updated ASAP.
cc: @ratson
@ratson is adExtras: {npa: 1} an option that we can use ? i did and it looks like the same ads are displayd