AdProvenance class

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.

Constructors

AdProvenance({String? filterlistRule, AdAncestry? adScriptAncestry})
AdProvenance.fromJson(Map<String, dynamic> json)
factory

Properties

adScriptAncestry AdAncestry?
The script ancestry that created the ad, if any.
final
filterlistRule String?
The filterlist rule that matched, if any.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited