cordova-plugin-admob-free icon indicating copy to clipboard operation
cordova-plugin-admob-free copied to clipboard

the new Admob GDPR Update

Open X0t0 opened this issue 6 years ago • 14 comments

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

X0t0 avatar May 27 '18 15:05 X0t0

me too

youssefhamdane avatar May 27 '18 15:05 youssefhamdane

@anirnet i hope someone can help us

X0t0 avatar May 28 '18 03:05 X0t0

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

ivanov84 avatar May 28 '18 17:05 ivanov84

@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

X0t0 avatar May 28 '18 17:05 X0t0

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 avatar May 29 '18 19:05 jellomaster

@jellomaster thanks

youssefhamdane avatar May 29 '18 20:05 youssefhamdane

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

ratson avatar May 30 '18 12:05 ratson

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 avatar May 30 '18 19:05 jellomaster

@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

zawavie avatar May 31 '18 15:05 zawavie

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 avatar Jun 09 '18 16:06 tobyherrmann

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

tobyherrmann avatar Jun 09 '18 16:06 tobyherrmann

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

prantikv avatar Jun 15 '18 03:06 prantikv

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

prantikv avatar Jun 19 '18 12:06 prantikv

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

brunoalex avatar Aug 26 '20 09:08 brunoalex