Browse the help center

Serve an HTML5 creative from a ZIP bundle

Serve a self-contained HTML5 creative by uploading its ZIP into the HTML5 Zip Creative property of a Template banner — the template step, the upload step, the click and sizing rules, the archive limits, a pre-upload checklist and a fix-it table for a blank, cropped or unclickable creative.

How-to network manager Account → Advertisers → campaign → banner (Template)

What it is and why

An HTML5 creative is a ZIP — an index.html plus its images, CSS, JS and assets — and in Epom there is no “HTML5 zip” banner type to pick. The ZIP is a template property: the creative is served through a Template banner whose template exposes an HTML5 Zip Creative field. Epom unpacks the ZIP on upload and hosts every file; the template body points a frame at the hosted bundle. The network manager builds that template once, then every trafficker uploads a ZIP per banner.

Example. The agency exports Spring_300x250.zip from Google Web Designer — 1 page, 14 assets, 1.8 MB. The trafficker adds a Template banner on a Site placement, picks the network’s HTML5 Container template, drops the ZIP into its HTML5 Creative Zip package field, fills the Landing Page property, sets the Ad unit to 300×250 and saves. The template’s body renders <iframe src="$$HTML5$$index.html" width="300" height="250">, and the click goes through Epom because the template hands $$CLICK_REDIRECT_URL$$ to the creative.

Typical scenarios

You haveDoNotes
A finished HTML5 export (GWD, Animate) for a 300×250 slotTemplate banner → HTML5 template → drop the ZIP, Ad unit 300×250the bundle must stay under 1000 files / 20 MB per file / 50 MB unpacked
The same ZIP in 8 banners for 8 publishersUpload it once to the Media Library, pick it in each bannerpick the Ad unit first — the picker filters ZIPs by size
An agency that hosts the ZIP and only sends a linkFile source → From link (or html5ZipUrl over the API), at most 10 MBdownloaded once on save, stored like an upload
A full-width mobile creative with a fixed 100 px heightTemplate frame width="100%", Fit container on the tag; the creative built with % sizesa fixed 300×250 export cannot be made responsive by sizing
A creative that shows live prices from your APICall it from the creative; the API must answer CORS for the bundle’s origin and over HTTPSthe request comes from the visitor’s IP, not Epom’s

Step by step

Prepare the HTML5 template

(Network-manager step — skip if a suitable HTML5 template already exists. Templates are authored in Create and manage banner templates.)

  1. Go to Account → Templates → Add and save a template for the placement type you serve HTML5 into (Template banners work on Site, Non-standard, Mobile site and Application placements).

  2. In Template properties, add a property of type HTML5 Zip Creative. Give it a Key — the token you reference in the body — and a Title (the label advertisers see).

    Template properties with an HTML5 Zip Creative property

  3. In the template Body, reference the property key to point at the served bundle. At serve time the key resolves to the URL of the unpacked bundle’s folder, with a trailing slash — so you append the entry file yourself:

    <iframe src="$$HTML5$$index.html" width="$$WIDTH$$" height="$$HEIGHT$$"
            frameborder="0" scrolling="no"></iframe>

    (Here HTML5 is the property’s Key.) You can also reference specific assets inside the bundle the same way — $$HTML5$$assets/banner.png.

  4. Activate the template and Save. Only active templates appear in the banner form’s Template picker.

Upload the ZIP into a banner

