# nats\_display\_latest\_adtools

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

## 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](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-function-parameters/tpl)                      | 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](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-function-parameters/assign_prefix) | 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.
