Installation
- Bundle
- CDN
log_ad_revenue
Firelog_ad_revenue with the per-impression value your ad network reports.
- Meta / Facebook
- TikTok
- AdMob
Ad network name. Accepted values:
"facebook", "tiktok", "admob".3-character ISO 4217 currency code, e.g.
"USD", "EUR", "AED". Defaults to "USD" if omitted.Revenue amount for this single ad impression. No commas or currency signs.
Type of ad served:
"banner", "interstitial", "rewarded", "native".Your ad unit ID from the ad network.
AdMob and Google revenue is reported to AppsFlyer under Google AdMob mediation. Facebook and TikTok revenue is reported with the platform name under custom mediation. Both appear correctly in AppsFlyer’s ad revenue reporting.
Best practices
Log at impression level, one call per ad shown, with the eCPM-derived per-impression value your ad network reports. Do not batch or sum impressions in your web layer, AppsFlyer’s LTV models expect individual impressions. Keepad_unit_id stable per placement so you can break revenue down by placement later.
Resources
NPM Package
despia-native