Introducing Privacy Sandbox Demos

The Privacy Sandbox initiative offers over 20 APIs to protect people's privacy online while giving companies and developers tools to build thriving digital businesses. Publishers, advertisers and ad tech providers have begun to evaluate and plan how they can continue to provide a free and open internet while also protecting people's privacy.

We're progressively expanding our developer resources, and you can find the currently available documentation and demos for each API on the Google Developers website. We also understand that ad tech companies and web ecosystem developers expect new approaches to typical use cases supported today by third-party cookies. These use cases often require incorporating a combination of new Privacy Sandbox APIs into their products, which requires planning and a clear understanding how these APIs work.

Privacy Sandbox Demos offer 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.

What can you expect from Privacy Sandbox Demos ?

Privacy Sandbox Demos are available as open-sourced code, and lightweight infrastructure bundled as container images scripts. The repository includes instructions for deploying and running the demos in your local environment with Docker, as well as instructions for deploying it on Google Cloud Platform. We are also provisioning Google-hosted instances for everyone, including those who are simply curious, to quickly start learning and experimenting.

A number of organizations are currently evaluating and testing the Privacy Sandbox APIs. Their feedback is critical to developing the web's new standards. We anticipate receiving additional feedback and refining our proposals by publishing solutions to the typical ad tech use cases. Your contributions are also welcome.

On the adoption path of Privacy Sandbox APIs, we expect that Privacy Sandbox Demos will be a valuable resource for web developers. Reference materials (recipes, samples code, and demos) will be expanded to cover the most common use cases, which we hope will accelerate the transition.

Our first release is now available

The first release of Privacy Sandbox Demos is now available on GitHub. Further deployment instructions are available in the repository's README file.
For this first release, we have prepared a set of use cases demos :

Use case Description APIs
Remarketing Show relevant ads to a user who has researched a brand or product online. Protected Audience API
Fenced Frame
Single-touch conversion Attribution Measure conversion after seeing ads on a news site and buying a project on an online shopping site. Attribution Reporting API

These use cases are implemented through a set of demo apps and services that we have developed in the project to simulate the actors in the digital advertising ecosystem:


Demo app

Description

E-commerce site

An advertiser shopping site

News site

A publisher site where ads are displayed

SSP service (Supply Side Platform)

The demo SSP service :
  • Chooses Ads to show based on Topics, Protected Audience auctions and other contextual or first party signals
  • Shows Ads in iframe or fenced frame
  • Registers view/click impression with Attribution Reporting API

DSP service (Demand Side Platform)

The demo DSP service :
  • Joins user into interest group with Protected Audience API
  • Register conversion with Attribution Reporting API

Future releases will include new use cases, demo scenarios, and new services to support the latest advancements in privacy preserving technologies. Additionally, we'll add more documentation and cookbook recipes for developers to implement these use cases for their business.

Engage and share feedback

We're continuing our effort to deliver comprehensive documentation and demos, and we welcome your feedback on which use cases you would like to see in future releases. Share your ideas and feedback on our issue tracker.

To learn more about Privacy Sandbox Demos and Privacy Sandbox APIs, check out GitHub.