Chrome DevTools Protocol

Methods

Ads.getAdMetrics

Retrieves ad metrics for the current page.

Return Object
metrics
AdMetrics

Types

Ads.AdMetrics

Ad metrics for a page.

Type: object

properties
viewportAdDensityByArea
integer

The viewport ad density by area, represented as a percentage (an integer between 0 and 100).

averageViewportAdDensityByArea
number

The time-weighted average of the viewport ad density by area, measured across the duration of the page.

viewportAdCount
integer

The number of ads currently visible within the viewport.

averageViewportAdCount
number

The time-weighted average of the viewport ad count, measured across the duration of the page.

totalAdCpuTime
number

The total ad CPU usage, in milliseconds.

totalAdNetworkBytes
number

The total ad network bytes.