Features4 / 12

Offers

An offer is a task with a reward. Stacked gives it to the players who match, counts what they do toward it, and lets them claim the reward when it is done. You build offers in the dashboard. Your game shows them and grants the rewards.

Anatomy of an offer

PartWhat it decides
Surfacing conditionsWho gets the offer
Completion conditionsWhat the player has to do. With none, the offer can be claimed as soon as the player gets it
RewardsWhat the player gets
TimingWhen it runs, how long a player has, and whether it comes back
DisplayA name, description, image and labels for your game to draw it with

You build offers on the Offers page of the dashboard. A new offer starts switched off, so you can review it before players see it.

Lifecycle

When an offer surfaces for a player, that player gets their own copy of it, with its own progress and status. The docs call the copy an instance. Its id is the instanceId you claim with.

StatusMeaning
surfacedThe player has the offer, and has not been shown it yet
viewedThe player has been shown it
completedThe player did their part, and is waiting on others (see team offers)
claimableThe reward can be claimed
claimedThe reward was claimed
expiredTime ran out
declinedThe player, or your backend, turned it down

Four rules explain most of what you will see:

  • Progress counts from the moment an offer surfaces. What a player did before they had the offer does not count.
  • Events move progress. Fetches move status. An instance becomes claimable or expired the next time Stacked looks at the player: an offers fetch, a live ops call or a claim.
  • A claimable offer does not expire. An offer completed in time can be claimed later.
  • The rewards are fixed at surfacing. The amounts a player sees are the amounts they get, whatever changes on the offer afterwards.

When offers surface

Stacked looks for new offers for a player when your game fetches their offers, and when it loads their live ops events.

  • On Live, a player is checked for new offers at most once every 5 to 15 minutes. On Test, every fetch checks. Between checks a fetch still updates and returns the offers the player has.
  • An offer surfaces when it is switched on, inside its start and end dates, the player meets every surfacing condition, and the player does not already hold it.
  • There is no cap on how many offers a player holds. Use exclusive groups to show one of several.
  • priority only orders the list your game gets back. It never decides which offers surface.

Surfacing conditions

Surfacing conditions say who gets an offer. They read the player's snapshot. A player must meet all of them, and you can nest them in groups with AND, OR and NOT.

ConditionThe player...
levelhas a skill level in a range
currencyhas a balance in a range, or has deposited or withdrawn at least an amount
achievement, quest, membershiphas an achievement, a completed quest or a membership
dynamichas dynamic fields that pass comparisons
tagshas all, any or none of a list of tags
trustScorehas a trust score in a range
daysInGamehas signed in on a number of days
loginStreak, currentLoginStreakhas signed in a number of days in a row
lastSeenlast signed in a number of days ago: lapsed, or recently active
dateSignedUp, daysSinceSignUpsigned up in a date range, or a number of days ago
completedOffershas completed other offers: all of a list, or any
geois in an allowed country, or not in a restricted one
networkRestrictionis not on a VPN, proxy, Tor or relay
surfacingContexthas just reached a context your game called
entityLinkhas a number of linked entities of a kind
targetEntityTypeis an entity of a certain kind
linkedEntityOfferhas linked entities that hold an offer or meet conditions
stackedAccount, identifiershas linked a Stacked account, or connected certain sign-in methods
programmaticNever surfaces by itself. Such an offer is given to players by another offer or a referral
  • Country and network come from the game client. Stacked reads them from the address a player's client fetches offers from. A player whose offers are only ever fetched by your backend has no country, and fails geo and networkRestriction conditions.
  • Defaults for every offer. The Rules page holds country and network rules that apply to every offer without its own geo or networkRestriction condition. On Settings you can stop treating trusted players as VPN users, by trust score.
  • On-chain conditions exist too, for token balances and staked tokens.

Completion conditions

Completion conditions say what the player has to do. There are two kinds.

Trackers count events your game sends after the offer surfaced:

ConditionDone when the player has...Counts
spendCurrencyspent an amount of a currencyspendCurrency events
depositCurrencydeposited an amount of a currencydepositCurrency events
buyItembought a number of an itemgainItem events that carry a currency
completionContextreached a contextcallContext events
dynamicTrackerchanged dynamic fields enough to pass comparisonssetField, incField, maxField and minField events
linkedCompletionshad a number of linked players complete their offer, as in a referralOther players' completions
contractInteractionmade on-chain transactions that matchOn-chain events

Checks read the player as they are when Stacked looks:

ConditionDone when
level, currency, achievement, quest, membership, dynamic, trustScore, daysInGameThe same test as for surfacing passes now. "Reach level 10" is a level condition
loginStreakThe player has signed in a number of days in a row since the offer surfaced
loginThe player has been active since the offer surfaced
timeWindowStacked looks at the player inside a set window of time. This is what makes a daily reward claimable on its day only
social, twitterVerificationStacked has verified a post, or an action on X
  • A dynamicTracker can count a field at most once per interval (intervalHr): 24 counts it once per UTC day, however often it changes.
  • Keep trackers at the top level. A tracker inside an AND / OR / NOT group does not count.
  • One of each. An offer counts one spendCurrency, one depositCurrency, one buyItem and one completionContext condition. For more, use dynamicTracker, which can follow several fields.
  • Every condition can carry a template, the text to show for it, and a goToUrl, where the player can go to do it.

Repeat, expire and limit

SettingEffect
Start and end dateThe offer surfaces only between them. Instances a player already has stay
ExpiryHow long a player has, counted from surfacing. Without it, the offer stays until it is claimed
CooldownLets the offer come back. A new instance can surface once the last one is finished and the cooldown has passed since that one surfaced. Without a cooldown, a player gets an offer once, ever
Max receive countWith a cooldown: the most times a player gets the offer
Max claim countHow many times one instance can be claimed. Above 1, the player claims, keeps going and claims again, and the goal grows with each claim

Your backend can also step in: POST /v1/player/offer/status reopens an expired instance or closes one, and a decline endpoint turns an offer down for a player.

Groups and A/B tests

ToolWhat it does
Exclusive groupSurfaces one offer of the group at a time, picked at random among the ones the player can get
Campaign groupAn A/B test across offers: each player gets one offer of the group, split by the weights you set
Reward variantsAn A/B test on one offer: each player is assigned a variant, and the reward amounts are multiplied by its factors
Normal and milestone groupsSort offers for display. They do not change what surfaces

Compare variants on the Stats page: how many players each one surfaced for, and how many completed and claimed.

Team offers

An offer can involve more than one player, through entity links.

  • Shared goals. An offer can surface for every player linked to an entity, such as both owners of a pet. Each gets an instance, and none can claim until all have completed. Until then a finished player's instance is completed.
  • Referrals. A referrer's offer can count how many referred players completed theirs.

What your game gets

A fetch returns the player's offers, each with:

FieldHolds
instanceIdThe player's copy of the offer. Claim with this
offerIdThe offer it is a copy of
name, description, imageWhat to show
statusSee Lifecycle
rewardsWhat this player gets: kind, rewardId, amount, name, image
completionConditions, completionTrackersThe conditions, and the player's progress on the trackers
createdAt, expiresAt, claimedAtWhen it surfaced, when it expires, when it was claimed
labelsYour labels, plus ones Stacked adds: daily, weekly, team_offer, login_streak, event:daily

Surfacing conditions are never sent to a game. The client SDKs add helpers to each offer, such as getProgressPercent() and getCompletionConditions().