---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://boost.yandex.com/doc/en/ad-monetization/dev/unity/gdpr.md
  - https://boost.yandex.com/doc/ru/ad-monetization/dev/unity/gdpr.md
  - https://boost.yandex.com/doc/zh/ad-monetization/dev/unity/gdpr.md
  - href: https://boost.yandex.com/doc/zh/ad-monetization/dev/unity/gdpr.md
    type: text/markdown
    title: Markdown version
  - href: https://boost.yandex.com/doc/zh/llms.txt?revision=r21738064
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://boost.yandex.com/doc/zh/llms.txt?revision=r21738064

# GDPR



## 一般信息 {#about}

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

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

从版本 2.80 开始，Yandex Mobile Ads SDK 允许您限制对位于欧洲经济区和瑞士且未经同意的用户的数据收集。

## 快速指南 {#instruction}

每次启动应用程序时，必须将用户同意处理个人数据的信息发送至 SDK。

1. 按照 [说明](https://boost.yandex.com/doc/zh/ad-monetization/dev/unity/quick-start.md) 连接 Yandex Mobile Ads SDK。
2. 显示一个窗口，用户可以在其中接受个人数据处理的用户协议。
3. 使用 `setUserConsent` 方法将接收到的值传递至 Yandex Mobile Ads SDK。只有在用户同意数据处理的情况下，才会处理适用 GDPR 区域的用户的数据。

```c#
MobileAds.SetUserConsent(true);
```

