Invite friends with a referral code and track the referrals you have made.
A publisher defines referral programs in the Web Console, each with a qualifying action and a reward for the referrer and optionally for the referee. Every player has a referral code, which is their public UID. An invited player redeems it by supplying it as referral_code in the session optionals when starting their first session; returning players are ignored. The referral is then claimed until the qualifying action happens, at which point it becomes qualified and the rewards are granted. A program may cap how many referrals a single player is rewarded for.
See the LootLocker documentation.
◆ FLootLockerReferralInviteResponseDelegate
◆ FLootLockerReferralListResponseDelegate
◆ ELootLockerReferralQualifier
The action that turns a claimed referral into a payout.
| Enumerator |
|---|
| session_started | |
| entitlement_owned | |
| game_asserted | |
| publisher_currency_earned | |
◆ ELootLockerReferralStatus
The state of a referral relation.
| Enumerator |
|---|
| claimed | |
| qualified | |
| Void | |
◆ GetReferralInvite()
Get the calling player's referral code and their rewarded-referral count against each active program's cap.
Use this to render an invite-a-friend screen: share the code, and have the invited player supply it as the referral_code session optional when starting their first session.
- Parameters
-
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ ListMyReferrals()
List the calling player's own referrals, newest first, including ones still pending their qualifying action.
Session-scoped: the player and game come from the session token.
- Parameters
-
| Page | Optional: 1-based page of referrals (server default when 0) |
| PerPage | Optional: Number of referrals per page, 1-200 (server default when 0) |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound