User Tools

Site Tools


This is an old revision of the document!

Creating and managing banners for the easyHTML template


The easyHTML template is a Markup tamplate, which is ment to make managing HTML banners easier. This template also utilizes <iframe> to show the banner in, but managing this is a lot quicker. This holds benefits for both the management of the creative, and developing it.

Creating the banner


The easyHTML template is such a tool int the Adverticum AdServer, that helps converting and managing the HTML/HTML5 banners. When developing such a banner, we should prepair, that the banner will be placed in an iframe, and it has to be able to utilize the recieved GET variables.

To help in this, we provide a javascript, that should be included in the <head>, which does parse the mentioned variables, and registers the necessary functions. This tool is called goa-helper.js, and on the usage, please refer to the guide after the restrictions.


1. By using the above mentioned tool, there are protected names, which can be changed except for goa.

  • goa
  • closeFunction
  • openFunction
  • hideFunction

In case the banner recieves measure points, the name of those will be also protected, along the scheme beneath, This should be checked with the campaign manager!

  • [name]_fire

For example if it's called bubble:

  • bubble_fire

2. The banner cannot use a folder system! Each file has to be in the same directory as the main .html.

<img src="images/myImage.png" />

So the above wil have to be changed to this:

<img src="myImage.png" />

3. All files have to have unique names, related to the banner, because they will be copied in teh same folder as the other banners running in the same campaign.

4. All file size has to be under 300KB!

Including goa-helper.js

To include goa-helper.js, just paste the following code in the <head> of teh banner. All the functions and references to goa has to be after this script.

<script src="//"></script>

Checking open start request

Certain display modules (MultiExpand, Billboard, Sidekick, Slider) can be set to start in open state. This is handled by the Goa3 script. It is signaled to the banners, and can be checked like so:

