getAdScriptAncestryIds method
Returns: The ancestry chain of ad script identifiers leading to this frame's creation, 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.
Implementation
Future<List<AdScriptId>> getAdScriptAncestryIds(FrameId frameId) async {
var result = await _client.send('Page.getAdScriptAncestryIds', {
'frameId': frameId,
});
return (result['adScriptAncestryIds'] as List)
.map((e) => AdScriptId.fromJson(e as Map<String, dynamic>))
.toList();
}