An HTML5 banner can render perfectly on a designer’s computer and still be rejected, appear blank, or lose its click behavior in an ad platform. Local preview shows whether the browser can display the creative in your working environment. An ad platform evaluates the uploaded package against its delivery rules, then runs it in a different environment. Missing files, incorrect paths, incompatible click tracking, file limits, blocked resources, and iframe restrictions can all create a gap between those two results.
The practical fix is to test the exact file you plan to upload, not just the editable project. Extract the final package into a clean folder, inspect what it loads, check it against the destination platform’s specification, and use that platform’s preview or validator. At SizeIM, we also separate these delivery checks from a different problem: producing the same campaign accurately across many banner dimensions. A good resizing workflow reduces layout rework, but it does not replace platform-specific technical QA.
What does “works locally” actually prove?
A local preview proves a narrow point: under the conditions of that preview, the browser displayed something. It does not establish that the final ZIP contains every asset, that an ad server can recognize the click destination, or that the creative will behave correctly inside an iframe.
The distinction becomes clearer when you separate three tests:
- Source-project test: Open the HTML file in the folder where the creative was built. This is useful for design review but may silently depend on files elsewhere in that folder.
- Delivery-package test: Extract the exact upload archive into an empty directory and load its entry file. This reveals packaging mistakes, including missing assets and broken relative paths.
- Platform test: Upload the package to the intended destination and inspect its validation result and served preview. This checks rules and runtime behavior that a local browser cannot reproduce on its own.
A creative can pass the first test and fail either of the next two. Treat each result as evidence about a different stage, rather than assuming a successful local preview means the ad is ready to traffic.
Start by identifying the type of failure
Before changing code, capture what the platform is actually telling you. An upload rejection and a blank platform preview call for different investigations.
- Rejected at upload: Prioritize the platform’s stated error, archive structure, accepted file types, declared dimensions, size limits, and click implementation. A validator may stop the creative before it ever renders.
- Accepted but blank: Check the browser Console and Network panels in the platform preview. Look for failed asset requests, JavaScript exceptions, blocked remote resources, and content that remains hidden while waiting for an animation to start.
- Looks right but will not click: Inspect the click variable or exit setup required for this delivery path, the clickable element’s dimensions, and any overlay intercepting pointer events.
- Works at one size but not another: Inspect dimensions, clipping, font loading, line wrapping, and elements positioned outside a narrow or tall ad slot.
- Works in an ordinary browser tab but not in the served preview: Investigate iframe restrictions, parent-window access, remote requests, and assumptions about the surrounding page.
Save the rejection message and record the platform, account workflow, creative type, banner dimensions, and exact package version. If several people are involved, that small record prevents a designer from fixing one ZIP while a media buyer keeps testing another. Our HTML5 banner validation troubleshooting guide goes deeper on interpreting upload errors.

