HTML5 banners: what ValidFile checks
Published November 19, 2026 · By the ValidFile team · 5 min read
ValidFile opens an HTML5 banner’s zip and reads its page, its code and its styles: its weight, its files, its declared size, its clickTag and the addresses of what it loads, as its code writes them out. Then it plays the banner in a browser and clicks on it, to find out whether a click really opens the link.
1. The zip and its weight
An HTML5 banner is dropped as a zip, with its index.html. ValidFile keeps it whole and counts it as one file, so one credit.
For Campaign Manager 360, the zip weighs 10 MB at most and holds 100 files at most. Its files are of these types: HTML, JS, CSS, JPG, PNG, GIF or SVG images, fonts, JSON or XML. Another type of file, a zip inside the zip, a second page the banner does not load or a % sign in a name: the banner is rejected.
Google Ads takes fewer: 40 files at most. In between, ValidFile warns without rejecting, except at 320×480 and 480×320, sizes Google Ads does not list.
For an IAB standard banner, the advised weight is lower: 450 KB for a Medium Rectangle, initial load and subload together. Above it, ValidFile warns without rejecting.
How to fix it. Send one zip per size, with only the page and the files it uses. To make it lighter, compress the images and take out what is not used.
2. The declared size: the ad.size tag
An HTML page has no size of its own. The ad server sizes the frame from the <meta name="ad.size" content="width=728,height=90"> tag in the <head>, and that is what ValidFile reads to know which banner it has in front of it. The declared size must be exactly the format’s.
Without the tag, ValidFile does not guess the size from the file’s name. The banner is placed under no format until you give it one, and its size is then said to be unchecked, never compliant. A tag that does not give a fixed width and height in pixels is flagged too.
How to fix it. Add the ad.size tag to the page’s <head>, with the format’s exact width and height.
3. The clickTag, read in the code
ValidFile looks for a clickTag declared where an ad server reads it: var clickTag = "…" in the page’s code, neither minified nor obfuscated. Without a clickTag, the banner is rejected for Campaign Manager 360: the server could neither set nor count the click.
Two other cases are flagged without a rejection: a clickTag declared that nothing in the code reads and, for Campaign Manager 360, a destination address written into the code, which the server could neither count nor change.
How to fix it. Declare var clickTag in the page, and open it on click: window.open(window.clickTag).
4. The click, tried by playing the banner
A clickTag declared properly does not prove that a click opens it. A link placed under the animation instead of over it gets no click: the banner passes every reading of its code, and leads nowhere.
So ValidFile plays it in an isolated browser, with no Internet access, and clicks on it: at 9 points spread over the whole banner, then at the centre of every link and button, then everywhere, every 16 pixels, if nothing has answered yet. If no click opened the link, it starts again at 8, 16 and then 31 seconds, for a button that only appears at the end of the animation.
The report says what it found: “Opens the link everywhere”, “Opens the link at N of 9 places tried”, “Opens the link on its button only” or “Does not open the link”. Only the last is a warning, never a rejection.
A banner the browser could not play through, for instance because it loads a library from the Internet, is said to be “Not judged” for its click: neither accepted nor rejected on that point, and the report says so. One exception: CreateJS, Adobe Animate’s library, in its version of November 15, 2019, hosted by Google for banners, which ValidFile keeps on hand. Another version of CreateJS leaves the click “Not judged”.
How to fix it. Place the clickTag’s link over the whole banner, above the animation, not under it.
5. What the banner loads
Every file the page, its styles and its scripts call must be in the zip, by a relative path, since it will be missing once live too. An address the code builds as it plays is not read in the zip, and ValidFile says so under the banner.
For Campaign Manager 360, a missing file is rejected. A load over http, which an https site blocks, and the browser’s storage (localStorage, sessionStorage, indexedDB), which Campaign Manager 360 refuses, are rejected too. A file loaded from another site is flagged, except from s0.2mdn.net, where Google hosts its libraries.
For an IAB standard banner, a missing file is flagged without a rejection, and its loads over http, those from another site and the browser’s storage are not checked.
How to fix it. Put everything the banner uses in the zip, called by a relative path, and load the rest over https.
6. The length, the initial load, the backup image and the sound
ValidFile also plays the banner without clicking anything, and watches how long it moves, loops included: 30 s at most for Campaign Manager 360, 15 s for an IAB standard banner. Past that, it warns without rejecting.
For an IAB standard banner, it also weighs what the banner loads, gzipped, against its size’s limits: for a medium rectangle, 150 KB at most for the initial load, before the load event, and 300 KB for the subload, loaded while it plays. Past that, it warns without rejecting.
ValidFile shows the backup image it finds in the zip, a file named backup, fallback, static or secours for instance, so that you recognise the banner at a glance. It does not judge it: Campaign Manager 360 takes it separately, beside the zip. The sound is not checked yet for an HTML5 banner.
How to fix it. Have the animation stop before the format’s length, attach the backup image the platform asks for, and listen to the banner to the end to judge its sound.
Check before you send
- One zip per size, with its index.html page and only the files it uses.
- For Campaign Manager 360, a zip under 10 MB and 100 files.
- The ad.size tag in the <head>, at the format’s exact size.
- A clickTag, and a click on the banner that really opens it.
- An animation, loops included, of 30 s at most for Campaign Manager 360, 15 s for the IAB.
- For Campaign Manager 360, everything over https, and nothing loaded from outside the zip except from s0.2mdn.net.
Check your HTML5 banners
The trial without an account takes images and videos. An HTML5 banner is checked in ValidFile, from the Free plan up: drop its zip as it is, without unzipping it.
No credit card, no commitment.
Every size of Google (CM360) banners, as images and in HTML5