Skip to main content

Module ads

Module ads 

Source
Expand description

A domain for ad-related metrics and data.

Types, command parameters and event payloads for the Ads domain. The method-name constants for the same domain are in crate::methods.

This domain is experimental and may change without notice.

Structs§

AdFrameData
Ad frame data.
AdMetrics
Ad metrics for a page.
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.
GetAdMetricsParams
Retrieves ad metrics for the current page.
GetAdMetricsReturns
What Ads.getAdMetrics answers with.
GetAdScriptsParams
Retrieves ad scripts for the current page. To minimize payload size, this only returns the newly tracked ad scripts since the last call to getAdScripts (i.e., the delta).
GetAdScriptsReturns
What Ads.getAdScripts answers with.