Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn developers when k-anon filters an ad candidate #1214

Open
JacobGo opened this issue Jun 25, 2024 · 2 comments
Open

Warn developers when k-anon filters an ad candidate #1214

JacobGo opened this issue Jun 25, 2024 · 2 comments

Comments

@JacobGo
Copy link
Contributor

JacobGo commented Jun 25, 2024

With FledgeEnforceKAnonymity gradually rolling out to Chrome stable per docs, I've already observed several instances of confusion and lost productivity when debugging unexpectedly null runAdAuction() results for tiny, test-only buyers due to k-anon filtering.

While the solution so far has been to just disable the feature on the command line while testing, developers should receive a debug signal from the browser perhaps in the DevTools Interest Groups panel or in the JS console when this filtering occurs, especially if this filtering removed all otherwise accepted ad candidates. If we expect this to happen frequently, to avoid console clutter the browser might log each filtered candidate in the IG panel and only once in the console iff there was no winner and k-anon filtered at least one candidate.

Adjacently, I had to dig deeply to find #867 (comment) indicating that production observability of k-anon may be done through private aggregation reporting. It would be helpful to include this detail in the k-anon developer guide (although as a nit I believe it is the browser, not the seller, that rejects the bid in this case).

@dmdabbs
Copy link
Contributor

dmdabbs commented Sep 20, 2024

Hello @JacobGo.

I'm doing some testing in Canary. When starting Chrome sans cmdline flags or with --enable-features=FledgeEnforceKAnonymity, I see browserSignals.kAnonStatus="notCalculated" in reportWin. I'm expecting to see kAnon enforced. Am I missing a magic incantation?

@JacobGo
Copy link
Contributor Author

JacobGo commented Sep 20, 2024

Hey David, I haven't been able to recreate the magical incantation of flags that Chrome used to start enforcing k-anon on my test browser profile back in June. One suggestion might be to include FledgeConsiderKAnonymity alongside FledgeEnforceKAnonymity though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants