Variables

In templates, there are multiple fields, which require to enter some contents. For example, in the “Keywords” tab it’s possible to define exact, phrase or broad keywords. In order to do that, it’s either possible to enter static text, table column, template variables or global variables. The huge advantage of variables is that they will ensure that the generated contents are highly specific. For example, a keyword about “red adidas shoes” will come together with a text ad like “Buy red adidas shoes”. This is not possible with static text.

In order to use the contents from tables in templates, they are accessible as colorful tokens. Column headers are used as the names. For example, the name column of the brand table can be used by selecting [name@brand]. This has the consequence that the template will use all the brands in the name column of the brand table.
While global variables can only contain static content, they can be used in all existing templates of a Campaign Suite account.

Step 1: Open the “Global Variables” page

In the settings dropdown menu in the upper right corner of the Campaign Suite, select the item “Global variables”. This will open the global variables page.
Open the global variables page

Step 2: Create a new variable

On this page create variables for the use across several different templates. This is helpful for language settings in URLs, for locations, and for the domain name. Click on “Add global variabel”, input a variable name and its corresponding static text. Save the variable by clicking on the check to the right of the highlighted field. Changing a global variable is as easy as setting it up. Just click on the pen icon and type a new value into the corresponding field. In order to delete a variable, press the trash icon next to it.
Create a new global variable

Hint: “DOMAIN” is the most important global variable. For each user who completed the setup wizard it contains the domain of the store. However, “www” should not be contained in the “DOMAIN” variable, because this will lead to a duplicate “www” in ad destination URLs.

Step 1: Create a new variable

On a template page, click on “Variables” to open the variable editor window. Note that the window looks different if no template variable has been added before. The options to choose from are either to “Add a new variable” or “Import from other template” (see hint below). If at least one variable exists already the window looks as below.
Create a new template variable

Step 2: Define its value

Click on “Add new variable”, “Import from other template” or edit an existing variable here. Define the value of the variable in the relevant field. Template variables accept dynamic content such as functions and other types of variables, with the possibility of using fallbacks. To learn more about how the text counter will handle template variables click here.
Define the values of the template variable

Hint: Template variables can be copied between templates. In order to import a variable from another template, click on “Import from other template”. This opens a yellow box offering to select the template and the variable, which shall be imported. Click “Import” to find the desired variable in the list.
Copy an existing template variable to the current template