android - How can I map Google Analytics consent signals using the Google User Messaging Platform SDK? - Stack Overflow

admin2025-04-18  4

In my Android app I ask EU users for consent to show personalized ads through Google's User Messaging Platform SDK.

What I want is to use that same platform to configure the Google Firebase Analytics consent signals (ad_storage, analytics_storage, ad_user_data and ad_personalization).

To do this, I am reading the IABTCF_PublisherConsent and IABTCF_PublisherLegitimateInterests strings, however, I don't know which purposes must obtain user consent to grant or deny each of the Google Firebase Analytics consent signals.

At the moment I am making the following mapping:

  • ad_storage & analytics_storage will be granted when purpose 1 (Store and/or access information on a device) has consent.
  • ad_user_data will be granted when purpose 1 has consent and purposes 2,7,9,10 have legitimate interest.
  • ad_personalization will be granted when purpose 1 has consent and purposes 2,3,4,7,9,10 have legitimate interest.

Is my implementation correct? Any help?

转载请注明原文地址:http://anycun.com/QandA/1744916560a89443.html