(Trafficker step — a role that can create Template banners.)

  1. In the campaign, Add new banner → pick the placement type, then set Banner type to Template.

  2. Choose the HTML5 template in the Template combo. The list is filtered to templates enabled for this placement type.

  3. Pick the Ad unit size where the placement type shows one — this is what $$WIDTH$$ / $$HEIGHT$$ resolve to in the template body. Match it to your creative’s design size, and pick it before the ZIP if you will use the Media Library (the picker lists only ZIPs saved at that size).

  4. In Template properties, drop your .zip into the HTML5 Zip Creative field. The file must end in .zip (any case) and unpack within the archive limits. The field’s File source switch offers two other ways in: From link — an http:// or https:// address of a public host, at most 10 MB, downloaded once on save and stored exactly like an upload — and Media library, which picks a ZIP from the Media Library (needs the Media Library permission and the network’s file storage).

  5. Fill any other template properties (text, colors, click URL — whatever the template defines).

    New Template banner with an HTML5 template, a ZIP picked in the HTML5 Creative Zip package field, the Landing Page and the Ad unit

  6. Save, then use Preview to render the creative. After saving, the property row shows the uploaded file name with a download link, a delete button, and a View contents toggle that lists the files inside the bundle — use it to confirm the ZIP extracted with the structure you expect.

    View contents open on the saved ZIP property

    Banner preview of the HTML5 creative in the 300×250 slot of the Article page mockup

Caveats and exceptions

Who can do this. The stock Advertiser role cannot create Template banners — send the ZIP to your network manager, or ask them to switch Template banners on for your role; with that permission you upload the ZIP into the template property yourself. Network managers prepare the template, then traffic banners against it like anyone else. On a Can view share the ZIP field and the other property inputs are disabled; existing files stay downloadable and the View contents tree still opens.

Saving with the ZIP field left empty keeps the previously uploaded bundle — an empty file input does not clear it. To replace the creative, pick a new ZIP; to remove it, use the field’s delete button. This is the standard file-property behavior (see HTML code and Template banners).

The ZIP field is a template property, not a banner field. If the template has no HTML5 Zip Creative property, there is nowhere to upload the bundle. Ask whoever manages the template to add one (or use a template that already has one) rather than hunting for a zip upload elsewhere on the banner form. HTML5 Zip Creative properties are not supported on the placement-side native adapter templates — they only work as banner creative properties, on regular (General / Content Adapter) templates.

The key resolves to the folder URL with a trailing slash. Write $$KEY$$index.html, not $$KEY$$/index.html — the leading slash would point above the bundle folder. A property key cannot be a reserved macro name — $$WIDTH$$ and $$HEIGHT$$ are refused when you define the template, because the platform already substitutes them.

A ZIP from macOS Finder carries __MACOSX/. It is dropped on upload and never stored, but its files still count towards the 1000-file limit, which is checked on the archive as sent.

Editing the template later affects every banner built on it once the ad cache reloads, without re-saving each banner. Change the entry file name in the body and existing banners must have their ZIPs match, or they break. A daily cleanup job removes uploaded ZIPs that no banner property references any more.

The upload needs file storage enabled for the network. Where it is not, the save fails with an error against the ZIP field — a network setup problem, not your bundle; contact Epom support or your account manager.

How the click reaches an HTML5 creative

A Template banner has no Url field — the landing page is a template property, and the click is counted only when it passes through Epom’s click redirect ($$CLICK_REDIRECT_URL$$, see the macros reference). Because the ZIP’s files are not processed, the template must pass that URL into the frame, and the creative’s own click handler must open it. If the creative opens a hard-coded landing page, visitors get there but Epom records no clicks. Every template property is also available URL-encoded as $$KEY$$ESC$$ and JavaScript-escaped as $$KEY$$ESC_JS$$ (with $$KEY$$ the property’s key) — use the URL-encoded form when a value goes into a URL parameter.

Make an HTML5 banner responsive (fit the width of the slot)

The frame is as big as the template makes it: the example above uses the banner’s $$WIDTH$$ × $$HEIGHT$$, which is the ad unit you picked. To fill a slot whose width changes (full width on mobile, a fixed height of 100 px, say), two things are needed:

  1. The template sizes the frame to the slot — width="100%" with a fixed height instead of $$WIDTH$$ — and, on Mobile Site and Non-standard placements, the tag’s Fit container option makes the ad take the size of the element you put the tag in.
  2. The creative itself is built to stretch (CSS sizes in % or viewport units). A creative exported at a fixed 300×250 stays 300×250 inside a wider frame — it is cropped or letter-boxed, and only rebuilding it responsive fixes that. Creatives with very different proportions (a 492×328 design into a 728×90 slot) cannot be adapted by sizing at all.

