Privacy Sandbox 示範

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

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

示範和 Colab

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

透過 Topics API,使用者的裝置會根據活動觀察並記錄使用者感興趣的主題。接著,API 會允許呼叫端 (例如廣告技術平台) 存取這些主題,但不會揭露使用者的其他活動資訊。下列資源提供 API 實際運作的範例。

網頁主題資源

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.

Aggregation Service

The Aggregation Service is responsible for decrypting and combining collected data from aggregatable reports, adds noise, and returns a final summary report. This is all accomplished within a trusted execution environment (TEE).

Colabs

Shared Storage

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.

CHIPS

具有獨立分區狀態的 Cookie (CHIPS) 可讓開發人員選擇將 Cookie 儲存在分區中,每個頂層網站都有各自的 Cookie 罐,進而提升使用者隱私權和安全性。這個範例會示範如何使用。

相關網站集合可讓公司聲明網站之間的關係,以便瀏覽器允許基於特定目的的第三方 Cookie 有限存取權。Chrome 會根據這些聲明的關係,決定在第三方情境中允許或拒絕網站存取 Cookie。

Permissions Policy

Permissions Policy allows the developer to control the browser features available to a page, its iframes, and subresources, by declaring a set of policies for the browser to enforce. This demo lets you try out the available policies.

使用者代理程式縮減

縮減使用者代理程式可盡量減少使用者代理程式字串分享的識別資訊,以免遭人用於被動式數位指紋採集。資源要求的 User-Agent 標頭現在會縮減,特定 Navigator 介面的傳回值也會縮減。您可以在這個示範中實驗新的 UA 字串值。

Private State Token API

With the Private State Token API, a website can issue cryptographic tokens to a user it trusts, which can later be used elsewhere. The tokens are stored securely by the user's browser, and can then be redeemed in other contexts to confirm the user's authenticity. Check out the API in this demo.

Privacy Sandbox Demos Framework

Privacy Sandbox Demos 架構提供以 Privacy Sandbox API 為基礎的食譜、程式碼範例和示範應用程式。這些指南旨在協助商家和開發人員調整應用程式,並支援商家適應沒有第三方 Cookie 的網路生態系統。

用途 說明 API
指定舊訪客 / 再行銷 如何向在網路上研究過品牌或產品的使用者顯示相關廣告。 Protected Audience API
Fenced Frame
單一接觸點轉換歸因 如何評估在新聞網站上看到廣告,然後在網路購物網站上購買產品後的轉換。 Attribution Reporting API
Protected Audience 單一賣方競價中的串流內 VAST 影片廣告 提供臨時解決方案的詳細資料,允許頂層內嵌影片播放器存取 VAST XML 網址。 Protected Audience API
在 Protected Audience 連續競價設定中放送串流內 VAST 影片廣告 顯示在 iframe 中算繪廣告時,於 Protected Audience 連續競價設定中處理 VAST XML 的其中一種方式。 Protected Audience API