Impression Listener (ILRD)
Listen to placements' impressions events (Impression-Level Revenue Data)
Impression Listener
ImpressionListener enables publishers to listen to impression events for all ad formats. Impression listener provides - amongst others - impression-level revenue data (ILRD) as an instance of AATKitImpression object, in case the mediation type is supported (see details below).
Pass Impression Listener to Placement
Use the following code to set the impression listener for a specific placement:
If the ad network provides impression-level revenue data, AATKit will use this information during the AATKitImpression instantiation and pass it to ImpressionListener via the didCountImpression
callback. Otherwise, AATKit will detect and collect the impression-level information internally and provide it to the impression delegate via the same didCountImpression
callback.
Ad Network
Use the getAdNetworkName()
method to get the string representation of the AdNetwork enum.
Price Information
Use the getPriceInfo
method to get the object representing detailed impression price information (if available), like price, currency and precision type
The price value passed in the impression object is CPM price
Complete Code Example
The below example can be applied to all types of placements.
Last updated