---
description: Handle consent using managed consent
---

# Managed Consent

### Introduction

AATKit’s Managed Consent is an easy way to facilitate [IAB TCF](https://iabeurope.eu/transparency-consent-framework/) compliant third-party [Consent Management Platforms](https://iabeurope.eu/tcf-for-cmps/) (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

```xml
<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:

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

Set Google CMP consent type when initializing AATKit:

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

### **Ogury CMP Usage**

Pass `Asset Key` as configuration parameter when initializing AATKit.

```javascript
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.

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

### SFBX/AppConsent

Comment out the required Android dependency in the `android/build.gradle` file.&#x20;

```
implementation 'com.sfbx.appconsent:appconsent-ui-v3:X.X.X'
```

Make sure, your SFBX CMP has been set up at its backend dashboard. Our support recommends certain vendors to be included in your server-side setup in order to yield optimal revenues.

Pass API Key as configuration parameter when initializing AATKit.

```javascript
RNAatkit.initWithConfiguration({
    consent: {
        "type": RNAatkit.ConsentType_ManagedCMPAppConsent,
        "appConsentAppKey": "xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
})
```
