AdScriptAncestry

@Serializable
data class AdScriptAncestry(val ancestryChain: List<Page.AdScriptId>, val rootScriptFilterlistRule: String? = null)

Encapsulates the script ancestry and the root script filterlist rule that caused the frame to be labelled as an ad. Only created when ancestryChain is not empty.

Constructors

Link copied to clipboard
constructor(ancestryChain: List<Page.AdScriptId>, rootScriptFilterlistRule: String? = null)

Properties

Link copied to clipboard

A chain of AdScriptIds representing the ancestry of an ad script that led to the creation of a frame. The chain is ordered from the script itself (lower level) up to its root ancestor that was flagged by filterlist.

Link copied to clipboard

The filterlist rule that caused the root (last) script in ancestryChain to be ad-tagged. Only populated if the rule is available.