Why the final ZIP fails even when the source folder works
Assets are missing or referenced from the wrong location
A local project may contain an image, stylesheet, font, or script that never makes it into the upload archive. The HTML file still works when opened beside the original assets, so the omission is easy to miss. Paths can also point outside the package, refer to a development directory, or differ from the packaged filename only in capitalization.
For example, assets/Logo.png and assets/logo.png are not guaranteed to resolve to the same file in every serving environment. An absolute path such as /Users/designer/campaign/logo.png is not a portable reference to an asset inside an ad archive. Check paths in HTML, CSS, and JavaScript, not just image tags. A CSS background or dynamically loaded JSON file can fail with the same symptoms.
To isolate this class of failure, extract the upload ZIP into a new, empty directory. Serve that extracted directory from a simple local web server and load the entry HTML file from there. A local server gives more representative behavior for scripts and resource requests than opening an HTML file with a file:// address, although it still does not reproduce the ad platform. In developer tools, filter the Network panel for failed requests and inspect the Console for errors. If an essential asset is missing, fix the source or archive and build a new package rather than copying files into the test folder.
The archive’s entry point or folder structure is wrong
Some upload paths expect an HTML entry file in a particular location. A ZIP containing one outer campaign folder, with the actual HTML file buried inside it, may not match that expectation. Other systems may require you to identify the entry file during upload. Requirements differ, so follow the specific creative specification rather than treating any ZIP that opens on your computer as acceptable.
Inspect the archive itself, not only its filename. Confirm which HTML file is the entry point, that it references files actually in the archive, and that you did not accidentally include a source project, duplicate exports, or outdated assets alongside the final creative. Keep filenames straightforward and consistent so the file structure is easy to audit.
The package exceeds a file budget
Browsers generally do not refuse to display a banner simply because its images and scripts are heavy. Ad delivery systems can impose limits on the archive, on resources loaded initially, or on other parts of the creative. The applicable limits depend on the destination and delivery method, so do not carry a remembered number from one campaign into another.
Inspect the compressed ZIP and the files inside it. Large photographs, multiple font files, duplicate images, and unused script libraries are common sources of weight. Resize images for the dimensions they actually serve, compress them appropriately, remove unused assets and code, and then check the rebuilt package against the current specification. A smaller ZIP alone is not a complete test if the platform separately evaluates what loads when the ad starts. For a wider production checklist, see our guide to ad network creative specs.
Why click tracking can fail while the banner still looks fine
Rendering and click measurement are separate functions. A banner may show its animation and CTA perfectly while the platform cannot recognize an exit, cannot substitute its destination URL, or cannot record the click as intended.
A hardcoded link that opens during local preview is not proof that the platform will accept the click setup. Different upload paths can require different variable names, exit conventions, or configuration steps. Even within one organization, a directly uploaded creative and a creative trafficked through an ad server may need different handling.
Check the click implementation against the actual delivery path:
- Ask the media team which platform will receive the files and how the creative will be served.
- Read that path’s current requirements for click variables or exits. Do not copy syntax from another platform without checking it.
- Confirm that the intended click area is large enough and is not covered by an invisible element.
- Test the destination in the platform preview, including any parameters the campaign needs to retain.
- Verify the click after any last-minute edit to the exported package. A change to the markup or overlay can break behavior without changing the visual design.
A full-banner click area is often a sensible design choice, but the correct implementation depends on the destination’s rules. A button-only area is not automatically invalid, and making the whole creative clickable does not fix a missing or incorrectly configured platform exit. If you need a more focused debugging sequence, read our clickTag troubleshooting guide.
Why the served environment changes the result
External assets may not load
A locally previewed ad can appear complete because an internet-hosted font, image, or script happens to load on your computer. In the served environment, that request may be blocked, disallowed by the platform, unavailable, or made through an insecure URL on a secure page. An asset that requires authentication can fail for viewers even if it loads for the person building the ad.
In the final package, inventory every resource request. Distinguish packaged assets from remote ones. For each remote dependency, confirm it is permitted by the destination, available without your local credentials, and served over HTTPS where required. If an asset is essential to the message, avoid assuming that a developer’s successful preview proves it will be available when the ad runs.
Iframe restrictions can expose hidden assumptions
Ad platforms commonly display creative in an iframe or another controlled rendering context. Code that assumes it can read or change the parent page, navigate the top window, or use browser storage may behave differently there. A banner should not need access to the publisher page to display its message and CTA.
Test the creative in the platform’s served preview and inspect any console messages about blocked navigation, permissions, or cross-origin access. Where the destination provides a sandboxed preview, use it early, before the final delivery deadline. Our iframe sandboxing test guide covers this part of the investigation in more detail.
Timing and animation hide the first visible frame
A blank preview does not always mean the HTML failed to load. An element might start with opacity: 0 and never receive the class that reveals it. A script might run before its target exists, an animation library might be absent, or a background might appear only after an image request that never completes.
Inspect the DOM in the served preview if the platform allows it. Check whether text and images exist but are hidden, whether the first frame communicates anything before animation starts, and whether the final frame remains usable after motion ends. Test on a slower connection as well as a warm browser cache. If a failure occurs only on first load, initialization order and remote dependencies deserve particular attention.

