poingstudios / godot-admob-android

Godot's AdMob Plugin for Android with support for Mediations.
https://poingstudios.github.io/godot-admob-plugin/
MIT License
303 stars 32 forks source link

How to show consent form again? #193

Closed Tobi-La closed 5 months ago

Tobi-La commented 7 months ago

Godot version

3.5.3

Plugin version

v2.1.4

Phone information

Honor 9x

Issue description

Hey, I have a button in my app where I want the user to be able to reconfigure the consent. However, calling MobileAds.request_user_consent() doesn't do anything.

From https://github.com/Poing-Studios/godot-admob-android/issues/57 I would understand that I need to reset the consent beforehand, but calling

MobileAds.reset_consent_state()
MobileAds.request_user_consent()

doesn't do the trick either.

Sorry if I overlook something, but I don't understand how this works.

Thanks for your help!

Steps to reproduce

  1. Configure consent
  2. Try to reconfigure consent

Additional context

No response

gumaciel commented 7 months ago

Hi @Tobi-La you don't need to reset the consent and ask again always, depends of your needs, you want to user be able to request again the consent without reloading the app, if yes, you could create a button which calls this code you mentioned

Are you still with this problem? Try to add a Timer with 1 or 2 seconds to see if appear again the consent form

kondor-dev commented 6 months ago

Hi, I've noticed that the documentation page (https://developers.google.com/admob/android/privacy?hl=en) has been updated.

The section "Privacy options" (https://developers.google.com/admob/android/privacy?hl=en#privacy_options) describes how to show consent form again. It says that method showPrivacyOptionsForm() should be called.

Besides, on the bottom of the page there is a big red warning about reset() method: "Caution: This method is intended to be used for testing purposes only. You shouldn't call reset() in production code."

In my opinion we cannot use current MobileAds.reset_consent_state() in the production. It should be updated according to the docs.

gumaciel commented 6 months ago

In my opinion we cannot use current MobileAds.reset_consent_state() in the production. It should be updated according to the docs.

This warning is old, so to clarify this we created a conversation on Mobile Ads SDK group:

According to this link, I understand the AdMob team says it can be used in production: https://groups.google.com/g/google-admob-ads-sdk/c/F_QHhhE5Qro/m/JaCULPL4BAAJ

So I don't really know if it can be used in production