ratson / cordova-plugin-admob-free

New development has been moved to "admob-plus-cordova", https://github.com/admob-plus/admob-plus/tree/master/packages/cordova
https://github.com/admob-plus/admob-plus
MIT License
499 stars 214 forks source link

the new Admob GDPR Update #223

Open X0t0 opened 5 years ago

X0t0 commented 5 years ago

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

youssefhamdane commented 5 years ago

me too

X0t0 commented 5 years ago

@anirnet i hope someone can help us

ivanov84 commented 5 years ago

@X0t0 You can build your own modal with agreement and pass "npa" param when users deny agreement

X0t0 commented 5 years ago

@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

jellomaster commented 5 years ago

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} });

youssefhamdane commented 5 years ago

@jellomaster thanks

ratson commented 5 years ago

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

jellomaster commented 5 years ago

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.

zawavie commented 5 years ago

@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

tobyherrmann commented 5 years ago

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

tobyherrmann commented 5 years ago

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

prantikv commented 5 years ago

Hope the adExtras: {npa: 1} is added as an option to the plugin @ratson

prantikv commented 5 years ago

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

brunoalex commented 3 years ago

@ratson is adExtras: {npa: 1} an option that we can use ? i did and it looks like the same ads are displayd