AdjustAdRevenueEvent

data class AdjustAdRevenueEvent(val name: String, val source: String, val revenue: Double, val currency: String, val adImpressionsCount: Int? = null, val adRevenueNetwork: String? = null, val adRevenueUnit: String? = null, val adRevenuePlacement: String? = null, val parameters: Map<String, AnalyticsValue> = emptyMap()) : Event(source)

Ad revenue reported by a mediation SDK, as Adjust's dedicated ad-revenue API takes it rather than as a tokened event.

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

For revenue on a purchase, see AdjustRevenueEvent, which stays a tokened event.

Constructors

Link copied to clipboard
constructor(name: String, source: String, revenue: Double, currency: String, adImpressionsCount: Int? = null, adRevenueNetwork: String? = null, adRevenueUnit: String? = null, adRevenuePlacement: String? = null, parameters: Map<String, AnalyticsValue> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

ISO 4217 code, as Adjust expects it.

Link copied to clipboard
open override val name: String

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

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

Sent as callback parameters, as on every other Adjust event. Usually the app event's own.

Link copied to clipboard
Link copied to clipboard

Adjust's name for the mediation SDK: applovin_max_sdk, admob_sdk, and so on.

Functions

Link copied to clipboard

Builds the Adjust payload for ad revenue, with AdjustAdRevenueEvent.parameters as callback parameters. Public because a custom AdjustEventTracker almost always needs it.

Link copied to clipboard
fun Event.toAdjustEvent(eventToken: String): AdjustEvent

Builds the Adjust payload for an event under eventToken, carrying the event's parameters as callback parameters. Public because a custom AdjustEventTracker almost always needs it.