> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/aatkit-unity-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aatkit.gitbook.io/aatkit-unity-integration/start/consent/simple-consent.md).

# Simple Consent

Handle consent using AATKit simple consent

### Introduction

To set if the user has given or withheld consent for the collection and use of personal data (used for non-IAB partners), use the SimpleConsent.

### Usage

To define if the user has given or withheld consent for the collection and use of personal data (used for non-IAB partners) set configuration type parameter as `AATKitConsent.ConsentTypes.Simple` and use `NonIABConsent` parameter as:

* `AATKitConsent.NonIABConsentType.Obtained` if the user has given the consent.
* `AATKitConsent.NonIABConsentType.Withheld` if the user has declined.

If SimpleConsent is used, it will automatically read the IAB Consent String stored (by third-party CMP) in SharedPreferences (if available).

```csharp
AATKitConfiguration aatkitConfiguration = new AATKitConfiguration
{
    ConsentRequired = true,
    Consent = new AATKitConsent()
    {
        Type = AATKitConsent.ConsentTypes.Simple,
        NonIABConsent = AATKitConsent.NonIABConsentType.Obtained
    }
};
```
