{
"description": "null aggregatable reports for triggers with aggregatable data",
"api_config": {
"aggregation_coordinator_origins": [
"https://c1.test",
"https://c2.test"
]
},
"input": {
"registrations": [
{
"timestamp": "432000000",
"registration_request": {
"context_origin": "https://source.test",
"Attribution-Reporting-Eligible": "navigation-source"
},
"responses": [
{
"url": "https://reporter.test/register-source",
"debug_permission": true,
"response": {
"Attribution-Reporting-Register-Source": {
"destination": "https://destination.test",
"source_event_id": "123",
"aggregation_keys": {
"a": "0x159"
}
}
}
}
]
},
// Creates one aggregatable report and two null aggregatable reports.
{
"timestamp": "432001000",
"registration_request": {
"context_origin": "https://destination.test"
},
"responses": [
{
"url": "https://reporter.test/register-trigger",
"null_aggregatable_reports_days": [0, 2, 5],
"response": {
"Attribution-Reporting-Register-Trigger": {
// null reports use the same coordinator origin
"aggregation_coordinator_origin": "https://c2.test",
"aggregatable_trigger_data": [
{
"source_keys": ["a"],
"key_piece": "0x400"
}
],
"aggregatable_values": {
"a": 123
},
"aggregatable_source_registration_time": "include"
}
}
}
]
},
// Creates three null aggregatable reports.
{
"timestamp": "432002000",
"registration_request": {
"context_origin": "https://destination.test"
},
"responses": [
{
"url": "https://reporter.test/register-trigger",
"debug_permission": true,
"null_aggregatable_reports_days": [0, 2, 5],
"response": {
"Attribution-Reporting-Register-Trigger": {
"aggregatable_values": {
"b": 456
},
"aggregatable_source_registration_time": "include",
"debug_reporting": true
}
}
}
]
},
// Trigger without aggregataable data doesn't create null aggregatable reports.
{
"timestamp": "432002001",
"registration_request": {
"context_origin": "https://destination.test"
},
"responses": [
{
"url": "https://reporter.test/register-trigger",
"debug_permission": true,
"null_aggregatable_reports_days": [0, 2, 5],
"response": {
"Attribution-Reporting-Register-Trigger": {
"aggregatable_source_registration_time": "include",
"debug_reporting": true
}
}
}
]
},
// Creates one aggregatable report.
{
"timestamp": "432003000",
"registration_request": {
"context_origin": "https://destination.test"
},
"responses": [
{
"url": "https://reporter.test/register-trigger",
"null_aggregatable_reports_days": [0, 2, 5],
"response": {
"Attribution-Reporting-Register-Trigger": {
"aggregatable_trigger_data": [
{
"source_keys": ["a"],
"key_piece": "0x200"
}
],
"aggregatable_values": {
"a": 321
}
}
}
}
]
},
// Creates one null aggregatable report.
{
"timestamp": "432004000",
"registration_request": {
"context_origin": "https://destination.test"
},
"responses": [
{
"url": "https://reporter.test/register-trigger",
"null_aggregatable_reports_days": [0, 2, 5],
"response": {
"Attribution-Reporting-Register-Trigger": {
"aggregatable_values": {
"b": 654
}
}
}
}
]
},
// Trigger without aggregatable data doesn't create null aggregatable reports.
{
"timestamp": "432004001",
"registration_request": {
"context_origin": "https://destination.test"
},
"responses": [
{
"url": "https://reporter.test/register-trigger",
"null_aggregatable_reports_days": [0, 2, 5],
"response": {
"Attribution-Reporting-Register-Trigger": {
}
}
}
]
}
]
},
"output": {
"reports": [
{
"payload": [ {
"body": {
"attribution_destination": "https://destination.test",
"source_event_id": "123",
"source_site": "https://source.test"
},
"type": "trigger-aggregate-no-contributions"
} ],
"report_time": "432002000",
"report_url": "https://reporter.test/.well-known/attribution-reporting/debug/verbose"
},
{
"payload": {
"aggregation_coordinator_origin": "https://c2.test",
"histograms": [
{
"id": "0",
"key": "0x559",
"value": 123
}
],
"shared_info": {
"api": "attribution-reporting",
"attribution_destination": "https://destination.test",
"reporting_origin": "https://reporter.test",
"scheduled_report_time": "435601",
"source_registration_time": "432000",
"version": "1.0"
}
},
"report_url": "https://reporter.test/.well-known/attribution-reporting/report-aggregate-attribution",
"report_time": "435601000"
},
{
"payload": {
"aggregation_coordinator_origin": "https://c2.test",
"histograms": [ {
"id": "0",
"key": "0x0",
"value": 0
} ],
"shared_info": {
"api": "attribution-reporting",
"attribution_destination": "https://destination.test",
"reporting_origin": "https://reporter.test",
"scheduled_report_time": "435601",
"source_registration_time": "259200",
"version": "1.0"
}
},
"report_time": "435601000",
"report_url": "https://reporter.test/.well-known/attribution-reporting/report-aggregate-attribution"
},
{
"payload": {
"aggregation_coordinator_origin": "https://c2.test",
"histograms": [ {
"id": "0",
"key": "0x0",
"value": 0
} ],
"shared_info": {
"api": "attribution-reporting",
"attribution_destination": "https://destination.test",
"reporting_origin": "https://reporter.test",
"scheduled_report_time": "435601",
"source_registration_time": "0",
"version": "1.0"
}
},
"report_time": "435601000",
"report_url": "https://reporter.test/.well-known/attribution-reporting/report-aggregate-attribution"
},
{
"payload": {
"aggregation_coordinator_origin": "https://c1.test",
"histograms": [ {
"id": "0",
"key": "0x0",
"value": 0
} ],
"shared_info": {
"api": "attribution-reporting",
"attribution_destination": "https://destination.test",
"reporting_origin": "https://reporter.test",
"scheduled_report_time": "435602",
"source_registration_time": "432000",
"version": "1.0"
}
},
"report_time": "435602000",
"report_url": "https://reporter.test/.well-known/attribution-reporting/report-aggregate-attribution"
},
{
"payload": {
"aggregation_coordinator_origin": "https://c1.test",
"histograms": [ {
"id": "0",
"key": "0x0",
"value": 0
} ],
"shared_info": {
"api": "attribution-reporting",
"attribution_destination": "https://destination.test",
"reporting_origin": "https://reporter.test",
"scheduled_report_time": "435602",
"source_registration_time": "259200",
"version": "1.0"
}
},
"report_time": "435602000",
"report_url": "https://reporter.test/.well-known/attribution-reporting/report-aggregate-attribution"
},
{
"payload": {
"aggregation_coordinator_origin": "https://c1.test",
"histograms": [ {
"id": "0",
"key": "0x0",
"value": 0
} ],
"shared_info": {
"api": "attribution-reporting",
"attribution_destination": "https://destination.test",
"reporting_origin": "https://reporter.test",
"scheduled_report_time": "435602",
"source_registration_time": "0",
"version": "1.0"
}
},
"report_time": "435602000",
"report_url": "https://reporter.test/.well-known/attribution-reporting/report-aggregate-attribution"
},
{
"payload": {
"aggregation_coordinator_origin": "https://c1.test",
"histograms": [ {
"id": "0",
"key": "0x359",
"value": 321
} ],
"shared_info": {
"api": "attribution-reporting",
"attribution_destination": "https://destination.test",
"reporting_origin": "https://reporter.test",
"scheduled_report_time": "435603",
"version": "1.0"
}
},
"report_time": "435603000",
"report_url": "https://reporter.test/.well-known/attribution-reporting/report-aggregate-attribution"
},
{
"payload": {
"aggregation_coordinator_origin": "https://c1.test",
"histograms": [ {
"id": "0",
"key": "0x0",
"value": 0
} ],
"shared_info": {
"api": "attribution-reporting",
"attribution_destination": "https://destination.test",
"reporting_origin": "https://reporter.test",
"scheduled_report_time": "435604",
"version": "1.0"
}
},
"report_time": "435604000",
"report_url": "https://reporter.test/.well-known/attribution-reporting/report-aggregate-attribution"
}
]
}
}