透過示範和 Colab 逐步說明 Privacy Sandbox API。
我們提供多個 Privacy Sandbox API 的示範。大多數的示例都需要您熟悉 API,因此如果您尚未閱讀說明文件,請查看我們提供的示例連結。
示範和 Colab
Protected Audience API
此示範會使用 Protected Audience API,彙整兩個廣告客戶網站上的廣告群組興趣群組,然後展開裝置端競價,選擇在發布商網站上顯示的廣告。
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
- Headers demo: This is a recommended, more performant approach.
- JavaScript demo: Use JavaScript Topics methods if you can't modify headers.
- Topics API colab: Experiment with the TensorFlow Lite model used by Chrome to infer topics from hostnames.
- Topics documentation for the Web: Learn more about how Topics work and how to implement it.
Resources for Topics on Android
- Sample apps: Refer to Kotlin sample app or Java sample app to guide your integration.
- Topics API colab: Test different combinations of app info against the topics classifier model.
- Topics documentation for Android: Learn how Topics works on Android.
Attribution Reporting
廣告客戶和廣告技術供應商可利用 Attribution Reporting API 評估轉換,包括廣告點擊和觀看、第三方 iframe 中的廣告,以及第一方情境中的廣告。在本示範中,廣告客戶透過廣告技術供應商在發布商網站上放送廣告。
示範模式
噪音研究室
如果可匯總報表由收集器批次處理,並由匯總服務處理,產生的摘要報表就會隨機加入資料,以保護使用者隱私。使用噪音研究室測試不同值,瞭解雜訊造成的影響。
Aggregation Service
匯總服務負責解密及合併從可匯總報表收集到的資料、加入雜訊,並傳回最終摘要報告。所有操作都是在受信任的執行環境 (TEE) 中完成。
哥倫比亞
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 可讓開發人員選擇將 Cookie 加入分區儲存空間,並為每個頂層網站設置獨立的 Cookie 吧,以改善使用者隱私與安全性。本示範將說明運作方式。
Related Website Sets
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.
- Demo
- Submission JSON generator.This tool generates the JSON resources needed to make a Related Website Sets (RWS) submission.
- Docs
User Agent Reduction
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
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 示範架構
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 影片廣告 | 在 Protected Audience 依序競價設定中,顯示 VAST XML 處理方法之一。 | Protected Audience API |