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
| Part | What it decides |
|---|---|
| Surfacing conditions | Who gets the offer |
| Completion conditions | What the player has to do. With none, the offer can be claimed as soon as the player gets it |
| Rewards | What the player gets |
| Timing | When it runs, how long a player has, and whether it comes back |
| Display | A 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.
| Status | Meaning |
|---|---|
surfaced | The player has the offer, and has not been shown it yet |
viewed | The player has been shown it |
completed | The player did their part, and is waiting on others (see team offers) |
claimable | The reward can be claimed |
claimed | The reward was claimed |
expired | Time ran out |
declined | The 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
claimableorexpiredthe 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.
priorityonly 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.
| Condition | The player... |
|---|---|
level | has a skill level in a range |
currency | has a balance in a range, or has deposited or withdrawn at least an amount |
achievement, quest, membership | has an achievement, a completed quest or a membership |
dynamic | has dynamic fields that pass comparisons |
tags | has all, any or none of a list of tags |
trustScore | has a trust score in a range |
daysInGame | has signed in on a number of days |
loginStreak, currentLoginStreak | has signed in a number of days in a row |
lastSeen | last signed in a number of days ago: lapsed, or recently active |
dateSignedUp, daysSinceSignUp | signed up in a date range, or a number of days ago |
completedOffers | has completed other offers: all of a list, or any |
geo | is in an allowed country, or not in a restricted one |
networkRestriction | is not on a VPN, proxy, Tor or relay |
surfacingContext | has just reached a context your game called |
entityLink | has a number of linked entities of a kind |
targetEntityType | is an entity of a certain kind |
linkedEntityOffer | has linked entities that hold an offer or meet conditions |
stackedAccount, identifiers | has linked a Stacked account, or connected certain sign-in methods |
programmatic | Never 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
geoandnetworkRestrictionconditions. - Defaults for every offer. The Rules page holds country and network rules that apply to every offer without its own
geoornetworkRestrictioncondition. 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:
| Condition | Done when the player has... | Counts |
|---|---|---|
spendCurrency | spent an amount of a currency | spendCurrency events |
depositCurrency | deposited an amount of a currency | depositCurrency events |
buyItem | bought a number of an item | gainItem events that carry a currency |
completionContext | reached a context | callContext events |
dynamicTracker | changed dynamic fields enough to pass comparisons | setField, incField, maxField and minField events |
linkedCompletions | had a number of linked players complete their offer, as in a referral | Other players' completions |
contractInteraction | made on-chain transactions that match | On-chain events |
Checks read the player as they are when Stacked looks:
| Condition | Done when |
|---|---|
level, currency, achievement, quest, membership, dynamic, trustScore, daysInGame | The same test as for surfacing passes now. "Reach level 10" is a level condition |
loginStreak | The player has signed in a number of days in a row since the offer surfaced |
login | The player has been active since the offer surfaced |
timeWindow | Stacked looks at the player inside a set window of time. This is what makes a daily reward claimable on its day only |
social, twitterVerification | Stacked has verified a post, or an action on X |
- A
dynamicTrackercan 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/NOTgroup does not count. - One of each. An offer counts one
spendCurrency, onedepositCurrency, onebuyItemand onecompletionContextcondition. For more, usedynamicTracker, which can follow several fields. - Every condition can carry a
template, the text to show for it, and agoToUrl, where the player can go to do it.
Repeat, expire and limit
| Setting | Effect |
|---|---|
| Start and end date | The offer surfaces only between them. Instances a player already has stay |
| Expiry | How long a player has, counted from surfacing. Without it, the offer stays until it is claimed |
| Cooldown | Lets 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 count | With a cooldown: the most times a player gets the offer |
| Max claim count | How 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
| Tool | What it does |
|---|---|
| Exclusive group | Surfaces one offer of the group at a time, picked at random among the ones the player can get |
| Campaign group | An A/B test across offers: each player gets one offer of the group, split by the weights you set |
| Reward variants | An A/B test on one offer: each player is assigned a variant, and the reward amounts are multiplied by its factors |
| Normal and milestone groups | Sort 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:
| Field | Holds |
|---|---|
instanceId | The player's copy of the offer. Claim with this |
offerId | The offer it is a copy of |
name, description, image | What to show |
status | See Lifecycle |
rewards | What this player gets: kind, rewardId, amount, name, image |
completionConditions, completionTrackers | The conditions, and the player's progress on the trackers |
createdAt, expiresAt, claimedAt | When it surfaced, when it expires, when it was claimed |
labels | Your 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().