TrackingRequest

data class TrackingRequest(val landingPageId: Int, val trackingSpotId: Int, val orderId: String? = null, val itemNumber: String? = null, val description: String? = null, val quantity: Int? = null, val price: Float? = null, val total: Float? = null, val timeout: UInt? = null)

Trigger a request for conversion tracking.

You can use tracking requests to track your app users conversions.

This structure uses as a parameter the AdService.trackingRequest method. You can pass all parameters through the constructor.

val request = TrackingRequest(
landingPageId = 1,
trackingSpotId = 1,
orderId = "orderId",
itemNumber = "itemNumber",
description = "description",
quantity = 1,
price = 19.99f,
total = 39.98f,
timeout = 10u
)

val result = adService.trackingRequest(request)

See also

Constructors

Link copied to clipboard
constructor(landingPageId: Int, trackingSpotId: Int, orderId: String? = null, itemNumber: String? = null, description: String? = null, quantity: Int? = null, price: Float? = null, total: Float? = null, timeout: UInt? = null)

Creates an TrackingRequest instance.

Properties

Link copied to clipboard
val description: String? = null

Item description.

Link copied to clipboard
val itemNumber: String? = null

ID of a purchased article(s).

Link copied to clipboard

Internal ad server backend ID for the posttracking landingpage.

Link copied to clipboard
val orderId: String? = null

Order ID, which is a purchase transaction ID.

Link copied to clipboard
val price: Float? = null

Item price.

Link copied to clipboard
val quantity: Int? = null

Item number/quantity.

Link copied to clipboard
val timeout: UInt? = null

Timeout in seconds for specific tracking request. Fail with AdError.TimedOut if no response is received from the server within the given time.

Link copied to clipboard
val total: Float? = null

Overall turnover of the basket.

Link copied to clipboard

Internal ad server backend ID for the trackingspot.