api-docs/docs/node-tracker/markdown/node-tracker.buildadclick.md
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@snowplow/node-tracker](./node-tracker.md) > [buildAdClick](./node-tracker.buildadclick.md)
## buildAdClick() function
Build a Ad Click Event Used to track an advertisement click
<b>Signature:</b>
```typescript
declare function buildAdClick(event: AdClickEvent): PayloadBuilder;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| event | AdClickEvent | Contains the properties for the Ad Click 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.