Browse the help center

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.

How-to network manager advertiser Account → Templates

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 wantDoWhere
A branded sticky footer whose headline, CTA and colour change per bannerTemplate type General, Placement type Site, three properties: String (max length 40), String, StringAccount → Templates → Add
A format from the public library — catfish, interstitial, skin, push-down, video slider — without writing itAsk the AI assistant for it, or call the library API; it lands in the grid like any other templateAdd a ready-made format
The same template on a second networkExport 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 emptyAdd a second body under Target related templates and paste the “How to use” snippet into the firstthe saved template’s Target related templates card
One trafficker edits, the rest only pickShare with Can view; keep Can edit for the authorShare on the grid

Step by step

  1. 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.

    Templates list

  2. 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).

    Template editor

  3. 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.

  4. 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.

    Template property editor

  5. 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.

    Template files card with one uploaded file

  6. 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.

    Test template dialog

  7. 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.do lists the library with each template’s status on your network, POST /rest-api/template-catalog/install.do adds one, and GET /rest-api/template-catalog/xml.do returns 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?

SymptomCheckWhere
The template is not in the banner form’s Template pickerThe template is Inactive, or its Placement type does not match the placement the banner is forthe grid’s Status column and the Placement type field
No Templates tabYour role has no Templates permission — only the stock advertiser role has itask the network administrator (User roles)
Add / Import are greyed outThe role lacks the Templates create rightthe grid toolbar; the administrator
Files and properties cards are missingThe template has not been saved yet — they appear after the first Savethe editor footer
”This is a reserved macro name and cannot be used here”The property key is one the platform fills itselfthe Macros list under the body editor
”Key is required.” / “Title is required.”Both are mandatory on a propertythe Add template property dialog
A banner refuses a file: wrong content typeThe File property’s Allowed content typesthe property’s options
A banner refuses a text: Must be at most N charactersThe String property’s Max lengththe property’s options
Changed the body, banners still serve the old markupThe ad-serving cache has not reloaded yetwait for the next reload; nothing to re-save
Deactivated the template, banners still serveExpected — inactive templates keep serving existing bannersretire 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 inactivethe Status column, the owner
Deleting is refused with a list of IDs (409 over the API)Live banners or placements use the templatemove them to another template, or confirm / force=true to detach
Import overwrote an existing templateSame internal unique ID in the XMLuse 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 ignoredthe body and the How to use dialog
Library install does nothingYou need the Templates create permission and view on all templates; a template the network already has is never installed twicethe catalog’s status per template

Reference

Template form

FieldWhat it doesNotes
TitleTemplate name shown in lists and banner-form pickersRequired
ActiveOn/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 codeMarks the template as always-redirect
Template impressions recordSet when the template fires the impression tracking itselfPrevents double counting for self-tracking creatives
Template typeGeneral, Content Adapter, Placement Content Adapter, Video CompanionPlacement Content Adapter reveals min/max required native ads and the required-creatives grid
Placement typeWhich placement kind the template serves intoFilters where the template is offered in banner forms
BodyThe HTML/JS markupProperty keys, file keys and system macros (the Macros list button under the editor, reserved macros included) are substituted at serve time

Property types

TypeBanner-form controlType-specific options
FileFile uploadAllowed content types
StringText input (or textarea)Max length, URL, Multiline
IntegerNumber inputMin value, Max value, Step
BooleanCheckbox— (the dialog says “Boolean properties take no extra configuration.”)
SelectDropdownValues (one key=label per line), Add please select
Placement KeyPlacement key value—
HTML5 Zip CreativeZIP 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).

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>
ParameterMeaning
byLoader identity — must equal the ad tag key or the message is ignored. Required
keyPlacement key the request belongs to
bIdBanner that failed to render
idContainer element id — an alternative to key / bId; matched first
pbMarks the request as a passback; without excType it implies excType: "ALL"
excTypeALL excludes every banner already tried, CURRENT only the last one, omitted excludes nothing (plain rotation)
wiCounts an impression for the banner being passed back
templTarIdTarget ID of the body to render next — the value from the Target ID column
rptdMarks 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 toPermission
See the tab, list and open templatesTemplates view (own / shared / all)
Add, Import, Import as new, install from the libraryTemplates create (library install also needs view on all)
Edit, add properties and filesTemplates update (own / shared / all)
DeleteTemplates delete (own / shared / all); Is owner in the share dialog needs it too
Edit a banner’s template properties when the template is inactiveUpdate 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 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.