透過示範和 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 中的广告以及第一方环境中的广告。在此演示中,一位广告客户通过一家广告技术提供商在发布商网站上投放广告。
演示
噪声实验室
当可汇总报告由收集器批量处理并由汇总服务处理时,系统会将随机数据添加到生成的摘要报告中,以保护用户隐私。使用 Noise Lab 尝试使用不同的值,看看噪声的影响。
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 JAR,从而加强用户隐私保护和安全性。此演示展示了其工作原理。
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
用户代理缩减
“用户代理字符串缩短”功能可最大限度地减少用户代理字符串中可用于被动式数字“指纹”收集等的标识信息。现在,资源请求的用户代理标头也有所减少,来自某些导航器界面的返回值也有所减少。通过本演示,您可以测试新的 UA 字符串值。
Private State Token API
有了 Private State Token API,網站就能核發加密編譯權杖給所信任的使用者,供之後用於其他地方。使用者的瀏覽器會安全地儲存這類權杖,並可用於在其他情況下兌換,以確認使用者的真實性。查看這個示範中的 API。
Privacy Sandbox 演示框架
Privacy Sandbox 演示框架基于 Privacy Sandbox API 提供实战宝典、示例代码和演示应用。这些技术旨在帮助企业和开发者调整其应用和支持的业务,使其适应没有第三方 Cookie 的网络生态系统。
用例 | 说明 | API |
---|---|---|
重访定位 / 再营销 | 如何向在网上研究过品牌或产品的用户展示相关广告。 | Protected Audience API 围栏框架 |
单接触点转化归因 | 在新闻网站上看到广告并在在线购物网站上购买商品后,如何衡量转化情况。 | Attribution Reporting API |
参与 Protected Audience 单卖家竞价的 VAST 插播广告 | 提供关于允许顶级嵌入式视频播放器访问 VAST XML 网址的临时解决方案的详细信息。 | Protected Audience API |
Protected Audience 依序竞价设置中的 VAST 插播广告 | 显示广告在 iframe 中呈现时,可在 Protected Audience 依序竞价设置中处理 VAST XML 的方式之一。 | Protected Audience API |