> For the complete documentation index, see [llms.txt](https://docs.admoai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.admoai.com/getting-started/quickstart/template.md).

# Template

### Creating a template

#### 1. Basic Details

#### 2. Template Fields

Create the elements that make up your ad design. Chose from different data types such as **text**, **image**, **url**, **integer**, **float**, **textarea** and **color**.&#x20;

<figure><img src="/files/HaXgCPS3uCoUYVgsNquN" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Each data type has their own validation criteria. For example: limiting the character length of a headline text.
{% endhint %}

{% tabs %}
{% tab title="Text / Textarea" %}

* Max Length
* Regex
  {% endtab %}

{% tab title="Image" %}

* Aspect ratio
  {% endtab %}

{% tab title="Integer / Float" %}

* Minimum value
* Maximum value
  {% endtab %}
  {% endtabs %}

#### 3. Template Styles (optional)

The same collection of elements can make up different end-designs. For example, a headline, subtitle and image, can make up many different layouts/orientations.

The different styles that template can form, can be configured here. Eg: `image_left` or `image_right`.

After selecting a template the ad creation flow, you will have the option to select what styles this ad supports. Any styles configured at this point will be selectable, ads can support more than one style.

![](/files/p1Ep5Rhk1wRhttSIiD8N) ![](/files/6Ga0rWx4JC1RDT6kWL70)

{% hint style="success" %}
Every template will have a default style of `default`&#x20;
{% endhint %}

#### 4. Template Events (optional)

Define the events you want to track. Tracking can be as granular as needed such as button clicks, opening modals etc. The response from the Decision Engine will contain the tracking events defined here.&#x20;

<figure><img src="/files/I7WQJLmLho7iNa5xPCI2" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
By default, an impression tracking event will always be returned in the Decision Engine's response
{% endhint %}

#### 5. Connect to placement (optional)

You may not want to allow all templates to be shown in all placements, so it is necessary to connect compatitble placements and templates before creating ads.

When creating an ad, a placement and template must be selected. The template options will be the templates that you have previously connected to the selected placement.

{% hint style="success" %}
This can also be done at a later stage.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.admoai.com/getting-started/quickstart/template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
