ad_impression
RecommendedAd Impression event. This event signifies when a user sees an ad impression.
- Platforms
- web, app
- When it fires
- You send it when the action happens.
Parameters (7)
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| currency | string | Yes* | Currency of the items associated with the event, in 3-letter ISO 4217 format. * If you set value then currency is required for revenue metrics to be computed accurately. | USD |
| value | number | Yes* | The monetary value of the event. * value is typically required for meaningful reporting. If you mark the event as a conversion then it's recommended you set value. * currency is required if you set value. | 7.77 |
| ad_platform | string | No | Ad Platform | MoPub |
| ad_format | string | No | Ad Format | Banner |
| ad_source | string | No | Ad Source | AdColony |
| ad_unit_name | string | No | Ad Unit Name | Banner_03 |
| ad_event_id | - | - | Serves as a unique identifier for ad events. It is reused in the cross-network attribution request and should be logged/retained for debugging purposes | - |
Example
gtag.js
gtag('event', 'ad_impression', {
currency: 'USD',
value: 7.77,
ad_platform: 'MoPub',
ad_format: 'Banner',
ad_source: 'AdColony',
ad_unit_name: 'Banner_03',
});GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'ad_impression',
currency: 'USD',
value: 7.77,
ad_platform: 'MoPub',
ad_format: 'Banner',
ad_source: 'AdColony',
ad_unit_name: 'Banner_03',
});