java.lang.Object
org.openqa.selenium.devtools.v147.audits.model.AdAncestry

public class AdAncestry extends Object
Providence about how an ad script was determined to be such. It is an ad because its url matched a filterlist rule, or because some other ad script was on the stack when this script was loaded.
  • Constructor Details

  • Method Details

    • getAdAncestryChain

      public List<AdScriptIdentifier> getAdAncestryChain()
      The ad-script in the stack when the offending script was loaded. This is recursive down to the root script that was tagged due to the filterlist rule.
    • getRootScriptFilterlistRule

      public Optional<String> getRootScriptFilterlistRule()
      The filterlist rule that caused the root (last) script in `adAncestry` to be ad-tagged.