---
metadata:
  - name: generator
    content: Diplodoc Platform v5.57.3
alternate:
  - https://boost.yandex.com/doc/en/ad-monetization/dev/react-native/gdpr.md
  - https://boost.yandex.com/doc/ru/ad-monetization/dev/react-native/gdpr.md
  - href: en/ad-monetization/dev/react-native/gdpr.md
    type: text/markdown
    title: Markdown version
  - href: llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://boost.yandex.com/doc/en/llms.txt

# GDPR

## General information {#about}

<!-- source: en/ad-monetization/dev/_includes/gdpr-src.md -->
The General Data Protection Regulation (GDPR) came into effect in the spring of 2018. GDPR regulates how information about citizens of the European Economic Area and Switzerland can be collected and processed. Its intention is to protect the privacy of confidential data and to ensure the transparency of all processes related to the collection, storage and processing of information on the internet.

GDPR has extraterritorial reach and applies to all companies that process personal data of citizens of the European Economic Area and Switzerland, regardless of the company's location.
<!-- endsource: en/ad-monetization/dev/_includes/gdpr-src.md -->

With the Yandex Mobile Ads React Native SDK, you can restrict data collection from users located in the European Economic Area and Switzerland who haven't given their consent.

## Quick guide {#instruction}

The user's consent to the processing of their personal data must be passed to the SDK with every app launch.

1. Follow [these instructions](https://boost.yandex.com/doc/en/ad-monetization/dev/react-native/quick-start.md) to integrate the Yandex Mobile Ads React Native SDK.
2. Show a dialog box prompting the user to consent to the processing of their personal data.
3. Use the `setUserConsent` method to pass the received value to the Yandex Mobile Ads SDK. Data collected from users in GDPR countries is only processed with the user's consent.

```ts
MobileAds.setUserConsent(true);
```