How to troubleshoot the exact banner that failed
We use a simple sequence: identify the delivery path, reproduce from the final package, inspect runtime behavior, and validate in the destination. It keeps the team from making design changes when the real issue is a ZIP structure or click configuration.
Step 1: Freeze the package and capture the symptom
Keep a copy of the ZIP that was uploaded. Note whether the platform rejected it, accepted it but showed a blank frame, displayed it incorrectly, or failed to register the intended click. Record the precise error text when one appears. Do not troubleshoot an older source folder while assuming it matches the submitted file.
Step 2: Verify the destination requirements
Confirm the platform, creative type, dimensions, accepted asset types, package structure, click method, file budgets, and whether a static backup image is required. These are requirements of a particular delivery path, not universal properties of HTML5. If the media plan changes after production, recheck the spec before reusing the same archive.
Step 3: Reproduce the package in isolation
Extract the submitted ZIP into an empty directory and preview that directory through a local web server. Check the entry HTML file, filenames, capitalization, asset paths, and actual dimensions. If the extracted package fails, you have already narrowed the problem to the deliverable rather than the ad server.
Step 4: Inspect browser errors and requests
Open developer tools and look for missing assets, blocked requests, script exceptions, and layout changes caused by unloaded fonts. A request failure tells you what could not be retrieved. A JavaScript exception tells you where execution stopped. A blank frame without either may point to CSS visibility, timing, or an incorrect entry file. Use the evidence to guide the next edit.
Step 5: Check visual and click behavior separately
Watch the complete creative, including its opening and final frames, at the intended slot dimensions. Then test the clickable region and destination in the platform preview. A visual pass does not imply a click pass, and a working click does not prove every frame is readable. Check narrow and tall formats individually rather than assuming a passing rectangle represents the whole campaign.
Step 6: Rebuild and retest the final artifact
After fixing a path, compressing an asset, or changing click code, create a fresh delivery package. Extract that new package and repeat the checks. Finish with the destination platform’s validator or served preview. The version that passes must be the version the media team actually traffics.
Where multi-size production fits into the diagnosis
When a campaign includes a 300 × 250 rectangle, a 728 × 90 leaderboard, a 320 × 50 mobile leaderboard, and a 300 × 600 half page, there are two different questions: Does each creative meet its platform’s delivery requirements? and Does the design still work at each aspect ratio? Conflating them wastes time. A ZIP fix will not make cramped text readable in a mobile slot, while rearranging a CTA will not repair a broken asset path.
SizeIM addresses the production side by letting teams design a campaign in a responsive framework, select the required sizes, fine-tune the resulting layouts, and download the ad set. Its brand kits keep logos, colors, and fonts available across designs, while automated resizing reduces the need to rebuild each dimension manually. That gives designers more room to review difficult aspect ratios instead of spending the entire handoff period repeating the same layout work.
For example, imagine an agency extending an approved campaign from a rectangle into a mobile leaderboard and a tall placement. The team can use a shared design and brand assets to prepare the additional layouts, then inspect each downloaded deliverable against the receiving platform’s dimensions, file budget, and click requirements. The responsive workflow helps with consistency; the final-package and platform checks remain separate. For a closer look at expanding an approved design, see how to create a missing display ad size without starting another file.
Best practices that prevent repeat failures
- Get the media specification before design starts. Capture the receiving system and delivery method, not just a list of pixel dimensions. The click setup and archive rules may matter as much as the artwork.
- Keep a clean source-to-delivery boundary. A working project folder and an uploadable archive are different artifacts. Review the archive as if the project folder no longer exists.
- Keep essential content visible without fragile dependencies. If an optional font or animation does not load, the message should not disappear with it.
- Use a size matrix for QA. List each required dimension and mark its visual review, package check, click test, and platform preview separately. Do not mark the campaign complete after testing only the master size.
- Prepare a static backup when the destination requires one. Make it fit the intended slot and communicate the core message without relying on animation. Our fallback image guide explains the design considerations.
- Retest after every export-changing revision. New copy can wrap differently, a replacement image can increase file weight, and a revised overlay can alter the click area.
- Hand off one clearly identified final version. Include the destination, size, and version in the team’s handoff record so the person trafficking the ad knows which artifact passed QA.
Frequently asked questions
Why does my HTML5 banner work when I open the HTML file but fail after upload?
Opening the source file tests it in your working environment. The uploaded package may be missing assets, have a different folder structure, exceed a file budget, use the wrong click method, or run into restrictions in the platform preview. Extract and test the exact uploaded archive first, then follow the platform’s error or preview results.
Why is the banner blank in the ad platform but not in my browser?
Check for failed requests, blocked external assets, JavaScript errors, hidden first-frame elements, and an incorrect entry file. If the package renders when extracted but not in the platform preview, investigate iframe behavior and destination-specific restrictions next.
Can a banner pass upload validation and still be broken?
Yes. Validation and runtime testing answer different questions. An archive may meet packaging rules yet display a missing image, misplace text, or have an unusable click area when served. Review the actual platform preview after upload.
Is a working link in local preview enough to confirm click tracking?
No. A browser can open a hardcoded URL without proving that the destination system recognizes the required exit or attributes the click correctly. Use the receiving platform’s click specification and test the final destination in its preview.
Do I need a separate HTML5 package for every banner size?
Follow the receiving platform’s creative and upload requirements. From a design standpoint, a responsive campaign can share a core concept across dimensions, but every delivered size still needs visual and technical QA at its own width and height.
Will automated resizing solve platform rejection?
Automated resizing solves repeated layout production, not every cause of upload rejection. It can help keep a multi-size campaign visually consistent, while the team still checks package structure, file limits, clicks, and runtime behavior for the destination.
Conclusion
When an HTML5 banner works locally but fails in an ad platform, do not start by rebuilding the design. First determine whether the failure is an upload-rule issue, a missing or blocked resource, a runtime problem, or a click-tracking mismatch. Test the submitted archive in isolation, then test it again in the environment that will serve it.
For campaigns with many dimensions, SizeIM helps teams build a consistent ad set from one responsive design. Pair that production workflow with destination-specific QA, and each creative gets checked for both the layout people see and the delivery behavior the platform requires.