Building HTML5 Creatives

HTML5 files that run on the DSP must meet the IAB standards for HTML5, which are defined in HTML5 for Digital Advertising v2.0.

If you upload your HTML5 creative on the DSP, it must also meet these requirements:

All code needed for the creative (HTML, CSS, and JavaScript) must be compressed into a single .zip file.

  • If your HTML5 creative is already a single .html file, you must still zip it up and upload it into the DSP as a .zip file.

The main HTML file must be in the root directory of the .zip file.

  • If only one HTML file (*.html or *.htm) is in the .zip file, this is considered the main HTML.
  • If your .zip file contains multiple html files, the main HTML file must be named index.html.

The .zip file must be smaller than 200 kb.

The clickable area on the creative must be either:

1. A single clickable area that covers the entire creative

  • No interactivity
  • No additional tracking events
  • If a user clicks anywhere on the creative, the ad opens one landing page.

-or-

2. Designed with a click tag query string parameter

    • If your ad uses a click tag, JavaScript code inside the HTML5 creative must read the click tag from a query string parameter named "clickTag" or "clickTAG".
    • This example reads the click tag URL from a query string parameter named "clickTag" and then opens that URL in another window:

The creative code cannot interact directly with the parent window. HTML5 ads are served into an iframe, meeting publishers' security requirements. This iframe prevents a creative from manipulating or reading objects in the browser or the publisher's page.

Was this article helpful?
0 out of 0 found this helpful