Class AdMetrics
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
ViewportAdDensityByArealongThe viewport ad density by area, represented as a percentage (an integer between 0 and 100).
AverageViewportAdDensityByAreadoubleThe time-weighted average of the viewport ad density by area, measured across the duration of the page.
ViewportAdCountlongThe number of ads currently visible within the viewport.
AverageViewportAdCountdoubleThe time-weighted average of the viewport ad count, measured across the duration of the page.
TotalAdCpuTimedoubleThe total ad CPU usage, in milliseconds.
TotalAdNetworkBytesdoubleThe total ad network bytes.
UpdateAdFramesImmutableArray<AdFrameData>The list of ad frames that have been updated since the last event.
RemoveAdFramesImmutableArray<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
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
RemoveAdFrames
The list of ad frame IDs that have been removed since the last event.
public ImmutableArray<FrameId> RemoveAdFrames { get; init; }
Property Value
TotalAdCpuTime
The total ad CPU usage, in milliseconds.
public double TotalAdCpuTime { get; init; }
Property Value
TotalAdNetworkBytes
The total ad network bytes.
public double TotalAdNetworkBytes { get; init; }
Property Value
UpdateAdFrames
The list of ad frames that have been updated since the last event.
public ImmutableArray<AdFrameData> UpdateAdFrames { get; init; }
Property Value
ViewportAdCount
The number of ads currently visible within the viewport.
public long ViewportAdCount { get; init; }
Property Value
ViewportAdDensityByArea
The viewport ad density by area, represented as a percentage (an integer between 0 and 100).
public long ViewportAdDensityByArea { get; init; }