User consent settings are not saved

350 views
Skip to first unread message

Stanisław

unread,
Aug 10, 2023, 3:39:13 AM8/10/23
to Google Mobile Ads SDK Developers
Hello.

I am displaying the consent form, the user in the options changes the flags. Saves the form

ConsentRequestParameters params = new ConsentRequestParameters.Builder()
.setTagForUnderAgeOfConsent(false)
.build();

consentInformation.requestConsentInfoUpdate(
activity,
params,
() ->
UserMessagingPlatform.loadAndShowConsentFormIfRequired(
activity,
onConsentFormDismissedListener -> {
onConsentGatheringCompleteListener.consentGatheringComplete(onConsentFormDismissedListener);
}),
onConsentInfoUpdateFailureListener ->
onConsentGatheringCompleteListener.consentGatheringComplete(onConsentInfoUpdateFailureListener)
);

Later, when the user displays the consent options, there are no saved changes. The form has default flags.
UserMessagingPlatform.showPrivacyOptionsForm

Please help. Why are user consent changes not saved?

Regards Stanisław

Mobile Ads SDK Forum Advisor

unread,
Aug 10, 2023, 9:37:52 AM8/10/23
to albatr...@gmail.com, google-adm...@googlegroups.com
Hi Stanisław,

Thank you for reaching out to us. Could you please provide to us at least a test project where the behavior is reproducible? This will greatly help us in our investigation. You may send it to us using the steps below.

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002nqWBNQA2&entry.80707362=00192635

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.


 
This message is in relation to case "ref:_00D1U1174p._5004Q2nqWBN:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Stanisław

unread,
Aug 11, 2023, 3:20:10 AM8/11/23
to Google Mobile Ads SDK Developers
I sent a test project. Using the form from link. After launching, the consent form appears. There is one button in the project. Clicking it displays consent. Their changes are not saved.

Mobile Ads SDK Forum Advisor

unread,
Aug 11, 2023, 8:52:22 AM8/11/23
to albatr...@gmail.com, google-adm...@googlegroups.com
Hi Cygnus,

Thank you for getting back to us. However, it seems that the files that you uploaded didn't went through. Could you please upload it once again using the steps provided on this link? You may also upload it into your Google Drive then provide to us the shareable link.

Stanisław

unread,
Aug 16, 2023, 3:39:18 AM8/16/23
to Google Mobile Ads SDK Developers
I sent a test project again. Using the form from link. After launching, the consent form appears. There is one button in the project. Clicking it displays consent. Their changes are not saved.
google_send.jpg

Mobile Ads SDK Forum Advisor

unread,
Aug 16, 2023, 10:15:21 AM8/16/23
to albatr...@gmail.com, google-adm...@googlegroups.com
Hi Cygnus,

Thank you for providing the requested information. As per checking with the project file, I'm getting a Unsupported class file major version 64 error. Could kindly share to us the Android Studio version that you were using?

Stanisław

unread,
Aug 17, 2023, 2:55:20 AM8/17/23
to Google Mobile Ads SDK Developers
Android Studio Giraffe | 2022.3.1
Build #AI-223.8836.35.2231.10406996, built on June 29, 2023
Runtime version: 17.0.6+0-b2043.56-10027231 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 6
Registry:
    external.system.auto.import.disabled=true
    ide.text.editor.with.preview.show.floating.toolbar=false

Non-Bundled Plugins:
    com.android.tool.sizereduction.plugin (0.3.0)

Mobile Ads SDK Forum Advisor

unread,
Aug 17, 2023, 8:45:43 AM8/17/23
to albatr...@gmail.com, google-adm...@googlegroups.com
Hi Cygnus,

Thank you for responding back. Allow me to share this to a wider team for further investigation. I'll update you the soonest I hear back from them.

Mobile Ads SDK Forum Advisor

unread,
Aug 18, 2023, 4:25:27 PM8/18/23
to albatr...@gmail.com, google-adm...@googlegroups.com
Hi Cygnus,

Thank you for your inquiry. What are you observing is the expected behavior. The consent settings are saved; however, when the privacy options form is presented again, the choices are displayed as default. This is a consent management platform requirement that Google has to follow. Reminder that the consent settings are saved but are just not reflected in the form. 

Thanks,
Justin

ref:_00D1U1174p._5004Q2nqWBN:ref

Stanisław

unread,
Aug 21, 2023, 3:47:38 AM8/21/23
to Google Mobile Ads SDK Developers

Thank you for your help.
Reply all
Reply to author
Forward
0 new messages