Aggregation Service
Deploy and manage this service to produce summary reports for the Attribution Reporting API or the Private Aggregation API.
Deploy and manage an Aggregation Service to process aggregatable reports from the Attribution Reporting API or the Private Aggregation API to create a summary report.
Implementation status
- The Aggregation Service proposal is available for discussion.
- The Aggregation Service can be tested with the Attribution Reporting API and the Private Aggegration API for FLEDGE and Shared Storage.
The proposal outlines key terms, useful for understanding the Aggregation Service.
Secure data processing
The Aggregation Service decrypts and combines the collected data from the aggregatable reports, adds noise, and returns the final summary report. This service runs in a trusted execution environment (TEE), which is deployed on a cloud service that supports necessary security measures to protect this data.
A Trusted Execution Environment is a special configuration of computer hardware and software that allows external parties to verify the exact versions of software running on the computer. TEEs allow external parties to verify that the software does exactly what the software manufacturer claims it does—nothing more or less.
The TEE's code is the only place in the Aggregation Service which has access to raw reports—this code will be auditable by security researchers, privacy advocates, and ad techs. To confirm that the TEE is running the exact approved software and that data remains secured, a coordinator performs attestation.
Coordinator attestation of the TEE
The coordinator is an entity responsible for key management and aggregatable report accounting.
A coordinator has several responsibilities:
- Maintain a list of authorized binary images. These images are cryptographic hashes of the Aggregation Service software builds, which Google will periodically release. This will be reproducible so that any party can verify the images are identical to the Aggregation Service builds.
- Operate a key management system. Encryption keys are required for the Chrome on a user's device to encrypt aggregatable reports. Decryption keys are necessary for proving the Aggregation Service code matches the binary images.
- Track the aggregatable reports to prevent reuse in aggregation for summary reports, as reuse may reveal personal identifying information (PII).
If you are testing the Aggregation Service, see the Coordinator Service Additional Terms of Service.
Noise and scaling
To protect user privacy, the Aggregation Service applies an additive noise mechanism to the raw data from aggregatable reports. This means that a certain amount of statistical noise is added to each aggregate value before its release in a summary report.
While you are not in direct control of the ways noise is added, you can influence the impact of noise on its measurement data.
The noise value is randomly drawn from a Laplace probability distribution, and the distribution is the same regardless of the amount of data collected in aggregatable reports. The more data you collect, the less impact the noise will have on the summary report results. You can multiply the aggregatable report data by a scaling factor to reduce the impact of noise.
To understand how noise is added, your controls, and the impact on your reports, refer to the Contribution section of the Attribution Reporting strategy guide.
Generate summary reports
Summary report generation is dependent on your API usage. Learn more about generating summary reports for the Private Aggregation API and the Attribution Reporting API.
Test the Aggregation Service
We recommend reading the corresponding experiment and participate guide for the API you're testing:
Local testing
We've created a local testing tool to process aggregatable reports for Attribution Reporting and the Private Aggregation API. Read the instructions.
Test on AWS
To test the Aggregation Service on AWS, register for the origin trial and complete the onboarding form. Once submitted, we'll contact you to verify your information and send the remaining instructions.
To test on AWS, install Terraform and the latest AWS CLI.
Engage and share feedback
The Aggregation Service is a key piece of the Privacy Sandbox measurement proposals. Like other Privacy Sandbox proposals, this is documented and discussed publicly on GitHub.
- Github: Read the proposal, raise questions and participate in the discussion. Also take a look at the Aggregation Service implementation and provide feedback on the implementation.
- Developer support: Ask questions and join discussions on the Privacy Sandbox Developer Support repo.