Class AdMetrics

java.lang.Object
org.openqa.selenium.devtools.v150.ads.model.AdMetrics

public class AdMetrics extends Object
Ad metrics for a page.
  • Constructor Details

    • AdMetrics

      public AdMetrics(Integer viewportAdDensityByArea, Number averageViewportAdDensityByArea, Integer viewportAdCount, Number averageViewportAdCount, Number totalAdCpuTime, Number totalAdNetworkBytes)
  • Method Details

    • getViewportAdDensityByArea

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

      public Number getAverageViewportAdDensityByArea()
      The time-weighted average of the viewport ad density by area, measured across the duration of the page.
    • getViewportAdCount

      public Integer getViewportAdCount()
      The number of ads currently visible within the viewport.
    • getAverageViewportAdCount

      public Number getAverageViewportAdCount()
      The time-weighted average of the viewport ad count, measured across the duration of the page.
    • getTotalAdCpuTime

      public Number getTotalAdCpuTime()
      The total ad CPU usage, in milliseconds.
    • getTotalAdNetworkBytes

      public Number getTotalAdNetworkBytes()
      The total ad network bytes.