node-tracker.adimpressionevent
Home > @snowplow/node-tracker > AdImpressionEvent
AdImpressionEvent interface
An Ad Impression Event Used to track an advertisement impression
Signature:interface AdImpressionEvent
Remarks
If you provide the cost field, you must also provide one of 'cpa', 'cpc', and 'cpm' for the costModel field.
Properties
| 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 |