Google CMP
Handle consent using Google User Messaging Platform
Requirements
Obtain a Google app ID by following the Google Funding Choices Help Center instructions.
Set the Google appID in the AndroidManifest.xml file:
Add the Google CMP dependency to your build.gradle:
Make sure, your Google CMP has been set up at its backend dashboard. Our support recommends certain vendors to be included in your server-side setup in order to yield optimal revenues. We also recommend that CMP should be geographically targeted to "Everywhere", for handling of opt-out consent scenarios. Please also refer to your Google CMP’s documentation.
Usage
Follow the instructions in the Managed Consent introduction section.
Google CMP needs an Activity instance when being created.
Create an instance of
CMPGoogle
(CMPGoogle
implementsCMP
interface).Pass the created
CMPGoogle
instance while creating the ManagedConsent using thepublic constructor ManagedConsent(cmp: CMP, context: Context, delegate: ManagedConsent.ManagedConsentDelegate)
.
Last updated