postMetricsData

fun postMetricsData(data: Set<Metrics>, loadId: String? = null, backgroundDurationMs: Long? = null, eventResult: EventResult? = null)

Post metrics data payload to the server on an ad lifecycle event basis.

Parameters

data

The metrics data payload for a specific ad lifecycle event.

loadId

The load ID for the ad lifecycle event.

backgroundDurationMs

The amount of time, in milliseconds, that a load was being performed while the app was in the background.

eventResult

The result of the ad lifecycle event.