Managed Consent

Handle consent using managed consent

Introduction

AATKit’s Managed Consent is an easy way to facilitate IAB TCF compliant third-party Consent Management Platforms (CMPs) by providing a unified API and wrappers. In order to make use of Managed Consent, AATKit React Native plugin provides CMP implementations.

Google CMP Usage

Android requires appId to be added to the AndroidManifest file, like

<meta-data
          android:name="com.google.android.gms.ads.APPLICATION_ID"
          android:value="YOUR-APP-ID"/>

For iOS you need to set the GADApplicationIdentifier value to the Info.plist file, like:

<key>GADApplicationIdentifier</key>
<string>YOUR-APP-ID</string>

Uncomment configureGoogleCMP method call in initAATKit:

AATKitBinding.kt
private fun initAATKit() {
    ...

    //Comment out the bellow line if Google CMP is needed
    configureGoogleCMP(configuration)

    ...
}
AATKitBinding.swift
private func initAATKit() {
    ...

    //Comment out the bellow line if Google CMP is needed
    configureGoogleCMP(configuration: configuration)

    ...
}

Source Point CMP Usage

Uncomment configureSourcePointCMP method call in initAATKit, also make sure you pass all required parameters:

AATKitBinding.kt
private fun initAATKit() {
    ...

    //Comment out the bellow line if Ogury CMP is needed
    configureSourcePointCMP(configuration,<your-sccount-id>, <your-property-id>, "your-property-name", "your-pm-id")

    ...
}
AATKitBinding.swift
private func initAATKit() {
    ...

    //Comment out the bellow line if Ogury CMP is needed
    configureSourcePointCMP(configuration: configuration, accountId: "your-sccount-id", propertyId: "your-property-id", propertyName: "your-property-name", pmId: "your-pm-id")

    ...
}

Not using the CMP wrapper

If for some reason you do not want to use CMP wrappers, AATKit also provides another methods for GDPR compliance. The isConsentRequired configuration parameter allows you to inform AATKit if the user is subject to the GDPR laws:

AATKitBinding.kt
private fun initAATKit() {
    ...

    configuration.isConsentRequired = true

    ...
}
AATKitBinding.swift
private func initAATKit() {
    ...

    configuration.consentRequired = true

    ...
}

Last updated