← Back to Page domain

Page.getAdScriptAncestry

No description available.

Domain: Page experimental

Parameters

NameTypeDescription
frameIdFrameId

Returns

NameTypeDescription
adScriptAncestryNetwork.AdAncestryThe ancestry chain of ad script identifiers leading to this frame's creation, along with the root script's filterlist rule. The ancestry chain is ordered from the most immediate script (in the frame creation stack) to more distant ancestors (that created the immediately preceding script). Only sent if frame is labelled as an ad and ids are available.

Example Request

{
  "id": 1,
  "method": "Page.getAdScriptAncestry",
  "params": {
    "frameId": "ABC123DEF456"
  }
}

Example Response

{
  "id": 1,
  "result": {
    "adScriptAncestry": "adScriptAncestry-value"
  }
}

Usage in Node.js

const result = await send('Page.getAdScriptAncestry', {"frameId": "ABC123DEF456"});
console.log(result);
// {"adScriptAncestry": "adScriptAncestry-value"}