Advar Templates
Adhese has introduced a new template format called Advar. Advar templates are pre-defined creatives to create sophisticated ads consisting of Javascript, CSS, custom JSON objects etc. The results of Advar templates are pre-made ads, such as a text ad including a small image.
Advar templates can have multiple components (images, videos, texts and URLs) that form the final creative. The user provides these elements (or parameters) when they create a new Advar ad. The user responsible for adding a new creative to a campaign does not require coding knowledge in HTML, CSS or JavaScript. The template predefines the code and presents it as a form to the user. See Add an Advar creative.
An Advar template always consists of two files:
- The creative's actual content contains parameters that refer to the properties of an uploaded creative and its files. Besides any custom parameter defined by the creator of the Advar template, the creative content can also contain several fixed parameters.
- A descriptive file generates the form that the user will see and use when uploading an Advar creative. The file contains a JSON object that defines the different elements available in the template. It will determine how to render the form to the user.
As with templates, an Advar template can also contain a request element as a parameter. An Advar template can use all request properties as content. For example, the creative can display the visitor's name if the call to the ad server contains this parameter (and if the value of the name is available, of course).
The Advar templates screen lists the name of the Advar template in the Format column.
Create a new Advar template
To create a new Advar template:
-
Go to the Administration screen. Click Admin in the left navigation menu.
-
Click Create an Advar template. The Create a new Advar template screen opens:
-
Enter a name in the Name field. Choose a clear and logical name, such as pp-textad.txt.
-
Insert the code in the File contents field. This code represents the actual content of the creative and includes parameters that refer to the properties of the uploaded creative and its files. Refer to the Appendix Parameters for templates and Advar templates for an overview of the available parameters. Here is an example of some pieces of code:
<style> div {background-image:url(<ADHESE_SWF_SRC_3RD>)} </style> <div> <h1><advar_title></h1> <p> <advar_text> <img src='<ADHESE_SWF_SRC_2ND>' width='<ADHESE_WIDTH>' height='<ADHESE_HEIGHT>'/> </p> <p> <advar_source> </p> </div>
Add inline style attributes to an element to specify the design of the ad.
-
The Example for creating new ads from this template field contains the descriptive file and makes it possible to create input fields when using an Advar template file to upload an ad. These input fields become visible when you select an Advar template as a creative. The descriptive file contains a JSON object that defines the different elements available in the template. It will determine how to render the form to the user. It can contain three types of fields:
- singleLineText,
- multilineText, and
- select (i.e. a list of options).
Below is an example of the corresponding description file for the above Advar template, followed by a screenshot of the Advar form in the Adhese interface:
{ "files": [{ "default": "", "doc": "This will be used as logo", "label": "A first image", "key": "2nd" },{ "default": "", "doc": "This will be used as background", "label": "A second image", "key": "3rd" }], "advar": "advar_example.txt", "fields": [{ "default": "", "doc": "Select the source of your article", "label": "Article source", "type": "select", "key": "<advar_source>", "options": [{ "value": "afp", "label": "AFP" },{ "value": "belga", "label": "Belga" },{ "value": "reuters", "label": "Reuters" }] },{ "default": "", "doc": "Fill in the title of your article", "label": "Title", "type": "singleLineText", "key": "<advar_title>" },{ "default": "", "doc": "Fill in the text of your article", "label": "Text", "type": "multilineText", "key": "<advar_text>" } ]}
-
Click the Save button.
Edit an Advar template
To edit an Advar template:
No Comments