Protected audienceLimited availability
The protected audience API facilitates advertisement sales by allowing sites to register users as part of an interest group or to choose which ads appear based on those interest groups, while minimizing the ability of advertisers to track specific members of the interest group. Also known as FLEDGE.
Not yet supported in all major browsers — check the table and provide a fallback.
Discouraged: Following the announcement that Chrome will maintain its current approach to third-party cookies, Chrome decided to withdraw certain Privacy Sandbox features including the protected audience API.
Browser support
How to use
Not supported in Edge, Firefox, Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN — see the links below.
Feature detection
if ("ProtectedAudience" in globalThis) {
// ProtectedAudience is available
} else {
// load a polyfill or use a fallback
}Specification
Sub-features
Support for each part of the feature (14). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| HTMLIFrameElement.adAuctionHeaders | 122 | ✕ | ✕ | ✕ | 122 | ✕ | ✕ |
| Navigator.canLoadAdAuctionFencedFrame | 128 | ✕ | ✕ | ✕ | 128 | ✕ | ✕ |
| Navigator.clearOriginJoinedAdInterestGroups | 128 | ✕ | ✕ | ✕ | 128 | ✕ | ✕ |
| Navigator.createAuctionNonce | 128 | ✕ | ✕ | ✕ | 128 | ✕ | ✕ |
| Navigator.deprecatedRunAdAuctionEnforcesKAnonymity | 128 | ✕ | ✕ | ✕ | 128 | ✕ | ✕ |
| Navigator.getInterestGroupAdAuctionData | 132 | ✕ | ✕ | ✕ | 132 | ✕ | ✕ |
| Navigator.joinAdInterestGroup | 128 | ✕ | ✕ | ✕ | 128 | ✕ | ✕ |
| Navigator.leaveAdInterestGroup | 128 | ✕ | ✕ | ✕ | 128 | ✕ | ✕ |
| Navigator.protectedAudience | 128 | ✕ | ✕ | ✕ | 128 | ✕ | ✕ |
| Navigator.runAdAuction | 128 | ✕ | ✕ | ✕ | 128 | ✕ | ✕ |
| Navigator.updateAdInterestGroups | 128 | ✕ | ✕ | ✕ | 128 | ✕ | ✕ |
| ProtectedAudience | 127 | ✕ | ✕ | ✕ | 127 | ✕ | ✕ |
| ProtectedAudience.queryFeatureSupport | 127 | ✕ | ✕ | ✕ | 127 | ✕ | ✕ |
| SharedStorageWorkletGlobalScope.interestGroups | 134 | ✕ | ✕ | ✕ | 134 | ✕ | ✕ |