This is the data format that the UI can use to render sections

Constructors

Properties

allowed: {
    adClickAttribution: AggregatedCompanyResponseData;
    otherThirdPartyRequest: AggregatedCompanyResponseData;
    ownedByFirstParty: AggregatedCompanyResponseData;
    protectionDisabled: AggregatedCompanyResponseData;
    ruleException: AggregatedCompanyResponseData;
} = ...
surrogates: string[]

Methods

  • The number of entities observed that had 'non-special' requests.

    'non-special' means a request that was observed, but it was not classified as a tracker

    Returns number

  • The number of entities observed that had 'special' requests.

    'special' means that a request was classified as a tracker, but we didn't block it for any given reason. Note: This list excludes 'non-special' requests such as 3rd party requests not classified as trackers

    Returns number

  • Parameters

    • protectionsEnabled: boolean
    • states: (
          | "protectionsOn"
          | "protectionsOn_blocked"
          | "protectionsOn_blocked_allowedTrackers"
          | "protectionsOn_blocked_allowedNonTrackers"
          | "protectionsOn_blocked_allowedTrackers_allowedNonTrackers"
          | "protectionsOn_allowedTrackers"
          | "protectionsOn_allowedNonTrackers"
          | "protectionsOn_allowedTrackers_allowedNonTrackers"
          | "protectionsOn_allowedFirstParty"
          | "protectionsOn_allowedFirstParty_allowedNonTrackers"
          | "protectionsOff"
          | "protectionsOff_allowedTrackers"
          | "protectionsOff_allowedNonTrackers"
          | "protectionsOff_allowedTrackers_allowedNonTrackers")[]

    Returns boolean

  • From the available request data, determine the global 'state' of the Request Data

    Parameters

    • protectionsEnabled: boolean

    Returns
        | "protectionsOn"
        | "protectionsOn_blocked"
        | "protectionsOn_blocked_allowedTrackers"
        | "protectionsOn_blocked_allowedNonTrackers"
        | "protectionsOn_blocked_allowedTrackers_allowedNonTrackers"
        | "protectionsOn_allowedTrackers"
        | "protectionsOn_allowedNonTrackers"
        | "protectionsOn_allowedTrackers_allowedNonTrackers"
        | "protectionsOn_allowedFirstParty"
        | "protectionsOn_allowedFirstParty_allowedNonTrackers"
        | "protectionsOff"
        | "protectionsOff_allowedTrackers"
        | "protectionsOff_allowedNonTrackers"
        | "protectionsOff_allowedTrackers_allowedNonTrackers"