Can an HTML5 creative call an external API (live prices, weather, a data feed)?

Yes — Epom does not restrict it. The ad server adds no Content-Security-Policy to ad markup and keeps no list of allowed hosts, and every Ad wrapper keeps scripts and same-origin requests allowed (the sandboxed variants included). What decides whether the call works is where the creative’s code runs:

  • In the visitor’s browser. The request to your API leaves from each visitor’s device, from their IP address — not from an Epom server. An API that only answers whitelisted IPs therefore refuses it. Put a small proxy or cache of your own in front of such a feed (it calls the API from your whitelisted server and serves the result publicly), and point the creative at that.
  • Under the bundle’s origin. The index.html of a ZIP loads from Epom’s file storage or CDN host inside the template’s iframe, so a fetch/XHR is a cross-origin request: the API must answer with CORS headers that allow that origin (or *). An API without CORS fails in the browser console with a CORS error, not in Epom. A creative that is not framed — HTML code placed with Without Wrapper — runs under the publisher’s page origin instead, and the publisher’s own Content-Security-Policy, if their page sets one, applies to it.
  • Over HTTPS. On an https page an http API is blocked as mixed content.

Keep secrets out of the bundle: every file is publicly downloadable, so an API key in the ZIP is readable by anyone. Use a key meant for browser use, or keep the key in your proxy. And plan for the API being slow or down — show a static fallback rather than an empty frame.

HTML5 ZIP requirements — checklist before you upload

