Impression Delegate (ILRD)
Listen to placements' impressions events (Impression-Level Revenue Data)
Last updated
Listen to placements' impressions events (Impression-Level Revenue Data)
Last updated
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 object, in case the mediation type is supported (see details below).
To set the impression delegate for a specific placement, use the following code:
AATKit uses impression-level revenue data provided by Google to report impressions. To ensure this functionality works correctly for Google ads, please enable the impression-level ad revenue feature in your account's UI:
Use the func getAdNetworkName() -> String
method to get the string representation of the enum.
Use the getPriceInfo
method to get the (if available), like price, currency and precision type
The accuracy of price information and used currency varies between ad networks and mediation types. Please see the following table for more information.
AmazonHB
Any
Exact
USD
AppNexus
Any
Exact
USD
Criteo
Auction
Exact
USD
Waterfall, MAYO
Exact
EUR
GraviteRTB
Any
Exact
USD
Google: AdMob, AdManager(DFP)
Any
Depends on ad response from the network
USD
Equativ (SmartAdServer)
Auction
Exact
USD
MAYO
Floor price
EUR
Waterfall
no price information
no price information
YOC
Auction
Exact
USD
Waterfall, MAYO
Exact
Depends on ad response from the network
All other networks
Waterfall
no price information
no price information
MAYO
Floor price
EUR