public interface ImpressionListener
An interface exposing a callback where impression data is exposed to publishers. Refer to our article on integrating impression-level revenue data (ILRD) for additional usage instructions.
public void /onImpression(String adUnitId, ImpressionData impressionData) /+5.7.0
Description: Called by the MoPub SDK once the ad becomes visible for the first time.
adUnitId: A String containing the ad unit ID of the current creative.
impressionData: Extended information about the ad, including revenue per impression. This value can be null if impression-level revenue data (ILRD) is not enabled for this MoPub account.
How can we make this article better for you?
Last updated March 30, 2021
TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.
© 2021 MoPub (a division of Twitter, Inc.)