Rich Media (HTML5) Ads Guide

What are Rich Media (HTML5) Ads?

Rich media Ads, also known as HTML5 Ads include advanced features like animations or other elements that encourage viewers to interact and engage with content. Rich Media ads are formatted using HTML5, which allows developers to add animations directly into the source code of a page.

These types of Ads are like mini web pages and contain multiple file types that can combine HTML, Javascript, CSS, Web Fonts, shared javascript libraries, SVG, WebGL, and other standard assets, such as images. This eliminates the need for plugins like Flash, which is no longer supported by RollWorks or any of its partners.



What are the Zip file requirements for Rich Media (HTML5) Ads?

Check.png Each HTML5 ad must be its own zip file that contains all code and assets (including public, commonly used JavaScript libraries). It must contain all files referenced from the HTML document:

    • Root of the folder should be a single, well-structured, and complete HTML document
    • The ad must be loadable into an iFrame (when being served)
    • Supported Shared Libraries: Adobe Edge, CreateJS (Easeljs, Movieclip, TweenJS, SoundJS, and PreloadJS), JQuery, Angular JS, Tumult Hype, Swiffy, GSAP (TweenLite, CSSPlugin, and EasePack)

Check.png Links must reference file locations

Check.png Assets must be loaded securely using https

Ex.png Code references to external domains are not permitted (no cross-domain scripting)

Ex.png Local storage or session storage libraries are not permitted

Ex.png CDN calls are not allowed within the creative's HTML file due to security reasons


What are the technical requirements for HTML5 Rich Media Ads?

  • The maximum file size is 150KB
  • The animation limit for an HTML5 ad is 30 seconds. Looping the animation is not allowed.
  • Use the <!DOCTYPE html><html>, and <body> tags

  • Use the <meta> tags to identify the size of the ad:

    • <meta name="ad.size" content= "width=300, height=250">
  • Declare a clickTag variable. ClickTag is a click-through URL: a shortcut to set the click-through URL in the platform.

    • <script type="text/javascript">
      // Change the value of this string to your URL
      var clickTag = "";
    • This must be passed as a parameter to any event in the ad code.

      <div id="clickArea" style="width: 300px; height: 250px" onclick=" ,'_blank');">


What sizes are supported for Rich Media (HTML5) Ads?

RollWorks Supports the following sizes for HTML5 ads:

  • 0x3 Web Video
  • 120x240 Vertical Banner
  • 120x60 Tiny Rectangle
  • 120x600 Skyscraper
  • 125x125 Square Button
  • 160x600 Wide skyscraper
  • 180x150 Small Rectangle
  • 180x60 Rectangular Button
  • 200x200 Mid Square
  • 234x60 Half banner
  • 250x250 Square
  • 300x100 3:1 Rectangle
  • 300x250 Inline rectangle
  • 300x600 Half-page
  • 320x50 Mobile leaderboard
  • 336x280 Large rectangle
  • 400x80 Email Banner
  • 468x60 Banner
  • 500x100 Email Medium Banner
  • 728x90 Leaderboard
  • 88x31 Micro Banner
  • 970x250 Billboard

How do I create Rich Media (HTML5) Ads?

We recommend working with a graphic designer that can satisfy the above requirements to create Rich Media (HTML5) Ads. Once you have created your Rich Media (HTML5) Ad you can use this tool to validate the asset.

How do I upload Rich Media (HTML5) Ads to RollWorks?

Uploading your Rich Media Ads via the RollWorks platform is not available at this time. Please reach out to the Customer Support team for help uploading your Rich Media Ads.




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