Class AdProvenance
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 record AdProvenance : IEquatable<AdProvenance>
- Inheritance
-
AdProvenance
- Implements
- Inherited Members
Constructors
AdProvenance()
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 AdProvenance()
Properties
AdScriptAncestry
The script ancestry that created the ad, if any. Note: depending on the context, this may represent the full ancestry up to the root script, or it may contain only one script representing the immediate ancestor.
public AdAncestry? AdScriptAncestry { get; init; }
Property Value
FilterlistRule
The filterlist rule that matched, if any.
public string? FilterlistRule { get; init; }