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.
Servicio de agregación
El servicio de agregación es responsable de desencriptar y combinar los datos recopilados de los informes agregables, agregar ruido y mostrar un informe de resumen final. Todo esto se logra dentro de un entorno de ejecución confiable (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
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.
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 |