Impression Level Data
DT Exchange enables you to access detailed information for each impression through the impressions callback APIs. The information includes, for example, which demand source served the ad and its expected or exact revenue.
The following table describes Impression Level Data attributes.
advertiserDomain
A unique identifier for a set of campaigns for the same advertiser.
campaignId
A unique identifier that represents a Campaign.
creativeId
A unique identifier that represents the creative in the bid response. This can be useful when a particular creative causes user experience issues.
country
Identifier of the country of the ad impression (in ISO country code).
impressionId
A unique identifier for a specific impression.
demandSource
Identifies the demand source name of the buy-side/demand-side entity that purchased the impression:
When mediated networks win an impression, the mediated network's name appears.
When a DSP buying through the programmatic marketplace wins the impression, the DSP's name appears.
pricing
Object includes two properties about the impression's pricing, net payout value, and currency type.
Pricing.value
The impression's net payout value.
Pricing.currency
The impression's currency type.
video
Object includes two properties about the video: duration and skippable. The object is null for non-video impressions.
Video.skippable
An indication of whether the video is skippable or not. Possible values: true, false.
Video.duration
The duration of the video in seconds, for example, 15 seconds.
Receiving Per-Ad Impression Data
All unit controllers allow you to access the ImpressionData object through their callback APIs, using an Event Listener subclass with a suffix of WithImpressionData.
The example below showcases how you can access these data on a full screen placement integration
InneractiveAdViewUnitController
InneractiveFullscreenUnitController
Receiving Impression Data Globally
In addition to the per-ad callback, this listener also contains details about the relevant Placement ID (spot ID) and Unit ID.
How you register a global listener depends on the SDK version you are running:
SDK 8.5.1 and later: Register multiple listeners at the same time, for example, one for your app and one for your mediation platform. Each listener receives every global impression callback.
SDK 8.5.0 and earlier: Register only one listener. Each new listener replaces the previous one.
Create one or more listeners and register each with InneractiveAdManager.addImpressionDataListener(). The following example registers two listeners, for example, one for your app and one for your mediation platform:
To stop receiving global impression data on a listener, pass the same listener instance to InneractiveAdManager.removeImpressionDataListener():
Create a listener and register it with InneractiveAdManager.setImpressionDataListener():
To stop receiving global impression data, call InneractiveAdManager.clearImpressionDataListener():
Last updated

