How can I get previous selection already load in ump

18 views
Skip to first unread message

Furkan kalender

unread,
May 30, 2025, 3:00:35 AM (10 days ago) May 30
to Google Mobile Ads SDK Developers
Hello,
I would like to be able to retrieve and store the user's preferences when the UMP (User Messaging Platform) prompt is shown on Android devices. Currently, this does not seem to be possible.
For example, when the UMP alert appears, the user may make some selections and tap "Allow." Later, they might want to update their preferences. In such a case, the prompt should open with their previous selections already loaded so they can review and modify them before saving again.
At the moment, I’m unable to achieve this. Is there any support or functionality you provide that can help with this use case?
Best regards,
Furkan

Mobile Ads SDK Forum Advisor

unread,
May 30, 2025, 8:49:54 AM (10 days ago) May 30
to google-adm...@googlegroups.com

Hi Furkan,

Thank you for contacting the Mobile Ads SDK Support team.

There isn't a direct API for you to  preload user selections into the UMP UI. This is because it's an internal, automatic function of the UMP SDK.

When testing your app with the UMP SDK, you might find it helpful to reset the state of the SDK so that you can simulate a user's first install experience. The SDK provides the reset() method to do this.

consentInformation.reset()

If you want to check the following:

  • Whether consent is required: For example, consent is required for the first time, or the previous consent decision expired.
  • Whether a privacy options entry point is required: Some privacy messages require apps to allow users to modify their privacy options at any time.

You should request an update of the user's consent information at every app launch, using requestConsentInfoUpdate()

consentInformation = UserMessagingPlatform.getConsentInformation(context)

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-05-30 05:48:28Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01rdn35:ref" (ADR-00309110)



Reply all
Reply to author
Forward
0 new messages