postMetricsDataForFailedEvent

fun postMetricsDataForFailedEvent(partner: String?, event: Endpoints.Sdk.Event, auctionIdentifier: String?, chartboostMediationError: ChartboostMediationError, chartboostMediationErrorMessage: String?, placementType: String? = null, size: Size? = null, backgroundDuration: Long? = null, loadId: String? = null, eventResult: EventResult? = null, networkType: String? = null, lineItemId: String? = null, partnerPlacement: String? = null)

Prepare and post a default metrics payload for event failures to the server. Note: This is not the same as sending metrics data for a failed partner, but rather a failure preventing the event itself from completing (e.g. adapter not found, or no network connection).

Typically, these failures would be caused by client-side internal issues. The partner might even succeed if the event does complete.

In cases like this, the payload might not be conformant to pre-defined schemas, as long as it indicates there's an issue.

Parameters

partner

The partner for whom the event failed.

event

The ad lifecycle event that failed.

auctionIdentifier

The auction ID.

chartboostMediationError

The Helium error.

chartboostMediationErrorMessage

The Helium error message.

placementType

The placement type.

size

The ad size.

backgroundDuration

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

loadId

The load ID.

eventResult

The result of the ad lifecycle event.

networkType

The network type (i.e. "bidding" or "mediation").

lineItemId

The line item ID.

partnerPlacement

The partner placement.