Create and manage banner templates
Build a reusable creative template — HTML body with macro placeholders, typed properties the trafficker fills per banner, bundled files — then test, share, export/import or add one from the library, with the caveats and a fix-it checklist.
What it is and why
A template is a reusable creative shell: an HTML body with $$…$$ placeholders, a set of typed
properties the trafficker fills per banner, and optional bundled files. Once it exists,
anyone creating a Template banner picks it from a list and fills the properties — nobody pastes
markup twice. This page is about building and managing the templates themselves; using one in a
banner is in HTML code and Template banners.
Example. Northwind Media runs 14 sticky-footer creatives that differ only in headline, button
text and background colour. One Sticky footer template with three properties
($$HEADLINE$$, $$CTA$$, $$BG_COLOR$$) turns 14 copies of a 60-line HTML snippet into 14
banners with three short fields each — and a fix to the markup is made once and reaches all 14
banners at the next ad-cache reload.
Typical scenarios
| You want | Do | Where |
|---|---|---|
| A branded sticky footer whose headline, CTA and colour change per banner | Template type General, Placement type Site, three properties: String (max length 40), String, String | Account → Templates → Add |
| A format from the public library — catfish, interstitial, skin, push-down, video slider — without writing it | Ask the AI assistant for it, or call the library API; it lands in the grid like any other template | Add a ready-made format |
| The same template on a second network | Export the XML, then Import (updates in place) or Import as new (always a copy) | the grid toolbar |
| A native feed body that falls back to the next body when the feed is empty | Add a second body under Target related templates and paste the “How to use” snippet into the first | the saved template’s Target related templates card |
| One trafficker edits, the rest only pick | Share with Can view; keep Can edit for the author | Share on the grid |
Step by step
-
Open Account → Templates. The grid lists every template of the network when your role has view-all access, otherwise the ones you own or that are shared to you, with Search (by name), Template type, Placement type and Status filters.

-
Click Add and fill the Template information card: Title, Template type, Placement type and the Body. Property keys, file keys and system macros in the body are substituted at serve time; the Macros list button under the editor shows what the platform already fills (reserved macros included).

-
Click Save. The page reloads with the saved template and the sub-sections appear: Target related templates, Template files, Template properties (and Native template required creatives for the Placement Content Adapter type). A brand-new template shows only the main form until this first save.
-
Add properties — one per value that varies per banner. For each, set a Key (the token you reference in the body, e.g.
$$BUTTON_COLOR$$), a Title (the label banner creators see), a Type and whether it is Required. Type-specific options appear per type (see Reference). Drag rows to reorder — the order here is the field order in the banner form.
-
Upload files the body references (a script, a background image): give each a key — the default pattern is
$$FILE_1$$— pick the file and click Upload, then use the key in the body.
-
Click Template test in the footer of the saved template. The dialog builds a form from the template’s properties plus a placement type / ad-unit selector; Preview renders the markup with your test values substituted, in a new tab.

