AppsFlyerAdRevenueEvent

data class AppsFlyerAdRevenueEvent(val name: String, val monetizationNetwork: String, val mediationNetwork: MediationNetwork, val revenue: Double, val currency: String, val parameters: Map<String, AnalyticsValue> = emptyMap()) : Event(source)

Ad revenue reported by a mediation SDK, as AppsFlyer's ad-revenue API takes it rather than as an in-app event. The fields are AFAdRevenueData's.

A final class, so an app event can't be one. The app's AppsFlyer factory builds one from its own event and sends it through AdRevenueEventTracker.

For revenue from a purchase or a subscription, see AppsFlyerPurchaseEvent and AppsFlyerSubscribeEvent.

Constructors

Link copied to clipboard
constructor(name: String, monetizationNetwork: String, mediationNetwork: MediationNetwork, revenue: Double, currency: String, parameters: Map<String, AnalyticsValue> = emptyMap())

Properties

Link copied to clipboard

ISO 4217 code — AppsFlyer's currencyIso4217Code.

Link copied to clipboard
val mediationNetwork: MediationNetwork
Link copied to clipboard

The network that served the ad — AppsFlyer's monetizationNetwork.

Link copied to clipboard
open override val name: String

Usually the app event's own. It isn't sent: AppsFlyer's ad-revenue API has no event name.

Link copied to clipboard
open override val parameters: Map<String, AnalyticsValue>

Sent as the additional parameters of the ad-revenue call. Usually the app event's own.

Link copied to clipboard

Functions

Link copied to clipboard

Builds the AppsFlyer payload for ad revenue. Public because a custom AppsFlyerEventTracker almost always needs it.