HitEvent

public struct HitEvent : Encodable, JSONEncodable, Hashable

HitEvents are sent to Topsort when the consumer has clicked or tapped on a product impression. Topsort charges the vendor and pays the marketplace for clicks on impressions in promoted placements on the e-commerce app.

  • The product that was clicked.

    Declaration

    Swift

    public var productId: String?
  • Required for promoted products. Must be the ID for the auction the product won.

    Declaration

    Swift

    public var auctionId: String?
  • id

    The marketplace’s unique ID for the click.

    Declaration

    Swift

    public var id: String?
  • When did the hit happen

    Declaration

    Swift

    public var occurredAt: Date
  • Undocumented

    Declaration

    Swift

    public var resolvedBidId: String?
  • Undocumented

    Declaration

    Swift

    public init(productId: String? = nil, auctionId: String? = nil, id: String? = nil, occurredAt: Date = Date(), resolvedBidId: String? = nil)
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws