PlaytimeCampaign

@objcMembers
public final class PlaytimeCampaign : NSObject, Sendable

The model that represents a campaign and/or installed application.

  • App name.

    Declaration

    Swift

    public let appName: String
  • Short description of the app.

    Declaration

    Swift

    public let appDescription: String
  • Unique identifier for the app.

    Declaration

    Swift

    public let appID: String
  • ID in the format com.example.myapp.

    Declaration

    Swift

    public let appBundleID: String?
  • Application’s store ID number that is part of the App Store link.

    Declaration

    Swift

    public let appStoreID: String?
  • App installation timestamp (ISO 8601).

    Declaration

    Swift

    public let installedAt: String?
  • App uninstallation timestamp (ISO 8601).

    Declaration

    Swift

    public let uninstalledAt: String?
  • Time (in days) after which rewards expire after installation.

    Declaration

    Swift

    public let rewardingExpiresAfter: Int?
  • Expiration timestamp (ISO 8601) denoting how long players can get rewards after installing the app.

    Declaration

    Swift

    public let rewardingExpiresAt: String?
  • Timestamp (ISO 8601) denoting the maximum amount of time after fetching the campaign that it can be installed.

    Declaration

    Swift

    public let campaignExpiresAt: String?
  • Event and rewards configuration.

    Declaration

    Swift

    public let eventConfig: PlaytimeEventConfig?
  • App category.

    Declaration

    Swift

    public let appCategory: String?
  • Campaign type.

    Declaration

    Swift

    public let campaignType: String?
  • Ordered position for specific featured campaigns.

    Declaration

    Swift

    public let featuredPosition: Int?
  • eCPM of the campaign.

    Declaration

    Swift

    public let score: Float?
  • Campaign media assets (portrait & landscape).

    Declaration

    Swift

    public let image: PlaytimeMedia?
  • Campaign video media assets.

    Declaration

    Swift

    public let video: PlaytimeMedia?
  • URL to the campaign icon image.

    Declaration

    Swift

    public let iconImage: String?
  • Active promotion details, if any.

    Declaration

    Swift

    public let promotion: PlaytimePromotion?
  • Flag indicating whether all rewards have been collected.

    Declaration

    Swift

    public let isCompleted: Bool
  • Campaign UUID.

    Declaration

    Swift

    public let campaignUUID: String?
  • Configuration for Playtime Cashback.

    Declaration

    Swift

    public let cashbackConfig: PlaytimeCashbackConfig?