# Configure privacy settings

This example shows how to configure privacy settings for ad requests using the
Google Publisher Tag (GPT) library. Learn more about available privacy settings
and [Publisher Privacy Treatments](https://support.google.com/admanager/answer/14323214) in the Google Ad Manager
help center.

- [Age treatment (TFAT)](https://support.google.com/admanager/answer/3671211)
- [Non-personalized ads (NPA)](https://support.google.com/admanager/answer/9005435)
- [Restricted data processing (RDP)](https://support.google.com/admanager/answer/9598414)

> [!IMPORTANT]
> **Important:** The tag for under age of consent (TFUA) and the tag for child-directed treatment (TFCD) are deprecated. Instead, use the Tag for age treatment (TFAT). You can mark your ad request using the TFAT setting to manage different age treatments for your ad requests. The TFAT "child" value is functionally equivalent to the TFCD or TFUA child treatment tags.

To learn about working with [Limited ads](https://support.google.com/admanager/answer/9882911) in GPT, see the
[Display a limited ad](https://developers.google.com/publisher-tag/samples/display-limited-ad) sample.

## Sample implementation

[View demo](https://googleads.github.io/google-publisher-tag-samples/configure-privacy/js/demo.html)

### JavaScript

<iframe src="https://developers.devsite.google/frame/publisher-tag/samples/configure-privacy_bf6878e2e0eeebe1f9a6b95f1b358884600d43ee2505e7841c9b5471398890df.frame" class="framebox inherit-locale gpt-playground-framebox" allow="clipboard-write https://developers.devsite.google" allowfullscreen is-upgraded></iframe>

## Loading...

[Improve this sample](https://github.com/googleads/google-publisher-tag-samples/tree/main/dist/configure-privacy/js) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback:+configure-privacy/js)

### TypeScript

<iframe src="https://developers.devsite.google/frame/publisher-tag/samples/configure-privacy_0475a9e9a48245891e2f45483fdf02031f34629e7c5c8c581316869242ef8aa9.frame" class="framebox inherit-locale gpt-playground-framebox" allow="clipboard-write https://developers.devsite.google" allowfullscreen is-upgraded></iframe>

## Loading...

[Improve this sample](https://github.com/googleads/google-publisher-tag-samples/tree/main/dist/configure-privacy/ts) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback:+configure-privacy/ts)