Ads Domain
A domain for ad-related metrics and data.
Methods
Types
Methods
Types
Ads.AdFrameData #
Ad frame data.
Type: object
Properties
frameId The DevTools frame token.
initialOriginOptional
stringThe initial origin of the frame. To minimize the payload size, this is only sent once per frame.
networkBytes numberThe network bytes of the frame.
cpuTime numberThe CPU time of the frame, in milliseconds.
Ads.AdMetrics #
Ad metrics for a page.
Type: object
Properties
viewportAdDensityByArea integerThe viewport ad density by area, represented as a percentage (an integer between 0 and 100).
averageViewportAdDensityByArea numberThe time-weighted average of the viewport ad density by area, measured across the duration of the page.
viewportAdCount integerThe number of ads currently visible within the viewport.
averageViewportAdCount numberThe time-weighted average of the viewport ad count, measured across the duration of the page.
totalAdCpuTime numberThe total ad CPU usage, in milliseconds.
totalAdNetworkBytes numberThe total ad network bytes.
updateAdFrames array[ AdFrameData ]The list of ad frames that have been updated since the last event.
removeAdFrames array[ Page.FrameId ]The list of ad frame IDs that have been removed since the last event.
Ads.AdScript #
An ad script. Note: when the script is a transitive ad script, we only fill in the immediate ancestor script in the provenance's adScriptAncestry field (as its first entry), rather than filling in the full ancestry. This saves work for the backend, and the frontend can reconstruct the full ancestry if necessary.
Type: object
Properties
scriptId The script ID.
provenance The ad provenance.