PlaytimeCampaign

data class PlaytimeCampaign

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

Types

Link copied to clipboard
data class EventConfig(val sequentialActions: List<PlaytimeCampaign.PlaytimeRewardAction>, val bonusActions: List<PlaytimeCampaign.PlaytimeRewardAction>, val timeBasedActions: List<PlaytimeCampaign.PlaytimeRewardAction>, val totalCoinsCollected: Int?, val totalCoinsPossible: Int?, val cashbackReward: PlaytimeCampaign.PlaytimeCashbackConfig?, val multipliersActions: List<PlaytimeCampaign.PlaytimeRewardActionMultiplier>)

Configuration for multi-event rewards.

Link copied to clipboard
data class PlaytimeCashbackConfig(val exchangeRate: Float?, val cashbackDescription: String?, val maxLimitPerCampaignUSD: Float?, val maxLimitPerCampaignCoins: Float?, val completedRewards: PlaytimeCampaign.PlaytimeCashbackReward?, val pendingRewards: PlaytimeCampaign.PlaytimeCashbackReward?)

Configuration for the Playtime Cashback feature.

Link copied to clipboard

Cashback reward info.

Link copied to clipboard
data class PlaytimeCashbackRewardEvent(val coins: Int?, val processAt: String?, val receivedAt: String?)

Cashback event.

Link copied to clipboard
data class PlaytimeMedia(val portrait: String?, val landscape: String?)

A class representing a media item.

Link copied to clipboard
data class PlaytimePromotion(val name: String?, val promotionDescription: String?, val boostFactor: Float?, val startTime: String?, val endTime: String?, val targetingType: String?)

Promotion representation.

Link copied to clipboard
data class PlaytimeRewardAction(val name: String?, val taskDescription: String?, val level: Int?, val taskType: String, val playDuration: Int?, val amount: Int, val rewardedAt: String?, val rewardsCount: Int?, val completedRewards: Int?, val timedCoinsDuration: Int?, val timedCoins: Int?, val originalCoins: Int?, val isTimed: Boolean?, val isRewardedForPromotion: Boolean?, val boosterExpiresAt: String?)

Rewarded action representation.

Link copied to clipboard
data class PlaytimeRewardActionMultiplier(val eventName: String?, val eventDescription: String?, val multiplierFactorPercentage: Int?, val multiplierLevels: Int?, val status: String?, val usedLevels: Int?)

Configuration for a multiplier

Properties

Link copied to clipboard

App category.

Link copied to clipboard

Short description of the app.

Link copied to clipboard

Unique identifier for the app.

Link copied to clipboard

App name.

Link copied to clipboard

Timestamp (ISO 8601) denoting the maximum amount of time after fetching the campaign that it can be installed.

Link copied to clipboard

Campaign type.

Link copied to clipboard

Campaign UUID.

Link copied to clipboard

Event and rewards configuration.

Link copied to clipboard

Ordered position for specific featured campaigns.

Link copied to clipboard

URL to the campaign icon image.

Link copied to clipboard

Campaign media assets (portrait & landscape).

Link copied to clipboard

App installation timestamp (ISO 8601).

Link copied to clipboard

Flag indicating whether all rewards have been collected.

Link copied to clipboard

Active promotion details, if any.

Link copied to clipboard

Time (in days) after which rewards expire after installation.

Link copied to clipboard

Expiration timestamp (ISO 8601) denoting how long players can get rewards after installing the app.

Link copied to clipboard
val score: Float?

eCPM of the campaign.

Link copied to clipboard

App uninstallation timestamp (ISO 8601).

Link copied to clipboard

Campaign video media assets.