Shin-NiL / Godot-Android-Admob-Plugin

Android AdMob plugin for Godot Game Engine 3.2 or higher
MIT License
543 stars 66 forks source link

How GDPR consent work? #228

Closed lele25811 closed 10 months ago

lele25811 commented 10 months ago

Godot Engine 3.5

AdMob Plugin version: 6.2.0

I can't get GDPR consent to work (already set on my application's admob, the ads works well), I found some tutorials on YouTube where they show that it works without showing if they change anything. If anyone can help me understand I would be grateful.

huehue-tangerine commented 10 months ago

Did you create the GDPR message on admob site?

lele25811 commented 10 months ago

Did you create the GDPR message on admob site?

Yes, i did. I don't understand how to make it work on godot engine.

huehue-tangerine commented 10 months ago

Check the app log with adb logcat after you call _request_consent_info_update()_ function(*). The Java code put some debug informations in godot log.

admob = Engine.get_singleton("GodotAdMob") 

...

admob.initWithContentRating(
    isReal, 
    children_directed,
    is_personalized,
    max_ad_content_rate
)

...

admob.requestConsentInfoUpdate(testing_consent)

(*) or requestConsentInfoUpdate if you're using the singleton directly.

lele25811 commented 10 months ago

Check the app log with adb logcat after you call _request_consent_info_update()_ function(*). The Java code put some debug informations in godot log.

admob = Engine.get_singleton("GodotAdMob") 

...

admob.initWithContentRating(
  isReal, 
  children_directed,
  is_personalized,
  max_ad_content_rate
)

...

admob.requestConsentInfoUpdate(testing_consent)

(*) or requestConsentInfoUpdate if you're using the singleton directly.

thanks, I managed to solve it