coderef

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

DesktopChrome
1–133Not supported
134+Supportedsince Mar 4, 2025
Current: 155
Edge
✕Not supportedup to 154
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–133Not supported
134+Supportedsince Mar 4, 2025
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

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

JS · check before using
if ("ProtectedAudience" in globalThis) {
  // ProtectedAudience is available
} else {
  // load a polyfill or use a fallback
}

Sub-features

Support for each part of the feature (14). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
HTMLIFrameElement.adAuctionHeaders122✕✕✕122✕✕
Navigator.canLoadAdAuctionFencedFrame128✕✕✕128✕✕
Navigator.clearOriginJoinedAdInterestGroups128✕✕✕128✕✕
Navigator.createAuctionNonce128✕✕✕128✕✕
Navigator.deprecatedRunAdAuctionEnforcesKAnonymity128✕✕✕128✕✕
Navigator.getInterestGroupAdAuctionData132✕✕✕132✕✕
Navigator.joinAdInterestGroup128✕✕✕128✕✕
Navigator.leaveAdInterestGroup128✕✕✕128✕✕
Navigator.protectedAudience128✕✕✕128✕✕
Navigator.runAdAuction128✕✕✕128✕✕
Navigator.updateAdInterestGroups128✕✕✕128✕✕
ProtectedAudience127✕✕✕127✕✕
ProtectedAudience.queryFeatureSupport127✕✕✕127✕✕
SharedStorageWorkletGlobalScope.interestGroups134✕✕✕134✕✕