Home > @snowplow/node-tracker > AdImpressionEvent
An Ad Impression Event Used to track an advertisement impression
If you provide the cost field, you must also provide one of 'cpa', 'cpc', and 'cpm' for the costModel field.
Signature:
interface AdImpressionEvent | Property | Type | Description |
|---|---|---|
| advertiserId? | string | (Optional) Identifier for the advertiser which the campaign belongs to |
| bannerId? | string | (Optional) Identifier for the ad banner being displayed |
| campaignId? | string | (Optional) Identifier for the advertiser which the campaign belongs to |
| cost? | number | (Optional) Advertisement cost |
| costModel? | "cpa" | "cpc" | "cpm" | (Optional) The cost model for the campaign |
| impressionId? | string | (Optional) Identifier for the particular impression instance |
| targetUrl? | string | (Optional) The destination URL of the advertisement |
| zoneId? | string | (Optional) Identifier for the zone where the ad banner is located |