This guide explains how to implement High-Impact.js for publishers. It includes example code for the Midscroll format.


1. General Overview

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.


2. Step-by-Step Instructions

  1. Add the script in the <head> of all pages where High-Impact ads should render.

    Must load before any calls to the ad server.

  2. Define slot sizes with window.highImpactJs.defineSlot.

  3. Match adUnitId with the div ID used in googletag.defineSlot.