---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://ads.yandex.com/helpcenter/en/dev/react-native/gdpr.md
  - https://ads.yandex.com/helpcenter/ru/dev/react-native/gdpr.md
  - https://ads.yandex.com/helpcenter/zh/dev/react-native/gdpr.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ads.yandex.com/helpcenter/zh/llms.txt

# GDPR

## 一般信息 {#about}

<!-- source: zh/dev/_includes/gdpr-src.md -->
《通用数据保护条例》(GDPR) 于 2018 年春季生效。GDPR 规定了如何收集和处理有关欧洲经济区和瑞士公民的信息。其目的是保护机密数据的隐私，并确保与互联网上信息收集、存储和处理相关的所有流程的透明度。

GDPR 具有治外法权范围，适用于处理欧洲经济区和瑞士公民个人数据的所有公司，无论该公司位于何处。
<!-- endsource: zh/dev/_includes/gdpr-src.md -->

使用 Yandex Mobile Ads React Native SDK，您可以限制对位于欧洲经济区和瑞士且未经同意的用户的数据收集。

## 简要指南 {#instruction}

每次应用启动时，必须将用户对其个人数据处理的同意传递给 SDK。

1. 按照 [这些说明](https://ads.yandex.com/helpcenter/zh/dev/react-native/quick-start.md) 集成 Yandex Mobile Ads React Native SDK。
2. 显示一个对话框，提示用户同意处理其个人数据。
3. 使用 `setUserConsent` 方法将接收到的值传递至 Yandex Mobile Ads SDK。从适用 GDPR 国家/地区的用户收集的数据仅在用户同意的情况下进行处理。

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

