Table of Contents

Method LogAdRevenue

Namespace
Titipi.MocaLib2

LogAdRevenue(AdImpressionData, string, Dictionary<string, string>)

Logs an ad_impression event to Firebase Analytics.

Do not call this when AdMob is your ad network. Once an AdMob app is linked to Firebase/Analytics, the Firebase SDK logs ad_impression automatically for every impression; calling this on top of that double-counts every impression and inflates ad revenue in Analytics. Use it only for mediation SDKs that expose impression-level revenue but have no such automatic integration — AppLovin MAX, ironSource, and similar.

Attribution SDKs are unaffected: AppsFlyerModule.LogAdRevenue / AdjustModule.LogAdRevenue still need to be wired for AdMob, since nothing forwards revenue to them automatically.

https://firebase.google.com/docs/analytics/measure-ad-revenue#unity
public static void LogAdRevenue(AdImpressionData data, string adPlatform = "", Dictionary<string, string> customParams = null)

Parameters

data AdImpressionData
adPlatform string
customParams Dictionary<string, string>