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>await _aatkitFlutterPlugin.initAATKit(
AATKitConfiguration(
consent: ManagedConsent(
cmp: CMPGoogle(),
listener: ManagedConsentListener(
managedConsentCMPFailedToLoad: (error) {
print("[ManagedConsentListenerFlutter] managedConsentCMPFailedToLoad error: $error");
_aatkitFlutterPlugin.reloadConsent();
},
managedConsentCMPFailedToShow: (error) => print(
"[ManagedConsentListenerFlutter] managedConsentCMPFailedToShow error: $error"),
managedConsentCMPFinished: (state) => print(
"[ManagedConsentListenerFlutter] managedConsentCMPFinished state: $state"),
managedConsentNeedsUserInterface: () {
print("[ManagedConsentListenerFlutter] managedConsentNeedsUserInterface");
_aatkitFlutterPlugin.showConsentIfNeeded();
}),
),
),
);SourcePoint CMP Usage
SFBX/AppConsent
Last updated