Vendor Consent

Handle consent using AATKit vendor consent

Introduction

You should consider using AATKit’s Vendor Consent, in case you want to utilize a CMP that AATKit has not yet adapted with its ManagedConsent. In that case, you might want to pass individual consents (coming from your CMP) to specific non-IAB compliant ad networks/vendors.

Usage

To use it, you need to initialize AATKit with pass VendorConsent as consent parameter. Also you should pass the map of networks with NonIABConsent value. AATKit will set consent as unknown for another networks.

await _aatkitFlutterPlugin.initAATKit(
  AATKitConfiguration(
    consent: VendorConsent(
      consentForAddapptr: NonIABConsent.obtained,
      consentForNetworks: {
        AdNetwork.admob: NonIABConsent.obtained,
        AdNetwork.dfp: NonIABConsent.withheld,
        AdNetwork.unity: NonIABConsent.obtained,
      },
    ),
  ),
);

Last updated