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 AndroidManifest, 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>

Set Google CMP consent type when initializing AATKit:

RNAatkit.initWithConfiguration({
    consent: {
        "type": RNAatkit.ConsentType_ManagedCMPGoogle
    }
})

Ogury CMP Usage

Pass Asset Key as configuration parameter when initializing AATKit.

RNAatkit.initWithConfiguration({
    consent: {
        "type": RNAatkit.ConsentType_ManagedCMPOgury,
        "assetKeyCMPOgury": "your-asset-key"
    }
})

SourcePoint CMP Usage

Pass all required SourcePoint values as configuration parameters when initializing AATKit.

RNAatkit.initWithConfiguration({
    consent: {
        "type": RNAatkit.ConsentType_ManagedCMPSourcePoint,
        yourAccountID: your-Account-Id,
	yourPropertyId: your-Property-Id,
	yourPropertyName: "your-property-name",
	yourPMId: "your-PM-Id" 
    }
})

Last updated