Epom unpacks the ZIP and serves each file from storage as a static file. That makes these the rules:

  • index.html at the top of the bundle. The template points at $$KEY$$index.html, the top of the bundle. Two common packaging slips are repaired on upload. A ZIP of the creative’s folder (Spring_300x250/index.html, or a chain of single folders) is unpacked from inside that folder; every path moves together, so the creative’s relative links keep working. And an entry page called index.html in another case (Index.html) is renamed to index.html, while one called index.htm, or the only page at the top level under another name (Spring_300x250.html from Google Web Designer or Adobe Animate), is copied to index.html and also kept under its own name. System clutter — __MACOSX/, ._* files, .DS_Store, Thumbs.db — is never stored.
  • One clear entry page. The upload is refused, with the reason on the ZIP field, when the bundle has no page at its top level, several pages none of which is index.html (the message names them — rename the one the ad opens), or several folders that each hold their own index.html (one creative per ZIP). The stock HTML5 Container template opens the page its Index Page field names instead, so with that field filled the bundle is not refused for its page names. Open View contents on the banner to see the bundle as stored; one uploaded before release 153 is stored as it was sent.
  • Relative paths for every asset (img/bg.jpg, not /img/bg.jpg, not C:\… or http://localhost/…). A path starting with / points above the bundle. The bundle is served from its own hosted folder, so an absolute path or a hard-coded localhost URL from your authoring tool will 404 in production.
  • External libraries load from their own host. A creative that loads a framework (an animation runtime, a font) from a CDN works only while that host answers and is not blocked where the visitor is. Epom neither copies nor checks it. Bundling the library into the ZIP removes that dependency.
  • Macros inside the ZIP are not expanded. $$CLICK_REDIRECT_URL$$, $$RANDOM$$ and other macros work in the template body, not in files from the ZIP — those are served untouched. Anything the creative needs per impression (the click URL above all) has to be handed to it by the template, for example as a parameter on the index.html URL that the creative reads.
  • Archive limits: at most 1000 files, 20 MB per file, 50 MB unpacked in all, and the ZIP itself no larger than 50 MB (see Archive limits).
  • Name ends in .zip — upper or lower case.

Not working?

What you seeUsual causeFix — where
Blank frame or 404 inside the frameA bundle uploaded before release 153 with index.html in a folder, or a page with another nameUpload the ZIP again — it is laid out on upload now; check View contents on the banner
Page shows but images/animation missingAbsolute or local paths, or an external library that did not loadMake paths relative; bundle the library — the browser console names the failing URL
Cropped or not filling the slotThe creative has a fixed size; the frame is the ad-unit sizeMake an HTML5 banner responsive
Clicks open the page but reports show 0 clicksThe click does not go through $$CLICK_REDIRECT_URL$$How the click reaches an HTML5 creative — the template body and the creative’s click handler
”Should be a .zip file” on saveWrong file typethe file name — .zip or .ZIP
”The archive is larger than 50 MB.”, “…holds more than 1000 files.”, “…unpacks to more than…”An archive limit — __MACOSX/ files count towards 1000the bundle; re-export without clutter, compress assets
”The archive contains a file outside its own folder: …”An absolute path, .., a backslash or a drive letter inside the ZIPre-zip from inside the creative’s folder
”The ZIP has no index.html at its top level” / “several HTML pages” / “several folders with their own index.html”No clear entry pagerename the page the ad opens to index.html, one creative per ZIP; or fill the template’s Index Page field
The ZIP field is nowhere on the bannerThe template has no HTML5 Zip Creative property, or it is a native adapter templatethe template’s properties — Prepare the HTML5 template
Save fails against the ZIP field with no bundle faultFile storage is not enabled for the networkEpom support or your account manager
The old creative still shows after saving a new ZIPThe field was left empty — an empty input keeps the previous bundlepick the new ZIP explicitly
Live data in the creative never loadsThe API refuses the visitor’s IP, has no CORS for the bundle’s origin, or is http on an https pagethe browser console; external API

Reference

Archive limits

The bundle is unpacked on the server, so what it unpacks to is what is limited: the ZIP is not held to the network’s image file-size cap (200 KB by default). Sizes are counted on the unpacked files, and the save is refused, with the reason on the ZIP field, when the archive:

  • is itself larger than the 50 MB it may unpack to (“The archive is larger than 50 MB.”);
  • holds more than 1000 files (“The archive holds more than 1000 files.”);
  • has a single file that unpacks to more than 20 MB, or unpacks to more than 50 MB in all;
  • contains a path that would land outside the bundle’s own folder — an absolute path, a .. segment, a backslash or a drive letter (“The archive contains a file outside its own folder: …”).

The three numbers are server-side settings; ask Epom support or your account manager to change them for your network. A refused archive stores nothing.

Options and fields

FieldWhat it doesNotes
Banner typeSet to TemplateHTML5 has no dedicated type; it rides on Template
TemplateThe HTML5 template to useFiltered by placement type; active templates only
HTML5 Zip Creative propertyUploads and hosts the bundleMust be a .zip; extracted server-side
Other template propertiesPer-template text/number/select/file fieldsDefined by the template
Ad unit / Width / HeightCreative sizeFeeds $$WIDTH$$ / $$HEIGHT$$; shown on Site/Mobile placements

For the full template-authoring reference (property types, files, sharing), see Create and manage banner templates.

Over the API

POST /rest-api/banner/create.do (and …/{bannerId}/update.do) takes the ZIP in one of three ways, with bannerType=TEMPLATE and templateId:

  • as a multipart upload under the property’s key;
  • for clients that cannot send files, as html5ZipUrl, the URL of the hosted archive. The server downloads it once (public http/https hosts only, at most 10 MB) and stores it exactly like an upload, so the archive limits apply to it too;
  • as a Media Library ZIP, by reference: mediaAssetId when the template has one HTML5 ZIP property, mediaAsset.<property key> per property when it has several.

A template with several HTML5 ZIP properties takes html5ZipUrl[<property key>] per property; a plain file property of the same template (an image, a video) takes fileUrl / fileUrl[<property key>] the same way. See Entities CRUD → creating each creative type without a file upload.

Related pages

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.