-
A new template starts Active. Only active templates appear in the banner form’s Template picker; switch it off and Save to retire it.
Add a ready-made format from the template library
Instead of building a rich-media template yourself, add one from the public template library — catfish and sticky bars, interstitials, skins, push-downs, video sliders and overlays, native and placement adapters. The library is available unless your network has switched it off.
- With the AI assistant: describe the format you want; the assistant says whether the account already has it and adds it only after you agree.
- Over the REST API:
GET /rest-api/template-catalog/list.dolists the library with each template’s status on your network,POST /rest-api/template-catalog/install.doadds one, andGET /rest-api/template-catalog/xml.doreturns its XML for Import without installing it. See Network and misc API.
Either way needs the Templates create permission and Templates view on all templates. A template the network already has is never installed twice. The installed template then appears in the grid like any other.
Caveats and exceptions
Who can do this. Of the stock roles only the advertiser has the Templates tab; a network manager or publisher gets it when the network grants it. With the tab you can create templates and view, edit, share and delete the ones you own or that are shared to you; a role with view-all access sees every template of the network. A Can view share renders the editor read-only: Save/Reset and the property/file toolbars are hidden. In the grid, Edit and Delete follow your role’s rights, not the share, so they can stay enabled; the server then refuses a change the share does not allow. Export still works on a view-only share.
Global templates come only from the admin console. Templates your network administrator created there are global: banner-form pickers list them with a “(global)” suffix, and they are not editable from the account area. The account form and the REST API never bind a global value, so one sent there is ignored and the template stays private to its shares.
Editing a template edits every banner on it. Changes to the body or properties reach every banner using the template once the ad-serving cache reloads, without the banners being re-saved. Each save bumps the template’s internal version.
Deactivating does not stop serving. An inactive template disappears from banner-form pickers, but banners already built on it keep serving — the ad cache loads templates regardless of the active flag. Editing the template properties of such a banner then requires the Update properties and status, based on inactive template permission.
Deleting a template that is in use detaches it. If a live banner is built on the template, or a
live placement uses it as its native adapter, Delete first shows a warning listing them (the
first ten, by ID) and asks you to confirm. A shared or public template can be in use by banners and
placements you cannot see: those are counted, not listed. Confirming deletes the template and
detaches it from every one of them: the banners lose their markup and the placements lose their
native rendering, so what those placements serve can change completely. Nothing is deactivated for
you. Move those banners and placements to another template first, then delete. Deleted banners and
placements are not counted. Over the REST API the same refusal is a 409 listing the ones you can
see under usages; repeat the call with force=true to delete anyway, and detachedBanners /
detachedPlacements in the answer say how many were detached.
Import matches the internal ID, not the title. Re-importing an XML you exported earlier silently overwrites that template — use Import as new when you want a copy.
Sharing. New templates are automatically shared to everyone in your default sharing list at
creation, like other shareable entities. Share is available only while the template is
active, and only the owner can change the shares (“Only owner can change template share
settings”). Is owner is offered only if you may delete the template yourself. A banner can be
put on a template only if you can see it: one you own or that is shared with you, a global one, or
any template when your role has view-all access. Over the REST API any other templateId is refused
as unknown. Removing a share does not detach banners already built on the template: they keep it, and
saving them keeps it too.
Properties. The type of a saved property cannot be changed (the select is locked while you
edit). Deleting a property cascades into every banner’s stored value for it. Renaming a property’s
key orphans the old token in the body — update the body in the same edit. A key cannot be a
reserved macro name: $$WIDTH$$ and $$HEIGHT$$, for instance, are refused with This is a
reserved macro name and cannot be used here — the platform already substitutes those. Pick a name
of your own ($$OVERLAY_OPACITY$$) and check the Macros list for what is taken.
Two things called “Template type”. The property dialog labels the property’s data type Template type, and the property grid uses the same words for its column — the same label the template’s own General / Content Adapter / Placement Content Adapter / Video Companion field carries. They are unrelated: in the dialog it means String, Integer, Boolean, Select, File and so on.
Values are validated against the property on every banner save. A file sent for a File property must be one of its Allowed content types, whether the property is required or not — a banner save with any other file is refused on that field, on create as on update. A String property’s Max length caps the value a banner may carry — a longer one is refused with Must be at most N characters. Leave Max length empty (or 0) for no limit.
Not working?
| Symptom | Check | Where |
|---|---|---|
| The template is not in the banner form’s Template picker | The template is Inactive, or its Placement type does not match the placement the banner is for | the grid’s Status column and the Placement type field |
| No Templates tab | Your role has no Templates permission — only the stock advertiser role has it | ask the network administrator (User roles) |
| Add / Import are greyed out | The role lacks the Templates create right | the grid toolbar; the administrator |
| Files and properties cards are missing | The template has not been saved yet — they appear after the first Save | the editor footer |
| ”This is a reserved macro name and cannot be used here” | The property key is one the platform fills itself | the Macros list under the body editor |
| ”Key is required.” / “Title is required.” | Both are mandatory on a property | the Add template property dialog |
| A banner refuses a file: wrong content type | The File property’s Allowed content types | the property’s options |
| A banner refuses a text: Must be at most N characters | The String property’s Max length | the property’s options |
| Changed the body, banners still serve the old markup | The ad-serving cache has not reloaded yet | wait for the next reload; nothing to re-save |
| Deactivated the template, banners still serve | Expected — inactive templates keep serving existing banners | retire the banners themselves, or delete the template (with the detach warning above) |
| “Only owner can change template share settings” | You are not the owner; sharing is also off while the template is inactive | the Status column, the owner |
Deleting is refused with a list of IDs (409 over the API) | Live banners or placements use the template | move them to another template, or confirm / force=true to detach |
| Import overwrote an existing template | Same internal unique ID in the XML | use Import as new |
| The next body never renders (Target related templates) | The snippet’s by must equal the ad tag key; a repeat request under 50 ms after the previous one is ignored | the body and the How to use dialog |
| Library install does nothing | You need the Templates create permission and view on all templates; a template the network already has is never installed twice | the catalog’s status per template |
Reference
Template form
| Field | What it does | Notes |
|---|---|---|
| Title | Template name shown in lists and banner-form pickers | Required |
| Active | On/off toggle, on for a new template (the grid column is Status) | Inactive templates are hidden from banner-form pickers |
| Always redirect with 302 response code | Marks the template as always-redirect | |
| Template impressions record | Set when the template fires the impression tracking itself | Prevents double counting for self-tracking creatives |
| Template type | General, Content Adapter, Placement Content Adapter, Video Companion | Placement Content Adapter reveals min/max required native ads and the required-creatives grid |
| Placement type | Which placement kind the template serves into | Filters where the template is offered in banner forms |
| Body | The HTML/JS markup | Property keys, file keys and system macros (the Macros list button under the editor, reserved macros included) are substituted at serve time |
Property types
| Type | Banner-form control | Type-specific options |
|---|---|---|
| File | File upload | Allowed content types |
| String | Text input (or textarea) | Max length, URL, Multiline |
| Integer | Number input | Min value, Max value, Step |
| Boolean | Checkbox | — (the dialog says “Boolean properties take no extra configuration.”) |
| Select | Dropdown | Values (one key=label per line), Add please select |
| Placement Key | Placement key value | — |
| HTML5 Zip Creative | ZIP upload (HTML5 creatives) | — |
The dialog lists the types in that order. Key and Title are both required.
Grid actions
The toolbar reads Add, Edit, Export, Share, then Import and Import as new, with Delete and refresh on the right. Edit, Export, Share and Delete need a selected row.
- Add, Import, Import as new — only with the create right.
- Edit — opens the editor (double-click works too); disabled when your role cannot update templates.
- Export — downloads the template as XML (content, properties, files metadata).
- Import — uploads a template XML; if a template with the same internal unique ID already exists, it is updated in place, otherwise a new one is created.
- Import as new — always creates a new template from the XML.
- Share — opens the sharing dialog (username + Is owner / Can edit / Can view).
- Delete — permanent; asks for a second confirmation while banners or placements still use the template (see Caveats).
Target related templates — asking for the next body
A template can hold several bodies, one per Target ID. A body that decides it cannot show the ad — an empty feed, no creative, a player the browser refuses — asks the ad tag for the next one instead of leaving a blank slot. It does that by posting a message up the frame chain; the Universal JS loader matches the placement and re-requests. How to use in the Target related templates toolbar shows the ready-to-copy snippet with the parameter reference.
The $$…$$ macros are substituted when the markup is generated, so paste them as-is:
<script>
(function () {
var msg = JSON.stringify({
by: "$$AJAX_INVOCATION_CODE_KEY$$",
key: "$$PLACEMENT_KEY$$",
bId: $$BANNER_ID$$,
pb: true,
wi: true,
excType: "ALL"
});
var cur = window, prev, guard = 0;
do {
cur.postMessage(msg, '*');
prev = cur;
cur = cur.parent;
} while (prev !== cur && guard++ < 10);
})()
</script>
| Parameter | Meaning |
|---|---|
by | Loader identity — must equal the ad tag key or the message is ignored. Required |
key | Placement key the request belongs to |
bId | Banner that failed to render |
id | Container element id — an alternative to key / bId; matched first |
pb | Marks the request as a passback; without excType it implies excType: "ALL" |
excType | ALL excludes every banner already tried, CURRENT only the last one, omitted excludes nothing (plain rotation) |
wi | Counts an impression for the banner being passed back |
templTarId | Target ID of the body to render next — the value from the Target ID column |
rptd | Marks the request as a repeat of a previous one |
A repeat request sent less than 50 ms after the previous one is ignored, so a body that fails instantly still cannot spin the loader.
Permissions
| You want to | Permission |
|---|---|
| See the tab, list and open templates | Templates view (own / shared / all) |
| Add, Import, Import as new, install from the library | Templates create (library install also needs view on all) |
| Edit, add properties and files | Templates update (own / shared / all) |
| Delete | Templates delete (own / shared / all); Is owner in the share dialog needs it too |
| Edit a banner’s template properties when the template is inactive | Update properties and status, based on inactive template |
Over the API
Tag Templates: template/list.do, template/edit.do
(GET and POST), template/export.do, template/import.do, template/import-as-new.do,
template/delete.do (with force), template/{templateId}/properties.do, and the
template-property/* and template-file/* list / edit / delete calls (template-property/order.do
sets the field order). The library lives under template-catalog/* in
Network and misc API.
Related
- HTML code and Template banners — using a template in a banner
- Serve an HTML5 creative from a ZIP bundle
- Banner types — decision guide
- Macros reference
- Shares and collaboration
- Bulk banner operations — mass-updating template properties
- Catfish, sticky, branding (skin) and interstitial formats — formats built on templates, and their sizing, click and “not showing” checklists