Table of Contents

Class AdProvenance

Namespace
OpenQA.Selenium.DevTools.V148.Network
Assembly
Selenium.WebDriver.dll

Represents the provenance of an ad resource or element. Only one of filterlistRule or adScriptAncestry can be set. If filterlistRule is provided, the resource URL directly matches a filter list rule. If adScriptAncestry is provided, an ad script initiated the resource fetch or appended the element to the DOM. If neither is provided, the entity is known to be an ad, but provenance tracking information is unavailable.

public sealed class AdProvenance
Inheritance
AdProvenance
Inherited Members

Properties

AdScriptAncestry

The script ancestry that created the ad, if any.

[JsonPropertyName("adScriptAncestry")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public AdAncestry? AdScriptAncestry { get; set; }

Property Value

AdAncestry

FilterlistRule

The filterlist rule that matched, if any.

[JsonPropertyName("filterlistRule")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? FilterlistRule { get; set; }

Property Value

string