api-docs/docs/node-tracker/markdown/node-tracker.buildadimpression.md
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@snowplow/node-tracker](./node-tracker.md) > [buildAdImpression](./node-tracker.buildadimpression.md)
## buildAdImpression() function
Build a Ad Impression Event Used to track an advertisement impression
<b>Signature:</b>
```typescript
declare function buildAdImpression(event: AdImpressionEvent): PayloadBuilder;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| event | AdImpressionEvent | Contains the properties for the Ad Impression event |
<b>Returns:</b>
PayloadBuilder
PayloadBuilder to be sent to
## Remarks
If you provide the cost field, you must also provide one of 'cpa', 'cpc', and 'cpm' for the costModel field.