if (goa.openNow === 'true') {

In this if statement comes the code that should be called if the banner opens. For example resizing the content, or playing ceratin animations, that should be done if opened.

Handling clicks in case of one URL

To handle basic clickthrough, we need to read goa.clickTAG, and apply it in the prefered manner. This also has aliases:

  • goa.clickTAG
  • goa.clickTag
  • goa.cthref

Adminunkon beállítható, hogy a landing page hol nyíljon meg pl. _self vagy _blank, amit a goa.clickTARGET változóban adunk át. Alternatív nevei:

Tha target window to load the CT URL can be set on our admin site, eg.: _self or _blank, which can be read from goa.clickTARGET. Available with aliases:

  • goa.clickTARGET
  • goa.clickTarget

HTML example

<a id="clickTAG" href="" onclick="(function(){var cT=document.getElementById('clickTAG');cT.href=goa.clickTAG;;})();">CT</a>

JS example

<div id="clickTAG"></div>
    document.getElementById('clickTAG').onclick = function () {, goa.clickTARGET);

Handling clicks in case of multiple URLs

Handling multiple CT URLs shoud not be done through goa.clickTAG. We have the option to set custom variables, thorugh adding extra parameters when uploding to our servers.

We have to attach a JSON object, for the campaign manager to include while uploading the banner. In this we have to use the awaited names of the links as keys, and the URL itself as the value. Attaching it as a separate file with teh extension of .txt is recommended. For example:

:!: It is essential that the JSON does not contain broken lines, just a single one. To minify it, tehre are several free online tools available, for example:

:!: Further neccesity is that the both the keys and values are written in double quotes. To check the validity of the object, we can use the following site:

{"clickTAG0": "//", "clickTAG0": "//"}

While displayment, the link will be available by getting the properties form the goa object we define in this JSON.

HTML Example

Managing the first URL:

<a id="clickTAG0" href="" onclick="(function(){var cT=document.getElementById('clickTAG0');cT.href=goa.clickTAG0;;})();">CT</a>

JS example

Managing the second URL:

<div id="clickTAG1"></div>
    document.getElementById('clickTAG1').onclick = function () {, goa.clickTARGET);

Handling the functions

The goa-helper.js registers several functions under the window namespace. these are usualy open and close functions, and in case of Slider display, hideing function is registered. the name of these functions are set in the GET variables. These can be modified by overwriting them in the extra parameters JSON.

{"closeFUNCTION": "myCloseName", "openFUNCTION": "myOpenName", "hideFUNCTION": "myHideName"}

On the topic of available functions of display modules:


Default value is closeFunction, and can be retrieved from:

  • goa.closeFUNCTION
  • goa.closeFunction

HTML example

By using the default value:

<div onclick="closeFunction();">OPEN</div>

JS examaple

By using the default value:

<div id="closeButton"></div>
    document.getElementById('closeButton').onclick = closeFunction;

Or using the dynamic method:

<div id="closeButton"></div>
    document.getElementById('closeButton').onclick = window[goa.closeFunction];


The default value is: openFunction, and can be retrieved from:

  • goa.openFUNCTION
  • goa.openFunction

HTML example

By using the default value:

<div onclick="openFunction();">OPEN</div>

JS example

By using the default value:

<div id="openButton"></div>
    document.getElementById('openButton').onclick = openFunction;

Or with the dynamic method:

<div id="openButton"></div>
    document.getElementById('openButton').onclick = window[goa.openFunction];


This is only needed in case of developing for the Slider display's secondary, sidekick banner, which can hide itself. Using the closeing function would remove the main creative which could lead to errors.

The default value is hideFunction, and can be retrieved from:

  • goa.hideFUNCTION
  • goa.hideFunction

HTML example

By using the default value:

<div onclick="hideFunction();">HIDE</div>

JS example

By using the default value:

<div id="hideButton"></div>
    document.getElementById('hideButton').onclick = hideFunction;

By using the dynamic method:

<div id="hideButton"></div>
    document.getElementById('hideButton').onclick = window[goa.hideFunction];

Using the measures provided

If the creative has measures available, the name of the measure is passed buy the template. These names are used to register functions by the goa-helper for the banner to use. So if the banner recieves a measure called bubbles, then the generated function name will be bubble_fire.

HTML example

<div onclick="bubbles_fire();">HIDE</div>

JS example

<div id="hideButton"></div>
    document.getElementById('hideButton').onclick = bubbles_fire;

Uplodaing the banner


  1. To upload the banner create a Markup banner.
  2. Name the banner.
  3. Set banner dimensions. :!: It is crucial to set the right banner size, as will be used to display it in!
  4. Choose the Templates tab.
  5. Choose easyHTML Banner from the template drop down menu.
  6. Set Banner file by choosing the .html from the drop down. If not uploaded yet, use the + signed button to add files.

Adding extra parameters to the banner

There is the option to add extra parameters, like multiple CT URLs for the banner. These are needed to be pasted in the Extra parameters text box, in the manner below. This object has to come with the banner, provided by the developer.

{"clickTAG0": "//", "clickTAG0": "//"}

This will be recieved by the tamplate and passed to the banner. If there is a need for extra parameters, please consult the developer to use the proper variable names.

In the example the two parameters are clickTAG0 and clickTAG1. These provide multiple CT URLs fot the banner.

  1. Click Source tab.
  2. Click Add new URL button under the list of URLs.
  3. Create URLs according to the recieved extra parameters. :!: Attention! All URLs are measured as CT.
  4. Take a note of the URL's ID or name.
  5. Click the Template tab, and insert intoExtra parameters box the recieved object modified this way:

{"clickTAG0": "[url.e:100000]", "clickTAG1": "[url.e:200000]"}

:!: It very important to use double quotes, and url.e expression. Also the inserted object has to be a single line, with no line breaks.

When done in reality, the numbers will be the URL IDs.

You could leave a comment if you were logged in.
creatives/ehtml-en.1443441920.txt.gz · Last modified: 2015/09/28 14:05 by avarga