This guide explains how to implement High-Impact.js for publishers. It includes example code for the Midscroll format.
High-Impact.js works by listening for the ad server’s received ad callback.
When an ad is detected:
Alternative flow:
If multiple frameworks run on the same placement, High-Impact.js can be configured to ignore all received ads and instead wait for the creative to explicitly signal that the placement should be styled.
Add the script in the <head> of all pages where High-Impact ads should render.
Must load before any calls to the ad server.
Define slot sizes with window.highImpactJs.defineSlot.
1920x10801080x1920googletag.defineSlot.Match adUnitId with the div ID used in googletag.defineSlot.