Collecting MoPub Impression-Level Data as a Firebase Event
Today MoPub doesn’t offer an API providing impression-level events. The information is only allowed as a post-back to the app.
One of the easiest ways to track MoPub impression-level data is by enabling Firebase to collect ad impressions as events. This article outlines the recommended methods for doing so.
Summary:
Enable ILRD
Integrate listeners to collect the post-back
Send the information as a Firebase Event.
1. Enabling Impression-level Revenue Data (ILRD):
First, data will only be sent to SDK versions v5.7.0 or higher.
Below is MoPub’s documentation on the latest versions:
Contact your MoPub account representative to enable ILRD. If you’re not assigned an account manager you can send an email to [email protected] to request this feature.
2. Integrate listeners to collect post-back
The ILRD event is sent as a JSON blob, to collect the JSON delivered with the ad impression you’ll need to add listeners to capture, parse and relay the information to Firebase:
3. Relay the information as an event to Firebase
Note, we recommend you send all information provided with the impression:
iOS – Sending MoPub ILRD to Firebase
Android – Sending MoPub ILRD to Firebase
Unity – Sending MoPub ILRD to Firebase
Last updated