HTML5 interstitial build guide

Resize your creative for mobile devices

To build a full-screen interstitial that conforms to the device’s size, use the Flex Size (Interstitial, Smart Banner) creative size in Studio. This sets the size at 0x0 but causes the creative to resize on initial load to the full available area. To listen to resize events and then perform a subsequent action (like resizing an image to fit a window), set up a window resize listener:

Code snippet

function resizeHandler(e) {
  console.log("Window Resized");
window.addEventListener("resize", resizeHandler);
Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue