> For the complete documentation index, see [llms.txt](https://docs.toomuchmedia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_latest_adtools.md).

# nats\_display\_latest\_adtools

*Article Topics:* [*Customization*](/getting-started/common-topics/customization.md)*,* [*Templates*](/getting-started/common-topics/templates.md)*,* [*Smarty*](/getting-started/common-topics/smarty.md)

## Parameters

(*Required parameters in **bold**)*

{% hint style="warning" %}
**Please Note:** These parameters are overridden by parameters of the same name in the REQUEST array.&#x20;
{% endhint %}

| Parameter                                                                                                       | Description                                                      | Possible Values                      | Default Value                                    | Example                                |
| --------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ------------------------------------ | ------------------------------------------------ | -------------------------------------- |
| [tpl](/nats-admin/skins-and-templates/further-reading/template-function-parameters/tpl.md)                      | Template used to display output                                  | Any valid template                   | The template, function\_display\_latest\_adtools | tpl="my\_template"                     |
| program                                                                                                         | Get latest adtools for this program                              | Any valid program I.D. number        | The affiliate's default program I.D. number      | program="123"                          |
| latest\_adtool\_type                                                                                            | Get latest adtools of this type                                  | Any valid adtool I.D. number         | 1 Static Banners                                 | latest\_adtool\_type="8"               |
| latest\_adtool\_time\_range                                                                                     | Get adtools within this time range                               | -1 day, -1 week, -1 month, -3 months | -1 week                                          | latest\_adtool\_time\_range="-1 month" |
| latest\_adtool\_start                                                                                           | Skip this many adtools before displaying.                        | Any number                           | 0                                                | latest\_adtool\_start="5"              |
| latest\_adtool\_count                                                                                           | Display this many adtools                                        | Any number                           | 5                                                | latest\_adtool\_count="10"             |
| [assign\_prefix](/nats-admin/skins-and-templates/further-reading/template-function-parameters/assign_prefix.md) | Prefix output variables with this word. (Click link for details) | Any valid Smarty variable name       | *None.* (No prefix is used)                      | assign\_prefix="myvar"                 |

### Output

The latest adtools displayed using the function\_display\_latest\_adtools template. The list of latest adtools is assigned to the {$adtools} and {$adcount} Smarty variables, which you may prefix with the value of the assign\_prefix parameter.


---

# 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.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_display_latest_adtools.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.
