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