Skip to content

Instantly share code, notes, and snippets.

@FikretHassan
Last active June 20, 2024 13:02
Show Gist options
  • Save FikretHassan/ee10ed1e36d3ace40231a08bdd4d9afd to your computer and use it in GitHub Desktop.
Save FikretHassan/ee10ed1e36d3ace40231a08bdd4d9afd to your computer and use it in GitHub Desktop.
Add this to your creative / creative wrapper to log chrome heavy ad interventions to the console
const observer = new ReportingObserver(
(reports, observer) => {
console.log('ADTECH: reporting observer results:', JSON.stringify(reports));
}, {
buffered: true
}
);
// start watching for interventions
observer.observe();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment