TagSpy

ad_impression

Recommended

Ad 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.
Official docs

Parameters (7)

ParameterTypeRequiredDescriptionExample
currencystringYes*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
valuenumberYes*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_platformstringNoAd PlatformMoPub
ad_formatstringNoAd FormatBanner
ad_sourcestringNoAd SourceAdColony
ad_unit_namestringNoAd Unit NameBanner_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',
});

Also see