AdProvenance

@Serializable
data class AdProvenance(val filterlistRule: String? = null, val adScriptAncestry: Network.AdAncestry? = null)

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

Link copied to clipboard
constructor(filterlistRule: String? = null, adScriptAncestry: Network.AdAncestry? = null)

Properties

Link copied to clipboard

The script ancestry that created the ad, if any.

Link copied to clipboard
val filterlistRule: String? = null

The filterlist rule that matched, if any.