Table of Contents

Class AdMetrics

Namespace
Selenium.WebDriver.BiDi.Cdp.Ads
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Ad metrics for a page.

public sealed record AdMetrics : IEquatable<AdMetrics>
Inheritance
AdMetrics
Implements
Inherited Members

Constructors

AdMetrics(long, double, long, double, double, double, ImmutableArray<AdFrameData>, ImmutableArray<FrameId>)

Ad metrics for a page.

public AdMetrics(long ViewportAdDensityByArea, double AverageViewportAdDensityByArea, long ViewportAdCount, double AverageViewportAdCount, double TotalAdCpuTime, double TotalAdNetworkBytes, ImmutableArray<AdFrameData> UpdateAdFrames, ImmutableArray<FrameId> RemoveAdFrames)

Parameters

ViewportAdDensityByArea long

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

AverageViewportAdDensityByArea double

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

ViewportAdCount long

The number of ads currently visible within the viewport.

AverageViewportAdCount double

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

TotalAdCpuTime double

The total ad CPU usage, in milliseconds.

TotalAdNetworkBytes double

The total ad network bytes.

UpdateAdFrames ImmutableArray<AdFrameData>

The list of ad frames that have been updated since the last event.

RemoveAdFrames ImmutableArray<FrameId>

The list of ad frame IDs that have been removed since the last event.

Properties

AverageViewportAdCount

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

public double AverageViewportAdCount { get; init; }

Property Value

double

AverageViewportAdDensityByArea

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

public double AverageViewportAdDensityByArea { get; init; }

Property Value

double

RemoveAdFrames

The list of ad frame IDs that have been removed since the last event.

public ImmutableArray<FrameId> RemoveAdFrames { get; init; }

Property Value

ImmutableArray<FrameId>

TotalAdCpuTime

The total ad CPU usage, in milliseconds.

public double TotalAdCpuTime { get; init; }

Property Value

double

TotalAdNetworkBytes

The total ad network bytes.

public double TotalAdNetworkBytes { get; init; }

Property Value

double

UpdateAdFrames

The list of ad frames that have been updated since the last event.

public ImmutableArray<AdFrameData> UpdateAdFrames { get; init; }

Property Value

ImmutableArray<AdFrameData>

ViewportAdCount

The number of ads currently visible within the viewport.

public long ViewportAdCount { get; init; }

Property Value

long

ViewportAdDensityByArea

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

public long ViewportAdDensityByArea { get; init; }

Property Value

long