GDPR message doesn't show up on internal test

684 views
Skip to first unread message

RAF Games

unread,
Oct 4, 2023, 1:36:14 PM10/4/23
to Google Mobile Ads SDK Developers
Hello! I recently implemented GDPR message to my game with Unity. I can see the message on Unity Editor also I can see it when I build an apk and test it on my phone.
But in the internal test of the game, the message doesn't show up.
I don't understand why it shows up on apk but not in the internal test.
How can I solve this problem?

This is my code for the message;

using System.Collections; using System.Collections.Generic; using UnityEngine; using GoogleMobileAds.Ump.Api; public class GDPRScript : MonoBehaviour { ConsentForm _consentForm; void Start() { var debugSettings = new ConsentDebugSettings { // Geography appears as in EEA for debug devices. DebugGeography = DebugGeography.EEA, TestDeviceHashedIds = new List<string> { "CD704D23723BD6DA9DC9475F8BFEFDB6" } }; // Here false means users are not under age. ConsentRequestParameters request = new ConsentRequestParameters { TagForUnderAgeOfConsent = false, ConsentDebugSettings = debugSettings, }; // Check the current consent information status. ConsentInformation.Update(request, OnConsentInfoUpdated); } void OnConsentInfoUpdated(FormError error) { if (error != null) { // Handle the error. Debug.Log(error); return; } if (ConsentInformation.IsConsentFormAvailable()) { LoadConsentForm(); } // If the error is null, the consent information state was updated. // You are now ready to check if a form is available. } void LoadConsentForm() { // Loads a consent form. ConsentForm.Load(OnLoadConsentForm); } void OnLoadConsentForm(ConsentForm consentForm, FormError error) { if (error != null) { // Handle the error. Debug.Log(error); return; } // The consent form was loaded. // Save the consent form for future requests. _consentForm = consentForm; // You are now ready to show the form. if (ConsentInformation.ConsentStatus == ConsentStatus.Required) { _consentForm.Show(OnShowForm); } } void OnShowForm(FormError error) { if (error != null) { // Handle the error. Debug.Log(error); return; } // Handle dismissal by reloading form. LoadConsentForm(); } }

and I am attaching my GDPR message;
Screenshot 2023-10-04 163238.png

RAF Games

unread,
Oct 7, 2023, 4:06:28 AM10/7/23
to Google Mobile Ads SDK Developers
Hi AdMob Support Team,

I've followed the guidelines and tried my best, but I can't get the GDPR message to show during internal testing. I've also tried seeking help on forums and reaching out to AdMob support, but I haven't received any response.

It's frustrating to be required to implement something without getting any support when issues arise. Can you please assist me in getting the GDPR message to work correctly in my app?

RAF Games

unread,
Oct 8, 2023, 9:21:28 AM10/8/23
to Google Mobile Ads SDK Developers
anyone?

Mobile Ads SDK Forum Advisor

unread,
Oct 13, 2023, 4:15:14 AM10/13/23
to rafgam...@gmail.com, google-adm...@googlegroups.com
Hello there,

Thanks for reaching out.

Can you clarify what do you mean by internal test of the game? Are you testing on Android emulator or iPhone simulator? If you test on physical devices, have you enabled test ads?

Can you verify if you are using the correct test device ID(s) and where in the code you are showing the consent form to the users?


Regards,
Joshua

ref:_00D1U1174p._5004Q2pOsmk:ref

RAF Games

unread,
Nov 20, 2023, 7:05:26 PM11/20/23
to Google Mobile Ads SDK Developers
I solved it! In Admob, in your GDPR Message's settings, select the target to everywhere. Because I don't live in the European region, this way I can see the test message on my internal test on Google Play Console.

On Wednesday, October 4, 2023 at 8:36:14 PM UTC+3 RAF Games wrote:
Reply all
Reply to author
Forward
0 new messages