En las demostraciones y las colaboraciones, se explican las APIs de Privacy Sandbox.
Hay varias demostraciones disponibles para las APIs de Privacy Sandbox. La mayoría de ellos requerirán que estés familiarizado con las APIs, por lo que, si no leíste la documentación, consulta los vínculos que incluimos junto con las demostraciones.
Demostraciones y colaboraciones
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
- 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.
Informes de atribución
La API de Attribution Reporting permite que los anunciantes y los proveedores de tecnología publicitaria midan las conversiones de los clics y las vistas de anuncios, los anuncios en un iframe de terceros y los anuncios en un contexto propio. En esta demostración, un anunciante utiliza un proveedor de tecnología publicitaria para publicar sus anuncios en el sitio de un publicador.
Demostración
Noise Lab
Cuando un recopilador agrupa los informes agregables y el servicio de agregación los procesa, se agregan datos aleatorios a los informes de resumen resultantes para proteger la privacidad del usuario. Usa Noise Lab para experimentar con diferentes valores y ver el impacto del ruido.
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
La API de Shared Storage proporciona almacenamiento que se puede usar en varios sitios, lo que significa que puedes almacenar un valor en un dominio y, luego, leerlo desde otro. Puedes establecer datos libremente, pero tienes restricciones sobre cómo obtener datos del almacenamiento. En esta demostración, se ilustra cómo funciona.
CHIPS
Las Cookies Having Independent Partitioned State (CHIPS) permiten que los desarrolladores habiliten el almacenamiento particionado de una cookie, con contenedores de cookies separados por sitio de nivel superior, lo que mejora la privacidad y la seguridad del usuario. En esta demostración, se ilustra cómo funciona.
Conjuntos de sitios web relacionados
Los Conjuntos de sitios web relacionados son una forma en que una empresa puede declarar relaciones entre sitios para que los navegadores permitan el acceso limitado de cookies de terceros para fines específicos. Chrome usará estas relaciones declaradas para decidir cuándo permitir o rechazar el acceso de un sitio a sus cookies en un contexto de terceros.
- Demostración
- Generador de JSON de envío: Esta herramienta genera los recursos JSON necesarios para realizar un envío de Conjuntos de sitios web relacionados (RWS).
- Documentos
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 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 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 |