Managed Consent
Handle consent using managed consent
Introduction
Google CMP Usage
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="YOUR-APP-ID"/><key>GADApplicationIdentifier</key>
<string>YOUR-APP-ID</string>AATKitIonic.initialize({
consent: {
type: "cmpGoogle"
}
});
...
document.addEventListener('managedConsentNeedsUserInterface', (data: any) => {
// CMP is loaded and ready to be shown
AATKitIonic.showConsentDialogIfNeeded();
});
document.addEventListener('managedConsentCMPFinished', (data: any) => {
// The user finished his action with CMP with the state as the user chosen state
});
document.addEventListener('managedConsentCMPFailedToLoad', (data: any) => {
// CMP failed to load with the error message.
// Reload the CMP.
AATKitIonic.reloadConsent();
});
document.addEventListener('managedConsentCMPFailedToShow', (data: any) => {
// CMP failed to show with the error message
console.log('managedConsentCMPFailedToShow error: ' + data.error);
});SourcePoint CMP Usage
SFBX/AppConsent
Last updated