컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
개인 정보 보호 설정 구성
이 예에서는 Google 게시자 태그 (GPT) 라이브러리를 사용하여 광고 요청의 개인 정보 보호 설정을 구성하는 방법을 보여줍니다. Google Ad Manager 고객센터에서 사용 가능한 개인 정보 보호 설정에 대해 자세히 알아보세요.
GPT에서 제한적인 광고를 사용하는 방법을 알아보려면 제한적인 광고 표시 샘플을 참고하세요.
샘플 구현
데모 보기
[null,null,[],[],[],null,["# Configure privacy settings\n==========================\n\nThis example shows how to configure privacy settings for ad requests using the\nGoogle Publisher Tag (GPT) library. Learn more about available privacy settings\nin the Google Ad Manager help center:\n\n- [Child-directed treatment](//support.google.com/admanager/answer/3671211)\n- [Non-personalized ads](//support.google.com/admanager/answer/9005435)\n- [Restricted data processing](//support.google.com/admanager/answer/9598414)\n- [Under age of consent](//support.google.com/admanager/answer/9004919)\n\nTo learn about working with [Limited ads](//support.google.com/admanager/answer/9882911) in GPT, see the\n[Display a limited ad](//developers.google.com/publisher-tag/samples/display-limited-ad) sample.\n\nSample implementation\n---------------------\n\n[View demo](https://googleads.github.io/google-publisher-tag-samples/configure-privacy/js/demo.html) \n\n### JavaScript\n\nLoading...\n----------\n\nLoading...\n----------\n\n[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%3A+configure-privacy/js)\n\n### TypeScript\n\nLoading...\n----------\n\nLoading...\n----------\n\n[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%3A+configure-privacy/ts)"]]