Sub topic 14
Browser Advertising APIs and the Changing Chrome Plans
This chapter assumes you know how third-party cookies work and why Safari and Firefox block them. It also assumes you can read short JavaScript snippets. It covers the browser APIs Google proposed as cookie replacements, what happened to Chrome's cookie phase-out, and how to plan when the browser vendors keep changing course.
Why browser advertising APIs exist
Third-party cookies did three jobs for advertisers: interest targeting, retargeting, and conversion measurement across sites. Browser vendors wanted to keep some of those functions without letting any party follow an individual across the web. The result was a set of browser APIs that move the logic into the browser. The browser stores the data, runs the computation locally, and releases only coarse or noisy outputs.
The main proposals, grouped under Google's Privacy Sandbox name, were:
- Topics API for interest-based targeting.
- Protected Audience API (originally FLEDGE) for remarketing and custom audiences.
- Attribution Reporting API for conversion measurement.
- Related Website Sets for declaring that several domains belong to one organization.
Other pieces were not advertising APIs but replaced narrower cookie uses: CHIPS (partitioned cookies), the Storage Access API, and FedCM (federated login without cross-site cookies).
The main APIs in detail
Topics API
The browser watches which sites you visit and maps each site to topics from a fixed public taxonomy, such as "Fitness" or "Travel". It works in weekly periods called epochs. When an ad-tech script calls the API, the browser returns up to three topics, one from each of the last three epochs. The browser only returns topics that the calling party has itself observed for that user, and it occasionally substitutes a random topic as noise.
For a marketer, this gives you broad interest signals, not individual histories. It suits prospecting ("people interested in running") and is weak for anything specific.
// Feature-detect before calling. The API may be absent, blocked by a
// Permissions-Policy header, or return an empty list.
async function getTopicsIfAvailable() {
if (!('browsingTopics' in document)) return [];
try {
return await document.browsingTopics();
} catch (err) {
return [];
}
}
getTopicsIfAvailable().then((topics) => console.log(topics));Protected Audience API
An advertiser's site asks the browser to add the visitor to an interest group, such as "viewed running shoes". The group lives on the device. Later, when the visitor loads a publisher page, the browser runs an auction locally. It scores bids from the interest groups it holds, and the winning ad renders without the publisher or ad tech seeing which groups the person belongs to.
This keeps retargeting possible in principle. In practice it raised the hard questions of cost, latency, and reporting. Auction logic runs in the browser, so bidders had to rewrite their systems, and reporting about wins was deliberately limited.
Attribution Reporting API
This API records that an ad was clicked or viewed, and later that a conversion happened. It produces two kinds of reports:
- Event-level reports link a click or view to a conversion but carry very little data. The conversion data is limited to a few bits, and reports are delayed and noised.
- Summary reports are aggregated across many users, with noise added. They support richer questions, such as conversion value by campaign.
The tradeoff is the reverse of cookie-based last-click attribution. You lose per-user paths and exact timing, and in return you get privacy guarantees that are enforced by the browser.
Related Website Sets, CHIPS and FedCM
Related Website Sets let a company with several domains, for example brand.example and brand-shop.example, declare them as one set so some cross-domain state keeps working. CHIPS lets an embedded service keep a cookie that is partitioned to the top-level site it is embedded on, which supports chat widgets and payment frames without cross-site tracking.
Set-Cookie: widget_session=abc123; Secure; HttpOnly; SameSite=None; Partitioned; Path=/The Partitioned attribute makes this cookie separate for each top-level site. It cannot be used to recognize the visitor on other sites.
The changing Chrome plans
Chrome's plans have shifted several times. The sequence below is the one to understand, because many roadmaps and vendor claims are still based on older stages.
| Date | What happened |
|---|---|
| 2020 | Google announced it would phase out third-party cookies in Chrome within about two years. |
| 2022 to 2023 | The deadline slipped repeatedly, to the second half of 2024. Regulators in the UK (the CMA) reviewed the plan and required commitments. |
| January 2024 | Chrome restricted third-party cookies for about 1% of users as a test. |
| July 2024 | Google said it would not remove third-party cookies outright. It would instead offer users a choice. |
| April 2025 | Google said it would not add a separate third-party cookie prompt and would keep Chrome's existing settings. |
| October 2025 | Google announced it would retire most Privacy Sandbox advertising technologies, including Topics, Protected Audience and Attribution Reporting, citing low adoption. Some pieces, such as CHIPS and FedCM, continue. |
Treat this table as a snapshot. Check Google's Privacy Sandbox pages and Chrome release notes for the current state before you rely on any API, since this area has changed more than once.
What this means for your stack
Do not build on a single browser API
If you invested in Topics or Protected Audience, expect little return. Even where the APIs still run, enrollment, spec changes, and low publisher support limit reach. Ask your ad vendors which signals they actually use today and what their fallback is when the API is missing.
Keep the underlying capabilities, not the specific APIs
The three jobs, targeting, retargeting and measurement, have durable replacements that do not depend on a browser API:
| Job | Durable approach | Chapter topic |
|---|---|---|
| Interest targeting | Contextual targeting, first-party audiences | Contextual targeting and creative-led reach |
| Retargeting | Consented first-party audiences, customer lists | First-party data foundation |
| Measurement | Server-side conversions, modeled conversions, incrementality tests, marketing mix modeling | Measuring what works |
Browser behavior still varies
Safari and Firefox do not support the Privacy Sandbox APIs. Safari has its own Private Click Measurement for ad attribution, and Firefox has experimented with a privacy-preserving attribution proposal. Your measurement has to work with different capabilities in each browser. This is one reason a server-side first-party approach is more reliable than any browser feature.
Keep a feature-detection habit
Whatever you adopt, code it defensively. Tags should check that an API exists, handle failure, and respect consent. A page that assumes document.browsingTopics exists will break when the API is removed.
Common mistakes
- Treating a vendor's roadmap slide as current. Dates in older articles refer to plans that were later dropped.
- Waiting for Chrome before acting. The signal loss from Safari, Firefox, mobile and consent already affects your numbers.
- Confusing partitioned and first-party cookies. A CHIPS cookie is still third-party content, only isolated per site. It does not help you recognize the same visitor across your own domains.
- Skipping consent because the API is "private". Privacy-preserving APIs do not remove your legal duties. Consent rules apply to storage and access on the device, whatever technology reads it.
Exercise
A colleague says, "Chrome is keeping third-party cookies, so we can pause our first-party data and server-side measurement work." Give two reasons this conclusion is wrong, and name one thing you should still check about Chrome before finalizing your roadmap.
Show answer
First, Safari and Firefox already block third-party cookies by default, so a large share of your traffic has lost cross-site signal regardless of Chrome. Second, consent law (GDPR, ePrivacy, US state laws) and mobile platform rules such as App Tracking Transparency limit tracking independently of the browser. You should also check the current status of Chrome's cookie settings and which Privacy Sandbox APIs, if any, remain available, because Google has changed these plans several times, most recently retiring most of the advertising APIs.
Exercise
Write the one-line feature check you would use before calling the Topics API, and say what your code should do when the check fails.
Show answer
if (!('browsingTopics' in document)) return []; When the API is missing, the code should return an empty result and carry on, so that targeting falls back to contextual or first-party signals and the page does not throw an error.