Privacy Sandbox 示範

透過示範和 Colab 逐步說明 Privacy Sandbox API。

我們提供多個 Privacy Sandbox API 的示範。大多數的示範都需要您熟悉 API,因此如果您尚未閱讀說明文件,請查看我們提供的示範連結。

此示範會使用 Protected Audience 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 API 評估轉換,包括廣告點擊和觀看、第三方 iframe 中的廣告,以及第一方情境中的廣告。在本示範中,廣告客戶透過廣告技術供應商在發布商網站上放送廣告。

示範模式

噪音研究室

如果可匯總報表由收集器批次處理,並由匯總服務處理,產生的摘要報表就會隨機加入資料,以保護使用者隱私。使用噪音研究室測試不同值,瞭解雜訊造成的影響。

匯總服務負責解密及合併從可匯總報表收集到的資料、加入雜訊,並傳回最終摘要報告。所有操作都是在受信任的執行環境 (TEE) 中完成。

哥倫比亞

The Shared Storage API provides storage that can be used cross-site, meaning you store a value at one domain, then read the value from another domain. You can set data freely, but are restricted in how you get data out of storage. This demo illustrates how it works.

Cookies Having Independent Partitioned State (CHIPS) allows developers to opt a cookie into partitioned storage, with separate cookie jars per top-level site, improving user privacy and security. This demo illustrates how it works.

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.

權限政策可讓開發人員宣告一組瀏覽器要強制執行的政策,藉此控管網頁、 iframe 和子資源可用的瀏覽器功能。這個試用版可讓您試用可用政策。

User-Agent reduction minimizes the identifying information shared in the User-Agent string, which may be used for passive fingerprinting. Resource requests have a reduced User-Agent header now and the return values from certain Navigator interfaces are reduced. This demo lets you experiment with the new UA string values.

有了 Private State Token API,網站就能核發加密編譯權杖給所信任的使用者,供之後用於其他地方。使用者的瀏覽器會安全地儲存這類權杖,並可用於在其他情況下兌換,以確認使用者的真實性。查看這個示範中的 API。

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