Skip to main content

node-tracker.buildadconversion

Home > @snowplow/node-tracker > buildAdConversion

buildAdConversion() function

Build a Ad Conversion Event Used to track an advertisement click

Signature:
declare function buildAdConversion(event: AdConversionEvent): PayloadBuilder;

Parameters

ParameterTypeDescription
eventAdConversionEventContains the properties for the Ad Conversion 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.