Skip to main content

node-tracker.buildadclick

Home > @snowplow/node-tracker > buildAdClick

buildAdClick() function

Build a Ad Click Event Used to track an advertisement click

Signature:
declare function buildAdClick(event: AdClickEvent): PayloadBuilder;

Parameters

ParameterTypeDescription
eventAdClickEventContains the properties for the Ad Click event
Returns:

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.