← Back to Page domain
Page.getAdScriptAncestry
No description available.
Domain: Page
experimental
Parameters
| Name | Type | Description |
frameId | FrameId | |
Returns
| Name | Type | Description |
adScriptAncestry | Network.AdAncestry | The 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"}