Bản minh hoạ Hộp cát về quyền riêng tư

Các bản minh hoạ và dự án cộng tác sẽ hướng dẫn bạn sử dụng API Hộp cát về quyền riêng tư.

Có một số bản minh hoạ cho API Hộp cát về quyền riêng tư. Hầu hết các API này đều yêu cầu bạn phải quen thuộc với API. Vì vậy, nếu bạn chưa đọc tài liệu, hãy xem các đường liên kết mà chúng tôi đã liệt kê cùng với các bản minh hoạ.

Bản minh hoạ và dự án cộng tác

Protected Audience API

The demo uses the Protected Audience API to join ad interest groups on two advertiser sites, and then initiates an on-device auction to select an ad for display on a publisher site.

Topics API

With the Topics API, a user's device observes and records topics that appear to be of interest to the user based on their activity. The API then allows callers (such as ad tech platforms) to access these topics without revealing other information about the user's activity. The following resources provide examples of the API in action.

Resources for Topics on the Web

Resources for Topics on Android

Attribution Reporting

The Attribution Reporting API enables advertisers and ad tech providers to measure conversions for ad clicks and views, ads in a third-party iframe, and ads in a first-party context. In this demo an advertiser uses an ad tech provider to run their ads on a publisher site.

Demo

Noise Lab

When aggregatable reports are batched by a collector and processed by the aggregation service, random data is added to the resulting summary reports in order to protect user privacy. Use Noise Lab to experiment with different values to see the impact of noise.

Dịch vụ tổng hợp

Dịch vụ tổng hợp chịu trách nhiệm giải mã và kết hợp dữ liệu đã thu thập từ các báo cáo có thể tổng hợp, thêm độ nhiễu và trả về báo cáo tóm tắt cuối cùng. Tất cả những điều này đều được thực hiện trong môi trường thực thi đáng tin cậy (TEE).

Colab

Bộ nhớ dùng chung

Shared Storage API cung cấp bộ nhớ có thể được dùng trên nhiều trang web, tức là bạn lưu trữ một giá trị tại một miền, sau đó đọc giá trị đó từ một miền khác. Bạn có thể đặt dữ liệu một cách thoải mái, nhưng bị hạn chế về cách lấy dữ liệu ra khỏi bộ nhớ. Bản minh hoạ này minh hoạ cách hoạt động của tính năng này.

Cookie có trạng thái được phân vùng độc lập (CHIPS)

Cookie có trạng thái được phân vùng độc lập (CHIPS) cho phép nhà phát triển chọn sử dụng cookie trong bộ nhớ được phân vùng, với các hũ cookie riêng biệt cho mỗi trang web cấp cao nhất, giúp cải thiện quyền riêng tư và tính bảo mật của người dùng. Bản minh hoạ này minh hoạ cách hoạt động của tính năng này.

Related Website Sets is a way for a company to declare relationships among sites, so that browsers allow limited third-party cookie access for specific purposes. Chrome will use these declared relationships to decide when to allow or deny a site access to their cookies when in a third-party context.

Chính sách về quyền

Permissions Policy cho phép nhà phát triển kiểm soát các tính năng của trình duyệt mà một trang, iframe và tài nguyên phụ có thể sử dụng bằng cách khai báo một tập hợp chính sách để trình duyệt thực thi. Bản minh hoạ này cho phép bạn dùng thử các chính sách hiện có.

Giảm thiểu tác nhân người dùng

Việc giảm thông tin trong chuỗi tác nhân người dùng sẽ giảm thiểu thông tin nhận dạng được chia sẻ trong chuỗi tác nhân người dùng. Thông tin này có thể được dùng để tạo dấu vân tay thụ động. Các yêu cầu về tài nguyên hiện có tiêu đề Tác nhân người dùng bị giảm và các giá trị trả về từ một số giao diện Navigator cũng bị giảm. Bản minh hoạ này cho phép bạn thử nghiệm các giá trị chuỗi UA mới.

Private State Token API

Với Private State Token API, một trang web có thể phát hành mã thông báo mật mã cho người dùng mà trang web đó tin tưởng. Sau này, mã thông báo này có thể được dùng ở nơi khác. Các mã thông báo được trình duyệt của người dùng lưu trữ một cách an toàn, sau đó có thể được đổi trong các bối cảnh khác để xác nhận tính xác thực của người dùng. Hãy xem API trong bản minh hoạ này.

Privacy Sandbox Demos Framework

Privacy Sandbox Demos framework offers cookbook recipes, sample code, and demo applications, based on Privacy Sandbox APIs. These are intended to aid businesses and developers in adapting their applications and the businesses they support to a web ecosystem without third-party cookies.

Use case Description APIs
Retargeting / Remarketing How to show relevant ads to a user who has researched a brand or product online. Protected Audience API
Fenced Frame
Single-touch conversion Attribution How to measure conversion after seeing ads on a news site and buying a product on an online shopping site. Attribution Reporting API
Instream VAST video ad in a Protected Audience single-seller auction Provides details on a temporary solution allowing Top Level embedded video players access to the VAST XML URL. Protected Audience API
Instream VAST video ad in a Protected Audience sequential auction setup Shows one of the ways that VAST XMLs can be handled in a Protected Audience sequential auction setup when the ad is rendered in an iframe. Protected Audience API