MetaPurchaseEvent

data class MetaPurchaseEvent(val name: String, val amount: Double, val currency: String, val parameters: Map<String, AnalyticsValue> = emptyMap()) : Event(source)

A purchase as Meta's standard fb_mobile_purchase, which Meta counts as revenue for ads.

The app's Meta factory builds one from its own event and sends it through PurchaseEventTracker.

Constructors

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

Properties

Link copied to clipboard

The amount paid.

Link copied to clipboard

An ISO 4217 code, such as EUR.

Link copied to clipboard
open override val name: String

Usually the app event's own. It isn't sent: Meta receives fb_mobile_purchase.

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

Sent with the purchase. Usually the app event's own.