Ad Count, Density and Weight Metrics: Detection, Measurement and Reporting
How browser ad metrics work: Ad Count, Ad Density, CPU and network weight, detection rules, ads.txt eligibility, and CrUX tools.
This page summarises Chrome ad experience measurements and related CrUX ad metrics documentation. Chrome publishes experimental field metrics so publishers, advertisers, and engineers can see how many ads users see, how much screen and resource capacity ads use, and how that compares across sites—without treating those numbers like Core Web Vitals pass or fail scores.
CrUX ad metrics: what they measure and who they are for
Section titled “CrUX ad metrics: what they measure and who they are for”CrUX ad metrics overview describes an experimental set of measurements gathered by the browser from eligible Chrome users, aggregated in a 28-day rolling window and reported at the 75th percentile (p75). The same pipeline also powers Core Web Vitals field data, but the two programs differ in purpose and scoring.
Though Core Web Vitals and CrUX ad metrics share the same CrUX pipeline, the ad metrics are not part of the Core Web Vitals initiative. Additionally, CrUX ad metrics are not scored like Core Web Vitals are, lacking categories such as “Good,” “Needs improvement,” or “Poor”.
— Chrome, CrUX ad metrics overview
Chrome User Experience Report (CrUX) ad metrics are an experimental set of ad-related measurements provided by the browser. Ad metrics provide transparent telemetry to help advertisers and sites value ad opportunities and make product decisions.
— Chrome, CrUX ad metrics overview
Ad experience is split into four metrics that cover visibility and load cost:
| Metric | What it answers | Unit in CrUX API |
|---|---|---|
| Ad Count | Average number of distinct ad elements visible in the viewport while the user scrolls | experimental_ad_count (2 decimal places) |
| Ad Density | Average share of viewport area occupied by visible ads | experimental_ad_density (percent integer) |
| Ad Weight: CPU | Total JavaScript CPU time used by ad frames and their subresources | experimental_ad_cpu (milliseconds) |
| Ad Weight: Network | Compressed bytes transferred for ad-related resources | experimental_ad_kilobytes (kilobytes) |
ads.txt requirement: why CrUX may show no ad data
Section titled “ads.txt requirement: why CrUX may show no ad data”Public CrUX ad aggregates only include origins that declare authorized ad sellers. Local DevTools measurements can still appear on pages without a qualifying ads.txt.
Pages and origins without at least one authorized seller defined in ads.txt file won’t have ad metrics data in CrUX.
— Chrome, Ad Count
Chrome’s ad detection is most reliable on sites with recognizable advertising partners. To support the quality of the metrics reported in CrUX, we include only those sites that list at least one authorized seller in their ads.txt.
— Chrome, CrUX ad metrics measurement methodology
Ad detection: how the browser labels ads before counting
Section titled “Ad detection: how the browser labels ads before counting”Every visibility and weight metric depends on ad detection in Chrome. Detection runs on subresources and iframes so the browser can measure ad footprint and support interventions such as unloading resource-heavy ads.
Ad detection identifies ad-related resources and frames to provide the browser with the data necessary to distinguish between primary and advertising content.
— Chrome, Introduction to Chrome’s ad detection
Filter list and JavaScript stack rules
Section titled “Filter list and JavaScript stack rules”Chrome combines network filtering with script stack analysis:
- Filter list matching — Before a subresource or iframe request is sent, the URL is checked against a condensed EasyList-based filter list. A match marks the request as ad-related.
- JavaScript stack analysis — Subresources or frames requested on behalf of an already identified ad script inherit ad classification when an ad script appears on the stack at request time.
- Sticky iframe classification — Once an iframe is flagged as an ad, subresources inside it stay ad-classified even if the frame navigates elsewhere.
The main frame itself will never be classified as an ad frame. However, subresources (such as scripts and media) that are used in the main frame, can be.
— Chrome, How ad detection works
DevTools: verify what Chrome counted as an ad
Section titled “DevTools: verify what Chrome counted as an ad”Use Chrome DevTools to debug mismatches between layout expectations and field metrics:
| Panel | Action |
|---|---|
| Application → Ads | Enable Highlight Ads for red overlays on flagged frames; view local CrUX ad metric estimates |
| Application → Frames → Document | Inspect Ad Status and the classification reason |
| Network | Show Is ad-related column |
| Elements | Look for the ad adorner on flagged elements |
| Rendering | Highlight ad frames (see Rendering: apply effects) |
For manual tests, append ?ad_filterlist_demo_param=1 to a URL so Chrome treats that request as ad-related (ad detection).
Ad Count metric: how many ads users see in the viewport
Section titled “Ad Count metric: how many ads users see in the viewport”The Ad Count metric describes how many ads a most users are seeing at once on the site.
— Chrome, Ad Count
Ad Count uses viewport sampling once per second for the whole page visit. When the user leaves the page, Chrome reports the average count of distinct visible ad elements (frames, images, and similar) across those samples. Values use two decimal places—for example 2.00 in the CrUX API.
Worked example: Two ads visible for 5 seconds, then zero for 5 seconds yields Ad Count 1.00 (time-weighted average).
For CrUX aggregates, Chrome publishes the p75 across eligible page views: about 75% of sessions had that count or fewer at sample points. See The 75th percentile (p75) in the methodology guide.
Ad Count visibility rules
Section titled “Ad Count visibility rules”From visual measurement in the methodology doc:
- An ad counts if at least one pixel is inside the viewport at the 1-second sample, even when ads overlap (each ad is counted separately).
- Elements with
display: none(no layout footprint) are excluded from count and density, but CPU and network weights still accrue.
Ad Density metric: share of the screen taken by ads
Section titled “Ad Density metric: share of the screen taken by ads”The Ad Density metric describes a typical user’s balance of content and advertising visibility.
— Chrome, Ad Density
Each second, Chrome computes the ratio of visible ad bounding-box area to total viewport area, then averages those ratios over the session. CrUX reports an integer percentage (for example 50 means 50%). Overlapping ad regions count once via the union of ad areas. Only the portion of each ad inside the viewport at the sample counts toward density.
The same scroll example as Ad Count—50% ad coverage for 5 seconds, then 0% for 5 seconds—produces reported Ad Density 25.
Ad Weight metrics: CPU and network cost of ads
Section titled “Ad Weight metrics: CPU and network cost of ads”Ad Weight: CPU
Section titled “Ad Weight: CPU”The Ad Weight: CPU metric describes the CPU time consumed by ads, which may impact page performance.
— Chrome, Ad Weight: CPU
CPU weight is the sum of JavaScript CPU thread execution time (milliseconds) for ad frames and their subresources across the visit. It is reported as an integer in milliseconds.
Ad Weight: Network
Section titled “Ad Weight: Network”The Ad Weight: Network metric describes the network resource consumption by ads, which may impact page performance.
— Chrome, Ad Weight: Network
Network weight is the sum of compressed wire bytes for ad-related scripts, images, stylesheets, and similar resources, rounded to the nearest kilobyte.
Non-rendering ads do not affect count or density, but CPU and network ad weights are still measured (methodology).
Measurement lifecycle: when collection starts and stops
Section titled “Measurement lifecycle: when collection starts and stops”CrUX ad metrics measurement methodology defines three phases:
| Phase | When it happens |
|---|---|
| Activation | After TTFB for the main HTML document |
| Collection | Viewport sampling for Ad Count and Ad Density; cumulative aggregation for CPU and network weights |
| Termination | Page unload (navigation, tab close, browser exit); on Android, also when the app is backgrounded |
The viewport is the visible page canvas, excluding browser chrome. On mobile, Chrome uses the actual viewport height at each sample when the address bar shows or hides.
Field reporting vs lab: no JavaScript mirror for RUM
Section titled “Field reporting vs lab: no JavaScript mirror for RUM”Cross-origin ad iframes block site owners from reproducing the same logic in Real User Monitoring (RUM):
There are challenges reporting across cross-origin iframes which most ads are delivered through. Therefore, there is no JavaScript API to allow similar detection for Real User Monitoring (RUM) tooling.
— Chrome, Collecting Ad Count through JavaScript
The ads.txt filtering occurs during CrUX data aggregation, not within the browser. As a result, the Chrome DevTools Ads panel attempts to display ad metrics locally for any page you inspect, even on sites without an ads.txt file
— Chrome, Local ad metrics in DevTools
CrUX tools: where to read Ad Count, Density, and Weight
Section titled “CrUX tools: where to read Ad Count, Density, and Weight”CrUX ad metrics tooling guide lists dashboards and APIs. CrUX Vis includes a dedicated Ad Metrics page for historical trends (40 weeks of overlapping 28-day windows, updated Mondays).
CrUX API metric keys
Section titled “CrUX API metric keys”Programmatic access uses the same keys as in CrUX ad metrics tooling guide:
| Display name | API key | p75 unit |
|---|---|---|
| Ad Density | experimental_ad_density |
Percent |
| Ad Count | experimental_ad_count |
Unitless (2 decimals as string) |
| Ad Weight: CPU | experimental_ad_cpu |
Milliseconds |
| Ad Weight: Network | experimental_ad_kilobytes |
Kilobytes |
Example request body for an origin snapshot (tooling guide):
{ "origin": "https://example.com", "metrics": [ "experimental_ad_density", "experimental_ad_count", "experimental_ad_cpu", "experimental_ad_kilobytes" ]}Use CrUX API queryRecord for the latest 28-day window (daily updates) and CrUX History API queryHistoryRecord for weekly time series. Both need a Google Cloud API key for Chrome UX Report API usage (CrUX API); the shared quota is 150 queries per minute per project.
BigQuery exposure for ad metrics was still planned as of the tooling documentation; ad metric API names map to n/a in CrUX BigQuery in CrUX API metric tables.
Heavy ads and shared detection logic
Section titled “Heavy ads and shared detection logic”The same ad labels that feed metrics also feed heavy ad interventions: Chrome unloads ad frames that exceed bandwidth or main-thread limits when the user has not interacted with the ad. Thresholds and debugging steps are in Understand Chrome’s Heavy Ad Interventions. Detection rules align with ad detection—filter list, stack inheritance, and sticky ad iframes.
Common mistakes when reading ad metrics
Section titled “Common mistakes when reading ad metrics”- Expecting Core Web Vitals labels — Ad metrics have no Good / Needs improvement / Poor bands (CrUX ad metrics overview).
- Missing CrUX data with ads on the page — Check
ads.txtfor at least one authorized seller (methodology). - Comparing DevTools locals to CrUX — Local Ads panel values may differ from CrUX aggregates (local ad metrics).
- Building in-house RUM parity — Cross-origin iframes prevent a public JavaScript API equivalent (Ad Count).
- Treating sticky iframes as editorial — A frame once classified as an ad keeps that status for metrics and interventions (detection).
How to check this on your site
Section titled “How to check this on your site”-
Open CrUX Vis, enter your canonical
httpsorigin or URL, and open the Ad Metrics section for p75 trends. -
In Chrome DevTools, open the Application panel Ads tab, enable Highlight Ads, and confirm flagged frames match your ad placements (ad detection).
-
Confirm your site’s
ads.txtlists at least one authorized seller so the origin can appear in public CrUX ad aggregates (methodology). -
Optional: query
experimental_ad_count,experimental_ad_density,experimental_ad_cpu, andexperimental_ad_kilobytesvia the CrUX API or CrUX History API using the examples in CrUX ad metrics tooling guide. -
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page looks wrong or you need a clarification, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.