Show full-screen image modals over gameplay, configured by ZBD without an app store release.
Creatives are full-screen image modals your game can show over gameplay. ZBD sets up the creative and hosts the artwork; your game shows it with one line of code. Changing artwork, copy, or behavior later is a ZBD-side change — no SDK update and no app store release.Typical uses:
An onboarding carousel explaining how rewards work
That’s the whole integration. The SDK fetches your app’s creatives during Init() and preloads their images, so the modal appears instantly.To react to what the player did:
ZBDController.Instance.ShowCreative("cr_onboarding_tour", result =>{ if (!result.shown) { Debug.Log($"Nothing shown: {result.error}"); return; } if (result.dismissReason == "cta") Debug.Log("Player tapped through to rewards"); else Debug.Log($"Closed on page {result.lastPage + 1} of {result.pageCount}");});
Setting up a creative
Creatives can’t be configured self-serve yet. To set one up, reach out to your Customer Success Manager — they’ll configure it with you and host your artwork.
Tell your Customer Success Manager the following, and send them your images:
What to provide
Notes
Creative key
The ID your game will pass to ShowCreative(). Choose it carefully — it can’t be changed later, because analytics reference it.
Number of pages
One page = a simple modal. Several = a swipeable carousel with page dots.
Locale
Only if you need it. Leave it out for a creative that should show to everyone (see Localization).
Transition
How the modal appears: popup, fade, or slide. Defaults to fade.
Tap opens rewards
Whether tapping the last page opens the ZBD rewards interface. Off = the creative is purely informational.
Two further properties are set on the ZBD side and worth knowing about:
Property
What it does
Backdrop dismisses
Whether tapping the dimmed area outside the image closes the modal. The close button always works regardless.
Active
Inactive creatives are not served to the SDK at all. This is how a creative is retired — preferred over deleting, so historical analytics keep resolving.
Pages and navigation
Each page needs at least one image — portrait, landscape, or both. The SDK picks whichever matches the device’s current orientation, and swaps automatically when the player rotates. If you supply only one, it’s used in both orientations.
Portrait art is not required. If your game is landscape-only, send landscape art alone — there’s no need to supply portrait images that would never be shown. The same applies in reverse for portrait-only games.
On a multi-page creative the player can:
Tap the image to advance to the next page
Swipe left or right to move between pages
Use the next arrow (hidden on the last page)
See their position via page dots
On the final page, tapping either opens the rewards interface or does nothing, depending on the Tap opens rewards setting.
Image requirements
Images must be HTTPS PNG or JPEG.
HTTPS only — plain HTTP is blocked by iOS App Transport Security and Android’s cleartext policy.
PNG or JPEG only — WebP, SVG, GIF, and AVIF cannot be decoded on device, even though they preview fine in a browser.
Serve images with a Content-Type of image/png or image/jpeg and no Content-Encoding header. An image that displays correctly in a browser can still fail to decode on device if it’s served with an encoding header.
Maximum 5 pages per creative. Every page is downloaded before the modal appears, so keep image dimensions reasonable — target the device resolution you actually need, not the largest possible.
Localization
The Locale field controls who sees a creative:
Not set — served to everyone. This is what you want for most creatives.
Set (e.g. en, en-GB, pt-BR) — served only to players whose locale matches.
If a creative key has only localized versions and none without a locale, players whose locale doesn’t match will see nothing. When you localize, always keep one version with no locale as the fallback.
Shows the creative with the given key. The callback fires when the modal closes — or immediately, with shown == false, if it couldn’t be shown.Your game decides when a creative appears. The SDK does no scheduling or frequency capping, so you’re free to build your own rules (once per session, after level 3, only when a balance is unclaimed, and so on). See Best practices.
CloseCreative
CloseCreative()
Closes the visible creative, or cancels one that is still loading. The ShowCreative callback fires with dismissReason == "programmatic".
The result object
ZBDCreativeResult, passed to your ShowCreative callback:
Field
Type
Description
shown
bool
Whether a creative actually displayed.
creativeId
string
The key you requested.
dismissReason
string
How it closed — see below.
pageCount
int
Total pages in the creative.
lastPage
int
Furthest page the player reached (0-based).
error
string
Why nothing was shown. Only set when shown == false.
Dismiss reasons
Value
Meaning
"cta"
The player tapped the creative. If Tap opens rewards is on, the rewards interface is opening.
"close"
The player used the close button.
"backdrop"
The player tapped outside the image.
"programmatic"
Your game called CloseCreative().
"safety-timeout"
An internal safeguard closed the modal. Rare.
"none"
Placeholder value; not seen on a normal close.
Together, lastPage and pageCount give you a drop-off funnel: you can tell whether a player read all three pages and tapped through, or bailed on page one.
When shown is false
error
Cause
Creative not found: '<key>'
No active creative with that key for this app. Check spelling with your Customer Success Manager, and that your build is pointed at the right environment.
A creative is already showing or pending
One creative at a time. Wait for the previous callback.
Creative images could not be loaded
An image failed to download or decode — usually the format or Content-Type rules above.
Creative has no usable image
The creative has no valid page images configured.
A creative ID is required
Empty key passed.
Cancelled before display
CloseCreative() was called while it was still loading.
Every one of these is a clean no-op from the player’s perspective: nothing renders and your callback runs, so it’s safe to call ShowCreative optimistically.
Best practices
Reveal rewards after the first reward lands
A one- to three-page reveal explaining how rewards work is the highest-value creative you can ship. Show it once — after the player’s first reward has landed, not at cold launch. A pitch before the player has earned anything is a cold offer and triggers suspicion; a reveal of a balance they already have converts. Fire the first reward early in normal play, let the toast land, then show the creative.Three pages is usually enough to answer the only three questions a new player has:
The reveal — this game pays real rewards, and you’ve already started earning. Lead with the balance the player already has — “you’ve already earned 240 coins” converts better than an announcement.
The reason — here’s why, so it doesn’t feel like a scam. This page carries the most important sentence in your rewards copy — “game studios share their ad revenue with players” — which the modal’s built-in first-time screen doesn’t show. The creative is how you ship it. See the Player Communication Guide.
The portal — here’s where your progress lives and how you claim.
Example flows by cashout option
What page 3 says depends on how your players actually get paid, so the flow differs. Each example below is a six-step journey spanning several creatives — the three reveal pages above, then separate creatives for the first-earn, stacking and payout-confirmation moments (a single creative is capped at five pages, and you wouldn’t want all six at once anyway):
Gift cards
Cash App
Mixed options
Gift cards have a minimum to reach, so the flow is about saving up toward a named card — the goal is what motivates.
A three-page reveal: what just happened, the reason it's real, and where rewards live.
Page
What it says
1 · Reveal
This game pays real rewards — and you’ve already started earning
2 · Reason why
No catch — we share a slice of this game’s revenue with players
3 · The portal
Where your progress lives, and how you claim
4 · First earn
You’ve earned your first [Currency]
5 · Stacking
You’re X% of the way to a $5 gift card
6 · Claimed
Your gift card is ready
With Cash App there’s no minimum, so lead on immediacy instead of a savings goal: a few cents can leave straight away. Page 3 explains the mechanic — paid in bitcoin, landing in their Cash App.
Cash App set: no threshold, so a balance and a live cash-out replace the progress bar.
Page
What it says
1 · Reveal
This game pays you real money — straight to Cash App. No $5 minimum. Cash out a few cents if you want.
2 · Reason why
No catch — we share a slice of this game’s revenue with players
3 · How you’re paid
You’re paid in bitcoin, straight to your Cash App. Free to receive. Keep it, or turn it into dollars.
4 · First cents
You’ve earned 6c. There’s no minimum — cash out whenever you like.
5 · Stacking
You’re at $1. Cash out now, or keep stacking.
6 · Sent
Sent — $1 landed in your Cash App. That took about four seconds.
The “no minimum” line is doing the work here: it removes the objection a player brings from other rewards apps, where earnings are stuck behind a threshold they’ll never reach.
Claim “free” only for the receive. Cash App charges nothing to receive bitcoin, but selling it for dollars carries their standard fee (around 2% under $500, plus a spread). Page 3 above says “free to receive” and then “turn it into dollars” without pricing it — deliberately. Don’t write copy implying the conversion is free.
Removing the threshold also removes your motivational engine — there’s no goal to climb toward when the whole pitch is that you don’t have to climb. That’s the trade: instant liquidity rewards checking in, where a goal pushes players on. If retention is the aim, consider the mixed set instead.
Offering several payout options? Make choice the pitch — small amounts out instantly, or save toward something bigger. Page 3 shows the options rather than one mechanic.
Mixed set: the only one carrying both motivations — take it now, or climb to a named card.
Page
What it says
1 · Reveal
This game pays you real money — however you want it. Amazon cards, Cash App, your ZBD wallet and more.
2 · Reason why
No catch — we share a slice of this game’s revenue with players
3 · Your options
Cash out your way. A few cents to Cash App or ZBD, or save up for a gift card.
4 · First cents
You’ve earned 6c. Take it now, or keep going for something bigger.
5 · Stacking
You’re at $1. Take it now, or reach $5 for an Amazon card.
6 · Sent
Sent — your $1 is on its way. Switch payout any time.
Naming the brands (“Amazon cards, Cash App”) converts better than “multiple payout options” — concrete beats abstract.
“No minimum” is not a blanket claim once gift cards are in the mix. It’s true of Cash App and the ZBD wallet, and false of gift cards, which only come in fixed denominations. Split it the way page 3 does — “a few cents to Cash App or ZBD, or save up for a gift card” — rather than promising no minimum across the board.
This is the only set that gets both motivational engines at once: instant rails let a player take six cents now, and gift-card denominations still leave something ahead worth reaching. Page 5 carries both — a live balance above a meter that ends at a named card.
The Amazon and Cash App marks in these examples are stylised stand-ins. Swap them for licensed assets before shipping anything player-facing — Amazon in particular has specific rules about the smile and its clear space, which usually arrive with your gift-card agreement.
Don’t ship all six steps as one creative. The first three belong together as the reveal; steps 4–6 are separate creatives triggered at those moments — a player who has just earned 6c doesn’t need to be told what happens at $5 yet.
Trigger it from your first-reward moment, with PlayerPrefs so it only ever shows once:
private const string RevealShownKey = "zbd_reveal_shown";// Call this from the gameplay moment where the player's first reward landsvoid OnFirstRewardLanded(){ // Already seen it — don't show it again if (PlayerPrefs.GetInt(RevealShownKey, 0) == 1) return; ZBDController.Instance.ShowCreative("cr_onboarding_tour", result => { // Only record it if it actually displayed, so a failed // image load doesn't suppress the reveal forever if (!result.shown) return; PlayerPrefs.SetInt(RevealShownKey, 1); PlayerPrefs.Save(); });}
Set your “already shown” flag inside the callback and only when result.shown is true. If you set it before calling ShowCreative, a network or image failure would permanently prevent the player from ever seeing the reveal.
Remind players as they make progress
A creative that reflects the player’s actual progress converts far better than a generic announcement. Once a player is earning, show reminder creatives at milestones on the way to their first reward.
Reminder creatives at three milestones: first reward earned, halfway to a gift card, and ready to claim.
Three milestones map naturally onto the player’s journey:
Started earning — their first reward has landed. Reinforce that it’s real.
Halfway — they’re about halfway to a specific gift card. Name the card to make it concrete.
Ready to claim — they can redeem now. This is the one that should open the rewards interface.
GetGiftCards tells you exactly where the player is: unlockedPercent is a 0–100 progress value toward each card, so you can pick the right creative without doing any conversion yourself.Ask your Customer Success Manager to enable Tap opens rewards on the “ready to claim” creative, so tapping it opens the rewards interface directly.
private const string MilestoneKey = "zbd_reward_milestone";void MaybeShowProgressReminder(){ ZBDController.Instance.GetGiftCards(response => { if (!response.success) return; if (response.giftCards == null || response.giftCards.Length == 0) return; // The cheapest card is the one the player will reach first ZBDGiftCard target = response.giftCards[0]; foreach (ZBDGiftCard card in response.giftCards) { if (card.priceInSats < target.priceInSats) target = card; } // -1 means progress couldn't be calculated — skip rather than guess if (target.unlockedPercent < 0) return; string creativeId = null; int milestone = 0; if (target.unlockedPercent >= 100) { creativeId = "cr_ready_to_claim"; milestone = 3; } else if (target.unlockedPercent >= 50) { creativeId = "cr_halfway"; milestone = 2; } else if (response.availableBalanceInSats > 0) { creativeId = "cr_started_earning"; milestone = 1; } if (creativeId == null) return; // Show each milestone at most once, and never step backwards if (PlayerPrefs.GetInt(MilestoneKey, 0) >= milestone) return; ZBDController.Instance.ShowCreative(creativeId, result => { if (!result.shown) return; PlayerPrefs.SetInt(MilestoneKey, milestone); PlayerPrefs.Save(); }); });}
Storing a single monotonic milestone number rather than a flag per creative means a player who jumps straight past 50% only sees the milestone they actually reached, and never sees an earlier one afterwards.If you’d rather remind periodically than only once per milestone, store a timestamp alongside the milestone and re-show after a cooldown you’re comfortable with.
Bring players back with local notifications
Creatives only reach a player who is already in your game. To win back a player who left with an uncashed balance, pair them with local notifications — OS-scheduled reminders that need no push infrastructure, and can be driven from the same GetGiftCards progress value.
Styling
The SDK draws its own close button, next arrow, and page dots. Any of them can be replaced with your own art or hidden entirely, so the modal fits your game.You don’t need to call SetCreativeStyle at all — the SDK’s built-in defaults apply automatically. Only call it if you want to change something:
SetCreativeStyle(ZBDCreativeStyle style)
Call it once after Init(), before your first ShowCreative.
ZBDController.Instance.SetCreativeStyle(new ZBDCreativeStyle{ closeButtonSprite = myCloseSprite, nextButtonSprite = myArrowSprite, pageDotActiveSprite = myDotOn, pageDotInactiveSprite = myDotOff, backdropColor = new Color(0.05f, 0f, 0.15f, 0.8f), showNextButton = false, // the artwork already draws its own NEXT button});
Every field is optional — omit one and the SDK’s built-in control is used. If you’ve set a custom style and want to go back, pass null to reset to defaults.
Sizes and offsets are in the overlay’s reference space (1080×1920, scaled to fit), not raw pixels, so they stay consistent across devices.
If you set showCloseButton = false on a creative that also has Backdrop dismisses turned off, the SDK re-enables the close button anyway — otherwise the player would have no way to close the modal.
Optional. Refreshes the cached creative list. The SDK already fetches during Init(), and ShowCreative fetches lazily if needed, so most games never call this.
Behavior notes
Preloading. Creatives and their images are fetched during Init() so the first ShowCreative is instant. If the fetch fails (no network, for example), Init() still completes normally — creatives simply retry on the next attempt.One at a time. Calling ShowCreative while another creative is showing or loading returns shown = false rather than stacking modals.Rotation. The modal handles rotation while visible, swapping to the other orientation’s artwork where one is provided.Input. While a creative is visible, its backdrop absorbs taps so the game underneath doesn’t receive them.A/B testing. Ask for two creatives with different keys, assign players to a variant in your own code, and call ShowCreative with the matching key. Your game keeps full control of the split.
Troubleshooting
“Creative not found” but it was just set up. Confirm the creative key spelling with your Customer Success Manager, check that it’s been made active, and make sure your build is pointed at the same environment it was configured in. The App ID must match your game’s token exactly — it’s case-sensitive.The modal doesn’t appear and I get “Creative images could not be loaded”. Almost always the image: confirm it’s HTTPS, PNG or JPEG, and served with an image Content-Type and no Content-Encoding header. A browser preview succeeding does not guarantee the device can decode it.Nothing shows for some players only. Check the locale — a creative with a locale set is only served to matching players. Ask for a version with no locale as a fallback.A newly updated creative isn’t picked up. The creative list is cached for the session. Restart the app, or call FetchCreatives() to refresh.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ZBD Documentation","description":"ZBD is the global Bitcoin payments API for app and game developers. Integrate ZBD into your app or game to enable multicurrency payments, rewards, and payouts in minutes.","colors":{"primary":"#1659e7","light":"#6294fd","dark":"#1659e7"},"logo":{"light":"https://mintcdn.com/zbd/jvCos8SaHsvVjNZx/img/logo/light.svg?fit=max\u0026auto=format\u0026n=jvCos8SaHsvVjNZx\u0026q=85\u0026s=1c8ae339a2d8e20a9b9da7cdc0d8b0b7","dark":"https://mintcdn.com/zbd/jvCos8SaHsvVjNZx/img/logo/dark.svg?fit=max\u0026auto=format\u0026n=jvCos8SaHsvVjNZx\u0026q=85\u0026s=5047a230891ec42163fe6605a0dda977"},"favicon":"https://mintcdn.com/zbd/nRH22BqA8EO7WQdT/favicon.png?fit=max\u0026auto=format\u0026n=nRH22BqA8EO7WQdT\u0026q=85\u0026s=26e7af21f92b177e0d6ceca1fcdc34a3","appearance":{"default":"system"},"navbar":{"links":[{"href":"https://status.zbdpay.com/","label":"Status"},{"href":"https://zbdpay.com/contact","label":"Contact ZBD"}],"primary":{"type":"button","label":"Publisher Portal","href":"https://dashboard.zbdpay.com"}},"footer":{"socials":{"x":"https://x.com/zbdpay","github":"https://github.com/zbdpay"}},"search":{"prompt":"Search ZBD Documentation"},"seo":{"metatags":{"og:image":"/img/og-preview.png"},"indexing":"navigable"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"zbd","hasAudioNarration":false,"actualSubdomain":"zbd","customDomains":["docs.zbdpay.com"],"gitSource":{"type":"github","owner":"zbdpay","repo":"zbd-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ac450c5810f869badaaf84f","clientVersion":"0.0.4248","searchFilterCounts":[{"language":"default","tag":"Bitcoin","count":55},{"language":"default","tag":"API Reference","count":54},{"language":"default","tag":"Embedded Accounts","count":43},{"language":"default","tag":"Embedded Rewards","count":42},{"language":"default","tag":"Embedded Payouts","count":32},{"language":"default","tag":"Resources","count":24},{"language":"default","tag":"Users","count":16},{"language":"default","tag":"Concepts","count":13},{"language":"default","tag":"Developer Dashboard","count":12},{"language":"default","tag":"Webhooks","count":10}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"widget-tab.css","content":"html:not(.zbd-widget-route) header a[href=\"/widget\"],html:not(.zbd-widget-route) header a[href=\"/widget/\"],html:not(.zbd-widget-route) header a[href$=\"/widget\"],html:not(.zbd-widget-route) header a[href$=\"/widget/\"],html:not(.zbd-widget-route) nav a[href=\"/widget\"],html:not(.zbd-widget-route) nav a[href=\"/widget/\"],html:not(.zbd-widget-route) nav a[href$=\"/widget\"],html:not(.zbd-widget-route) nav a[href$=\"/widget/\"],html:not(.zbd-widget-route) [role=\"tablist\"] a[href=\"/widget\"],html:not(.zbd-widget-route) [role=\"tablist\"] a[href=\"/widget/\"],html:not(.zbd-widget-route) [role=\"tablist\"] a[href$=\"/widget\"],html:not(.zbd-widget-route) [role=\"tablist\"] a[href$=\"/widget/\"]{display:none!important}.dark\\:prose-invert:is(.dark *){--tw-prose-body: var(--tw-prose-invert-body);--tw-prose-headings: var(--tw-prose-invert-headings);--tw-prose-lead: var(--tw-prose-invert-lead);--tw-prose-links: var(--tw-prose-invert-links);--tw-prose-bold: var(--tw-prose-invert-bold);--tw-prose-counters: var(--tw-prose-invert-counters);--tw-prose-bullets: var(--tw-prose-invert-bullets);--tw-prose-hr: var(--tw-prose-invert-hr);--tw-prose-quotes: var(--tw-prose-invert-quotes);--tw-prose-quote-borders: var(--tw-prose-invert-quote-borders);--tw-prose-captions: var(--tw-prose-invert-captions);--tw-prose-code: var(--tw-prose-invert-code);--tw-prose-pre-code: var(--tw-prose-invert-pre-code);--tw-prose-pre-bg: var(--tw-prose-invert-pre-bg);--tw-prose-th-borders: var(--tw-prose-invert-th-borders);--tw-prose-td-borders: var(--tw-prose-invert-td-borders)}html:not(.dark) .bg-primary{background-color:rgb(var(--primary))}html:not(.dark) .text-primary{color:rgb(var(--primary))}html:not(.dark) .border-primary{border-color:rgb(var(--primary))}html:not(.dark) .bg-primary\\/10{background-color:color-mix(in oklab, rgb(var(--primary)) 10%, transparent)}@supports not (color: color-mix(in lab, red, red)){html:not(.dark) .bg-primary\\/10{background-color:rgb(var(--primary) / 0.1)}}#content-area ul>li{list-style:none!important}#content-area ul{padding-left:0}#content-area .card{margin-block:0}#content-area table{margin-block:0}#content-area .step p.font-semibold{margin-top:8px}aside [class*=\"--scroll-area-fade-size\"].pr-8,[class*=\"--scroll-area-fade-size\"].pr-8{right:24px;width:calc(100% - 24px)}#content-area .prose a:not([class*=\"opacity-0\"]){text-decoration:none!important}html:not(.dark) ::selection{background:#000;color:#fff}.dark ::selection{background:#fff;color:#000}.mdx-content td code,.mdx-content th code{white-space:nowrap;overflow-wrap:normal;word-break:keep-all;display:inline-block;max-width:100%;vertical-align:top}.mdx-content .columns>.card{margin-top:0;margin-bottom:0}.mdx-content .columns{gap:16px}"}]}
{"page":{"pagePath":"embedded-rewards/creatives","slug":"/embedded-rewards/creatives","pageMetadata":{"title":"Creative Modals","description":"Show full-screen image modals over gameplay, configured by ZBD without an app store release.","sidebarTitle":"Creative Modals","icon":"images","href":"/embedded-rewards/creatives"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Show full-screen image modals over gameplay, configured by ZBD without an app store release.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Note,OptimizedImage,Tab,Table,Tabs,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creatives are full-screen image modals your game can show over gameplay. ZBD sets up the creative and hosts the artwork; your game shows it with one line of code. Changing artwork, copy, or behavior later is a ZBD-side change — `,_jsx(_components.strong,{children:`no SDK update and no app store release`}),`.`]}),`\n`,_jsx(_components.p,{children:`Typical uses:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`An onboarding carousel explaining how rewards work`}),`\n`,_jsx(_components.li,{children:`A reminder when a player has an unclaimed balance`}),`\n`,_jsx(_components.li,{children:`A seasonal or promotional announcement`}),`\n`,_jsx(_components.li,{children:`A/B testing two versions of the same message`}),`\n`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Requires Unity SDK v1.1.7 or above.`})}),`\n`,_jsx(Heading,{level:`2`,id:`quick-start`,children:`Quick start`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ZBDController`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Instance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ShowCreative`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cr_onboarding_tour\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`That’s the whole integration. The SDK fetches your app’s creatives during `,_jsx(_components.code,{children:`Init()`}),` and preloads their images, so the modal appears instantly.`]}),`\n`,_jsx(_components.p,{children:`To react to what the player did:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ZBDController`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Instance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ShowCreative`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cr_onboarding_tour\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shown`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Debug`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`$\"Nothing shown: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`dismissReason`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"cta\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Debug`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Player tapped through to rewards\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Debug`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`$\"Closed on page `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lastPage`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` of `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pageCount`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`setting-up-a-creative`,children:`Setting up a creative`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Creatives can’t be configured self-serve yet. To set one up, reach out to your Customer Success Manager — they’ll configure it with you and host your artwork.`})}),`\n`,_jsx(_components.p,{children:`Tell your Customer Success Manager the following, and send them your images:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`What to provide`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Creative key`})}),_jsxs(_components.td,{children:[`The ID your game will pass to `,_jsx(_components.code,{children:`ShowCreative()`}),`. Choose it carefully — it can’t be changed later, because analytics reference it.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Number of pages`})}),_jsx(_components.td,{children:`One page = a simple modal. Several = a swipeable carousel with page dots.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Locale`})}),_jsxs(_components.td,{children:[`Only if you need it. Leave it out for a creative that should show to everyone (see `,_jsx(_components.a,{href:`#localization`,children:`Localization`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Transition`})}),_jsxs(_components.td,{children:[`How the modal appears: `,_jsx(_components.code,{children:`popup`}),`, `,_jsx(_components.code,{children:`fade`}),`, or `,_jsx(_components.code,{children:`slide`}),`. Defaults to `,_jsx(_components.code,{children:`fade`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Tap opens rewards`})}),_jsxs(_components.td,{children:[`Whether tapping the `,_jsx(_components.strong,{children:`last`}),` page opens the ZBD rewards interface. Off = the creative is purely informational.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Two further properties are set on the ZBD side and worth knowing about:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Property`}),_jsx(_components.th,{children:`What it does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Backdrop dismisses`})}),_jsx(_components.td,{children:`Whether tapping the dimmed area outside the image closes the modal. The close button always works regardless.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Active`})}),_jsx(_components.td,{children:`Inactive creatives are not served to the SDK at all. This is how a creative is retired — preferred over deleting, so historical analytics keep resolving.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`pages-and-navigation`,children:`Pages and navigation`}),`\n`,_jsxs(_components.p,{children:[`Each page needs `,_jsx(_components.strong,{children:`at least one image`}),` — portrait, landscape, or both. The SDK picks whichever matches the device’s current orientation, and swaps automatically when the player rotates. If you supply only one, it’s used in both orientations.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Portrait art is `,_jsx(_components.strong,{children:`not`}),` required. If your game is landscape-only, send landscape art alone — there’s no need to supply portrait images that would never be shown. The same applies in reverse for portrait-only games.`]})}),`\n`,_jsx(_components.p,{children:`On a multi-page creative the player can:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Tap`}),` the image to advance to the next page`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Swipe`}),` left or right to move between pages`]}),`\n`,_jsxs(_components.li,{children:[`Use the `,_jsx(_components.strong,{children:`next arrow`}),` (hidden on the last page)`]}),`\n`,_jsxs(_components.li,{children:[`See their position via `,_jsx(_components.strong,{children:`page dots`})]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`On the final page, tapping either opens the rewards interface or does nothing, depending on the `,_jsx(_components.strong,{children:`Tap opens rewards`}),` setting.`]}),`\n`,_jsx(Heading,{level:`3`,id:`image-requirements`,children:`Image requirements`}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Images must be HTTPS PNG or JPEG.`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`HTTPS only`}),` — plain HTTP is blocked by iOS App Transport Security and Android’s cleartext policy.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PNG or JPEG only`}),` — WebP, SVG, GIF, and AVIF cannot be decoded on device, even though they preview fine in a browser.`]}),`\n`,_jsxs(_components.li,{children:[`Serve images with a `,_jsx(_components.code,{children:`Content-Type`}),` of `,_jsx(_components.code,{children:`image/png`}),` or `,_jsx(_components.code,{children:`image/jpeg`}),` and `,_jsxs(_components.strong,{children:[`no `,_jsx(_components.code,{children:`Content-Encoding`}),` header`]}),`. An image that displays correctly in a browser can still fail to decode on device if it’s served with an encoding header.`]}),`\n`]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Maximum 5 pages`}),` per creative. Every page is downloaded before the modal appears, so keep image dimensions reasonable — target the device resolution you actually need, not the largest possible.`]}),`\n`,_jsx(Heading,{level:`3`,id:`localization`,children:`Localization`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Locale`}),` field controls who sees a creative:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Not set`}),` — served to everyone. This is what you want for most creatives.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Set`}),` (e.g. `,_jsx(_components.code,{children:`en`}),`, `,_jsx(_components.code,{children:`en-GB`}),`, `,_jsx(_components.code,{children:`pt-BR`}),`) — served only to players whose locale matches.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`If a creative key has `,_jsx(_components.em,{children:`only`}),` localized versions and none without a locale, players whose locale doesn’t match will see `,_jsx(_components.strong,{children:`nothing`}),`. When you localize, always keep one version with no locale as the fallback.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`api-reference`,children:`API reference`}),`\n`,_jsxs(_components.p,{children:[`All methods are on `,_jsx(_components.code,{children:`ZBDController.Instance`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`showcreative`,children:`ShowCreative`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ShowCreative`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` creativeId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Action`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ZBDCreativeResult`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` onClosed`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Shows the creative with the given key. The callback fires when the modal closes — or immediately, with `,_jsx(_components.code,{children:`shown == false`}),`, if it couldn’t be shown.`]}),`\n`,_jsxs(_components.p,{children:[`Your game decides `,_jsx(_components.em,{children:`when`}),` a creative appears. The SDK does no scheduling or frequency capping, so you’re free to build your own rules (once per session, after level 3, only when a balance is unclaimed, and so on). See `,_jsx(_components.a,{href:`#best-practices`,children:`Best practices`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`closecreative`,children:`CloseCreative`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`CloseCreative`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Closes the visible creative, or cancels one that is still loading. The `,_jsx(_components.code,{children:`ShowCreative`}),` callback fires with `,_jsx(_components.code,{children:`dismissReason == \"programmatic\"`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-result-object`,children:`The result object`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`ZBDCreativeResult`}),`, passed to your `,_jsx(_components.code,{children:`ShowCreative`}),` callback:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`shown`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bool`})}),_jsx(_components.td,{children:`Whether a creative actually displayed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`creativeId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`The key you requested.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`dismissReason`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`How it closed — see below.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pageCount`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`int`})}),_jsx(_components.td,{children:`Total pages in the creative.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lastPage`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`int`})}),_jsx(_components.td,{children:`Furthest page the player reached (0-based).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`error`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsxs(_components.td,{children:[`Why nothing was shown. Only set when `,_jsx(_components.code,{children:`shown == false`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`dismiss-reasons`,children:`Dismiss reasons`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"cta\"`})}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`The player tapped the creative.`}),` If `,_jsx(_components.em,{children:`Tap opens rewards`}),` is on, the rewards interface is opening.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"close\"`})}),_jsx(_components.td,{children:`The player used the close button.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"backdrop\"`})}),_jsx(_components.td,{children:`The player tapped outside the image.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"programmatic\"`})}),_jsxs(_components.td,{children:[`Your game called `,_jsx(_components.code,{children:`CloseCreative()`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"safety-timeout\"`})}),_jsx(_components.td,{children:`An internal safeguard closed the modal. Rare.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"none\"`})}),_jsx(_components.td,{children:`Placeholder value; not seen on a normal close.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Together, `,_jsx(_components.code,{children:`lastPage`}),` and `,_jsx(_components.code,{children:`pageCount`}),` give you a drop-off funnel: you can tell whether a player read all three pages and tapped through, or bailed on page one.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`when-shown-is-false`,children:[`When `,_jsx(_components.code,{children:`shown`}),` is false`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`error`})}),_jsx(_components.th,{children:`Cause`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Creative not found: '\u003ckey>'`})}),_jsxs(_components.td,{children:[`No `,_jsx(_components.strong,{children:`active`}),` creative with that key for this app. Check spelling with your Customer Success Manager, and that your build is pointed at the right environment.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`A creative is already showing or pending`})}),_jsx(_components.td,{children:`One creative at a time. Wait for the previous callback.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Creative images could not be loaded`})}),_jsxs(_components.td,{children:[`An image failed to download or decode — usually the format or `,_jsx(_components.code,{children:`Content-Type`}),` rules above.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Creative has no usable image`})}),_jsx(_components.td,{children:`The creative has no valid page images configured.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`A creative ID is required`})}),_jsx(_components.td,{children:`Empty key passed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Cancelled before display`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`CloseCreative()`}),` was called while it was still loading.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Every one of these is a clean no-op from the player’s perspective: nothing renders and your callback runs, so it’s safe to call `,_jsx(_components.code,{children:`ShowCreative`}),` optimistically.`]}),`\n`,_jsx(Heading,{level:`2`,id:`best-practices`,children:`Best practices`}),`\n`,_jsx(Heading,{level:`3`,id:`reveal-rewards-after-the-first-reward-lands`,children:`Reveal rewards after the first reward lands`}),`\n`,_jsxs(_components.p,{children:[`A one- to three-page reveal explaining how rewards work is the highest-value creative you can ship. Show it once — `,_jsx(_components.strong,{children:`after the player’s first reward has landed`}),`, not at cold launch. A pitch before the player has earned anything is a cold offer and triggers suspicion; a reveal of a balance they already have converts. Fire the first reward early in normal play, let the toast land, then show the creative.`]}),`\n`,_jsx(_components.p,{children:`Three pages is usually enough to answer the only three questions a new player has:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The reveal`}),` — `,_jsx(_components.em,{children:`this game pays real rewards, and you’ve already started earning.`}),` Lead with the balance the player already has — “you’ve already earned 240 coins” converts better than an announcement.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The reason`}),` — `,_jsx(_components.em,{children:`here’s why, so it doesn’t feel like a scam.`}),` This page carries the most important sentence in your rewards copy — `,_jsx(_components.em,{children:`“game studios share their ad revenue with players”`}),` — which the modal’s built-in first-time screen doesn’t show. The creative is how you ship it. See the `,_jsx(_components.a,{href:`/embedded-rewards/player-comms`,children:`Player Communication Guide`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The portal`}),` — `,_jsx(_components.em,{children:`here’s where your progress lives and how you claim.`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`example-flows-by-cashout-option`,children:`Example flows by cashout option`}),`\n`,_jsxs(_components.p,{children:[`What page 3 says depends on how your players actually get paid, so the flow differs. Each example below is a `,_jsx(_components.strong,{children:`six-step journey spanning several creatives`}),` — the three reveal pages above, then separate creatives for the first-earn, stacking and payout-confirmation moments (a single creative is capped at five pages, and you wouldn’t want all six at once anyway):`]}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Gift cards`,id:`gift-cards`,children:[_jsxs(_components.p,{children:[`Gift cards have a minimum to reach, so the flow is about `,_jsx(_components.strong,{children:`saving up toward a named card`}),` — the goal is what motivates.`]}),_jsx(Frame,{caption:`A three-page reveal: what just happened, the reason it's real, and where rewards live.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-tutorial.png?fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=0bb6766f984f76bdd07411abd5c4fa80`,alt:`Three tutorial creatives shown over gameplay: 'This game now rewards you with real gift cards and cash', 'No catch — we share a slice of this game's revenue with players', and 'Your points and progress live in your Rewards portal'`,\"data-og-width\":`1340`,width:`1340`,\"data-og-height\":`1030`,height:`1030`,\"data-path\":`img/earn/creatives-tutorial.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-tutorial.png?w=280\u0026fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=ffcc895dfb98a736be54478cdf124875 280w, https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-tutorial.png?w=560\u0026fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=fa4ebc154a8e7717fcd2454a6084ec42 560w, https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-tutorial.png?w=840\u0026fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=335a199af552d75f52506df9202ff6c8 840w, https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-tutorial.png?w=1100\u0026fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=22b5fc5cf4de5786b2e9ad5c570b34aa 1100w, https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-tutorial.png?w=1650\u0026fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=880236581dfe2003b456221d35132a6a 1650w, https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-tutorial.png?w=2500\u0026fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=a663e1571d7cc9a855d562e68b8a75b4 2500w`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Page`}),_jsx(_components.th,{children:`What it says`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`1 · Reveal`}),_jsx(_components.td,{children:`This game pays real rewards — and you’ve already started earning`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`2 · Reason why`}),_jsx(_components.td,{children:`No catch — we share a slice of this game’s revenue with players`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`3 · The portal`}),_jsx(_components.td,{children:`Where your progress lives, and how you claim`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`4 · First earn`}),_jsx(_components.td,{children:`You’ve earned your first [Currency]`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`5 · Stacking`}),_jsx(_components.td,{children:`You’re X% of the way to a $5 gift card`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`6 · Claimed`}),_jsx(_components.td,{children:`Your gift card is ready`})]})]})]})]}),_jsxs(Tab,{title:`Cash App`,id:`cash-app`,children:[_jsxs(_components.p,{children:[`With Cash App there’s `,_jsx(_components.strong,{children:`no minimum`}),`, so lead on immediacy instead of a savings goal: a few cents can leave straight away. Page 3 explains the mechanic — paid in bitcoin, landing in their Cash App.`]}),_jsx(Frame,{caption:`Cash App set: no threshold, so a balance and a live cash-out replace the progress bar.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-cashapp-flow.jpg?fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=b783a06981201dfe7918ff5ec09eb630`,alt:`Six Cash App creatives: 'This game pays you real money — straight to Cash App', 'No catch — we share a slice of this game's revenue with players', 'You're paid in bitcoin, straight to your Cash App', 'You've earned 6c', 'You're at $1', and 'Sent — $1 landed in your Cash App'`,\"data-og-width\":`2038`,width:`2038`,\"data-og-height\":`582`,height:`582`,\"data-path\":`img/earn/creatives-cashapp-flow.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-cashapp-flow.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=156068858ace48b40aa97d7dd5b77200 280w, https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-cashapp-flow.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=ed4aa03377ef0d624f98ccbbfc697dac 560w, https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-cashapp-flow.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=7ae4700a78a273245c75bb4cc5cd291a 840w, https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-cashapp-flow.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=75683a4a803f1427780433324a889ae4 1100w, https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-cashapp-flow.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=69f953c6bccdb4e8ddb9232081087207 1650w, https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-cashapp-flow.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=a7e3bf86d7004165f7ad046ce335efa3 2500w`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Page`}),_jsx(_components.th,{children:`What it says`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`1 · Reveal`}),_jsxs(_components.td,{children:[`This game pays you real money — straight to Cash App. `,_jsx(_components.em,{children:`No $5 minimum. Cash out a few cents if you want.`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`2 · Reason why`}),_jsx(_components.td,{children:`No catch — we share a slice of this game’s revenue with players`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`3 · How you’re paid`}),_jsxs(_components.td,{children:[`You’re paid in bitcoin, straight to your Cash App. `,_jsx(_components.em,{children:`Free to receive. Keep it, or turn it into dollars.`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`4 · First cents`}),_jsxs(_components.td,{children:[`You’ve earned 6c. `,_jsx(_components.em,{children:`There’s no minimum — cash out whenever you like.`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`5 · Stacking`}),_jsxs(_components.td,{children:[`You’re at $1. `,_jsx(_components.em,{children:`Cash out now, or keep stacking.`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`6 · Sent`}),_jsxs(_components.td,{children:[`Sent — $1 landed in your Cash App. `,_jsx(_components.em,{children:`That took about four seconds.`})]})]})]})]}),_jsx(_components.p,{children:`The “no minimum” line is doing the work here: it removes the objection a player brings from other rewards apps, where earnings are stuck behind a threshold they’ll never reach.`}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Claim “free” only for the receive.`}),` Cash App charges nothing to receive bitcoin, but `,_jsx(_components.em,{children:`selling`}),` it for dollars carries their standard fee (around 2% under $500, plus a spread). Page 3 above says “free to receive” and then “turn it into dollars” without pricing it — deliberately. Don’t write copy implying the conversion is free.`]})}),_jsx(_components.p,{children:`Removing the threshold also removes your motivational engine — there’s no goal to climb toward when the whole pitch is that you don’t have to climb. That’s the trade: instant liquidity rewards checking in, where a goal pushes players on. If retention is the aim, consider the mixed set instead.`})]}),_jsxs(Tab,{title:`Mixed options`,id:`mixed-options`,children:[_jsxs(_components.p,{children:[`Offering several payout options? Make `,_jsx(_components.strong,{children:`choice`}),` the pitch — small amounts out instantly, or save toward something bigger. Page 3 shows the options rather than one mechanic.`]}),_jsx(Frame,{caption:`Mixed set: the only one carrying both motivations — take it now, or climb to a named card.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-mixed-flow.jpg?fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=edd74ff849d46e5a7e4c1e71d4c9c274`,alt:`Six mixed-payout creatives: 'This game pays you real money — however you want it', 'No catch — we share a slice of this game's revenue with players', 'Cash out your way', 'You've earned 6c', 'You're at $1 — take it now or reach $5 for an Amazon card', and 'Sent — your $1 is on its way'`,\"data-og-width\":`2038`,width:`2038`,\"data-og-height\":`582`,height:`582`,\"data-path\":`img/earn/creatives-mixed-flow.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-mixed-flow.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=d07e58960765926982252b7e9b1a2107 280w, https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-mixed-flow.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=1cf3c4d257840d7944a197fe712f0dcc 560w, https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-mixed-flow.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=34c67c7445c509c71925b9d0f234ccd9 840w, https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-mixed-flow.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=9abb2b3f677a621f6a27496a26f6d7bd 1100w, https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-mixed-flow.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=e4042566b766dfce6a45f46955cf1f1c 1650w, https://mintcdn.com/zbd/iP3LSQu1Xjq0ZmK1/img/earn/creatives-mixed-flow.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=iP3LSQu1Xjq0ZmK1\u0026q=85\u0026s=1e947e6ba1a860281c6e973c9350178e 2500w`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Page`}),_jsx(_components.th,{children:`What it says`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`1 · Reveal`}),_jsxs(_components.td,{children:[`This game pays you real money — however you want it. `,_jsx(_components.em,{children:`Amazon cards, Cash App, your ZBD wallet and more.`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`2 · Reason why`}),_jsx(_components.td,{children:`No catch — we share a slice of this game’s revenue with players`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`3 · Your options`}),_jsxs(_components.td,{children:[`Cash out your way. `,_jsx(_components.em,{children:`A few cents to Cash App or ZBD, or save up for a gift card.`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`4 · First cents`}),_jsxs(_components.td,{children:[`You’ve earned 6c. `,_jsx(_components.em,{children:`Take it now, or keep going for something bigger.`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`5 · Stacking`}),_jsxs(_components.td,{children:[`You’re at $1. `,_jsx(_components.em,{children:`Take it now, or reach $5 for an Amazon card.`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`6 · Sent`}),_jsxs(_components.td,{children:[`Sent — your $1 is on its way. `,_jsx(_components.em,{children:`Switch payout any time.`})]})]})]})]}),_jsx(_components.p,{children:`Naming the brands (“Amazon cards, Cash App”) converts better than “multiple payout options” — concrete beats abstract.`}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`“No minimum” is not a blanket claim once gift cards are in the mix.`}),` It’s true of Cash App and the ZBD wallet, and false of gift cards, which only come in fixed denominations. Split it the way page 3 does — `,_jsx(_components.em,{children:`“a few cents to Cash App or ZBD, or save up for a gift card”`}),` — rather than promising no minimum across the board.`]})}),_jsx(_components.p,{children:`This is the only set that gets both motivational engines at once: instant rails let a player take six cents now, and gift-card denominations still leave something ahead worth reaching. Page 5 carries both — a live balance above a meter that ends at a named card.`})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`The Amazon and Cash App marks in these examples are stylised stand-ins.`}),` Swap them for licensed assets before shipping anything player-facing — Amazon in particular has specific rules about the smile and its clear space, which usually arrive with your gift-card agreement.`]})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Don’t ship all six steps as one creative. The first three belong together as the reveal; steps 4–6 are separate creatives triggered at those moments — a player who has just earned 6c doesn’t need to be told what happens at $5 yet.`})}),`\n`,_jsxs(_components.p,{children:[`Trigger it from your first-reward moment, with `,_jsx(_components.code,{children:`PlayerPrefs`}),` so it only ever shows once:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` string`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` RevealShownKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"zbd_reveal_shown\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Call this from the gameplay moment where the player's first reward lands`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` OnFirstRewardLanded`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Already seen it — don't show it again`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PlayerPrefs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`GetInt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`RevealShownKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ZBDController`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Instance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ShowCreative`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cr_onboarding_tour\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Only record it if it actually displayed, so a failed`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // image load doesn't suppress the reveal forever`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shown`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PlayerPrefs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`SetInt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`RevealShownKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PlayerPrefs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Save`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Set your “already shown” flag inside the callback and only when `,_jsx(_components.code,{children:`result.shown`}),` is `,_jsx(_components.code,{children:`true`}),`. If you set it before calling `,_jsx(_components.code,{children:`ShowCreative`}),`, a network or image failure would permanently prevent the player from ever seeing the reveal.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`remind-players-as-they-make-progress`,children:`Remind players as they make progress`}),`\n`,_jsx(_components.p,{children:`A creative that reflects the player’s actual progress converts far better than a generic announcement. Once a player is earning, show reminder creatives at milestones on the way to their first reward.`}),`\n`,_jsx(Frame,{caption:`Reminder creatives at three milestones: first reward earned, halfway to a gift card, and ready to claim.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-reminders.png?fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=6378d31426559cf473d3691b01bd378f`,alt:`Three reminder creatives shown over gameplay: 'You've started earning', 'You're halfway there', and 'Well done — your reward is ready'`,\"data-og-width\":`1340`,width:`1340`,\"data-og-height\":`1030`,height:`1030`,\"data-path\":`img/earn/creatives-reminders.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-reminders.png?w=280\u0026fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=7aed3ac10eb17dcc46effd9d3031c772 280w, https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-reminders.png?w=560\u0026fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=6b009d35c4f625834effee9579caa2f1 560w, https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-reminders.png?w=840\u0026fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=99c2e132b3c4170b49aceaf2fc8d9716 840w, https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-reminders.png?w=1100\u0026fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=e3fed91c6e27cce85d6dd7bc55bc4fc3 1100w, https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-reminders.png?w=1650\u0026fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=3a775de354bc261013c838e17edff216 1650w, https://mintcdn.com/zbd/xlPwccSvcivV0X0i/img/earn/creatives-reminders.png?w=2500\u0026fit=max\u0026auto=format\u0026n=xlPwccSvcivV0X0i\u0026q=85\u0026s=47033ce6111496d2db7bd02785a47e6f 2500w`})}),`\n`,_jsx(_components.p,{children:`Three milestones map naturally onto the player’s journey:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Started earning`}),` — their first reward has landed. Reinforce that it’s real.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Halfway`}),` — they’re about halfway to a specific gift card. Name the card to make it concrete.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Ready to claim`}),` — they can redeem now. This is the one that should open the rewards interface.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/embedded-rewards/gift-cards`,children:_jsx(_components.code,{children:`GetGiftCards`})}),` tells you exactly where the player is: `,_jsx(_components.code,{children:`unlockedPercent`}),` is a 0–100 progress value toward each card, so you can pick the right creative without doing any conversion yourself.`]}),`\n`,_jsxs(_components.p,{children:[`Ask your Customer Success Manager to enable `,_jsx(_components.strong,{children:`Tap opens rewards`}),` on the “ready to claim” creative, so tapping it opens the rewards interface directly.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`52`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`52`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` string`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` MilestoneKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"zbd_reward_milestone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MaybeShowProgressReminder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ZBDController`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Instance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`GetGiftCards`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`success`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`giftCards`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`giftCards`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Length`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // The cheapest card is the one the player will reach first`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ZBDGiftCard`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` target`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`giftCards`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` foreach`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ZBDGiftCard`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` card`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`giftCards`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`card`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`priceInSats`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` target`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`priceInSats`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`target`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` card`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // -1 means progress couldn't be calculated — skip rather than guess`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`target`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`unlockedPercent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` string`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` creativeId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` int`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` milestone`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`target`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`unlockedPercent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` creativeId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"cr_ready_to_claim\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` milestone`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`target`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`unlockedPercent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 50`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` creativeId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"cr_halfway\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` milestone`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`availableBalanceInSats`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` creativeId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"cr_started_earning\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` milestone`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`creativeId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Show each milestone at most once, and never step backwards`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PlayerPrefs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`GetInt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MilestoneKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` milestone`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ZBDController`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Instance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ShowCreative`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`creativeId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shown`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PlayerPrefs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`SetInt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MilestoneKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`milestone`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PlayerPrefs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Save`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Storing a single monotonic milestone number rather than a flag per creative means a player who jumps straight past 50% only sees the milestone they actually reached, and never sees an earlier one afterwards.`}),`\n`,_jsx(_components.p,{children:`If you’d rather remind periodically than only once per milestone, store a timestamp alongside the milestone and re-show after a cooldown you’re comfortable with.`}),`\n`,_jsx(Heading,{level:`3`,id:`bring-players-back-with-local-notifications`,children:`Bring players back with local notifications`}),`\n`,_jsxs(_components.p,{children:[`Creatives only reach a player who is already in your game. To win back a player who left with an uncashed balance, pair them with `,_jsx(_components.a,{href:`/embedded-rewards/local-notifications`,children:`local notifications`}),` — OS-scheduled reminders that need no push infrastructure, and can be driven from the same `,_jsx(_components.code,{children:`GetGiftCards`}),` progress value.`]}),`\n`,_jsx(Heading,{level:`2`,id:`styling`,children:`Styling`}),`\n`,_jsx(_components.p,{children:`The SDK draws its own close button, next arrow, and page dots. Any of them can be replaced with your own art or hidden entirely, so the modal fits your game.`}),`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`You don’t need to call `,_jsx(_components.code,{children:`SetCreativeStyle`}),` at all`]}),` — the SDK’s built-in defaults apply automatically. Only call it if you want to change something:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`SetCreativeStyle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ZBDCreativeStyle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` style`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Call it once after `,_jsx(_components.code,{children:`Init()`}),`, before your first `,_jsx(_components.code,{children:`ShowCreative`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ZBDController`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Instance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`SetCreativeStyle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ZBDCreativeStyle`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` closeButtonSprite`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` myCloseSprite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` nextButtonSprite`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` myArrowSprite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pageDotActiveSprite`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` myDotOn`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pageDotInactiveSprite`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` myDotOff`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` backdropColor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Color`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.05f`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0f`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.15f`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.8f`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` showNextButton`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// the artwork already draws its own NEXT button`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Every field is optional — omit one and the SDK’s built-in control is used. If you’ve set a custom style and want to go back, pass `,_jsx(_components.code,{children:`null`}),` to reset to defaults.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Group`}),_jsx(_components.th,{children:`Fields`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Sprites`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`closeButtonSprite`}),`, `,_jsx(_components.code,{children:`nextButtonSprite`}),`, `,_jsx(_components.code,{children:`pageDotActiveSprite`}),`, `,_jsx(_components.code,{children:`pageDotInactiveSprite`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Visibility`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`showCloseButton`}),`, `,_jsx(_components.code,{children:`showNextButton`}),`, `,_jsx(_components.code,{children:`showPageDots`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Colors`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`backdropColor`}),`, `,_jsx(_components.code,{children:`closeButtonColor`}),`, `,_jsx(_components.code,{children:`nextButtonColor`}),`, `,_jsx(_components.code,{children:`pageDotActiveColor`}),`, `,_jsx(_components.code,{children:`pageDotInactiveColor`}),`, `,_jsx(_components.code,{children:`iconColor`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Size \u0026 position`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`closeButtonSize`}),`, `,_jsx(_components.code,{children:`closeButtonOffset`}),`, `,_jsx(_components.code,{children:`nextButtonSize`}),`, `,_jsx(_components.code,{children:`nextButtonOffset`}),`, `,_jsx(_components.code,{children:`pageDotSize`}),`, `,_jsx(_components.code,{children:`pageDotSpacing`}),`, `,_jsx(_components.code,{children:`pageDotBottomOffset`})]})]})]})]}),`\n`,_jsx(_components.p,{children:`Sizes and offsets are in the overlay’s reference space (1080×1920, scaled to fit), not raw pixels, so they stay consistent across devices.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`If you set `,_jsx(_components.code,{children:`showCloseButton = false`}),` on a creative that also has `,_jsx(_components.em,{children:`Backdrop dismisses`}),` turned off, the SDK re-enables the close button anyway — otherwise the player would have no way to close the modal.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`refreshing-the-creative-list`,children:`Refreshing the creative list`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`FetchCreatives`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Action`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ZBDCreativesResponse`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` callback`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Optional. Refreshes the cached creative list. The SDK already fetches during `,_jsx(_components.code,{children:`Init()`}),`, and `,_jsx(_components.code,{children:`ShowCreative`}),` fetches lazily if needed, so most games never call this.`]}),`\n`,_jsx(Heading,{level:`2`,id:`behavior-notes`,children:`Behavior notes`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Preloading.`}),` Creatives and their images are fetched during `,_jsx(_components.code,{children:`Init()`}),` so the first `,_jsx(_components.code,{children:`ShowCreative`}),` is instant. If the fetch fails (no network, for example), `,_jsx(_components.code,{children:`Init()`}),` still completes normally — creatives simply retry on the next attempt.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`One at a time.`}),` Calling `,_jsx(_components.code,{children:`ShowCreative`}),` while another creative is showing or loading returns `,_jsx(_components.code,{children:`shown = false`}),` rather than stacking modals.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Rotation.`}),` The modal handles rotation while visible, swapping to the other orientation’s artwork where one is provided.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Input.`}),` While a creative is visible, its backdrop absorbs taps so the game underneath doesn’t receive them.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`A/B testing.`}),` Ask for two creatives with different keys, assign players to a variant in your own code, and call `,_jsx(_components.code,{children:`ShowCreative`}),` with the matching key. Your game keeps full control of the split.`]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`“Creative not found” but it was just set up.`}),` Confirm the creative key spelling with your Customer Success Manager, check that it’s been made active, and make sure your build is pointed at the same environment it was configured in. The `,_jsx(_components.strong,{children:`App ID`}),` must match your game’s token exactly — it’s case-sensitive.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`The modal doesn’t appear and I get “Creative images could not be loaded”.`}),` Almost always the image: confirm it’s HTTPS, PNG or JPEG, and served with an image `,_jsx(_components.code,{children:`Content-Type`}),` and no `,_jsx(_components.code,{children:`Content-Encoding`}),` header. A browser preview succeeding does not guarantee the device can decode it.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Nothing shows for some players only.`}),` Check the locale — a creative with a locale set is only served to matching players. Ask for a version with no locale as a fallback.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`A newly updated creative isn’t picked up.`}),` The creative list is cached for the session. Restart the app, or call `,_jsx(_components.code,{children:`FetchCreatives()`}),` to refresh.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Creative Modals","description":"Show full-screen image modals over gameplay, configured by ZBD without an app store release.","sidebarTitle":"Creative Modals","icon":"images","href":"/embedded-rewards/creatives"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Quick start","slug":"quick-start","depth":2,"children":[]},{"title":"Setting up a creative","slug":"setting-up-a-creative","depth":2,"children":[{"title":"Pages and navigation","slug":"pages-and-navigation","depth":3,"children":[]},{"title":"Image requirements","slug":"image-requirements","depth":3,"children":[]},{"title":"Localization","slug":"localization","depth":3,"children":[]}]},{"title":"API reference","slug":"api-reference","depth":2,"children":[{"title":"ShowCreative","slug":"showcreative","depth":3,"children":[]},{"title":"CloseCreative","slug":"closecreative","depth":3,"children":[]}]},{"title":"The result object","slug":"the-result-object","depth":2,"children":[{"title":"Dismiss reasons","slug":"dismiss-reasons","depth":3,"children":[]},{"title":"When shown is false","slug":"when-shown-is-false","depth":3,"children":[]}]},{"title":"Best practices","slug":"best-practices","depth":2,"children":[{"title":"Reveal rewards after the first reward lands","slug":"reveal-rewards-after-the-first-reward-lands","depth":3,"children":[]},{"title":"Example flows by cashout option","slug":"example-flows-by-cashout-option","depth":4,"children":[]},{"title":"Remind players as they make progress","slug":"remind-players-as-they-make-progress","depth":3,"children":[]},{"title":"Bring players back with local notifications","slug":"bring-players-back-with-local-notifications","depth":3,"children":[]}]},{"title":"Styling","slug":"styling","depth":2,"children":[]},{"title":"Refreshing the creative list","slug":"refreshing-the-creative-list","depth":2,"children":[]},{"title":"Behavior notes","slug":"behavior-notes","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/zbd/464a749535cc27bf/widget-tab.js"],"subdomain":"zbd","siteName":"ZBD Documentation","title":"Creative Modals - ZBD Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-06T01:34:57.752Z","originalFileLocation":"embedded-rewards/creatives.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Show full-screen image modals over gameplay, configured by ZBD without an app store release.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ZBD Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/zbd/0qiehUdhke3D2lQs/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/zbd/0qiehUdhke3D2lQs/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/zbd/0qiehUdhke3D2lQs/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/zbd/0qiehUdhke3D2lQs/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/zbd/0qiehUdhke3D2lQs/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/zbd/0qiehUdhke3D2lQs/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/zbd/0qiehUdhke3D2lQs/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/zbd/0qiehUdhke3D2lQs/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/zbd/0qiehUdhke3D2lQs/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Creative Modals - ZBD Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Show full-screen image modals over gameplay, configured by ZBD without an app store release.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ZBD Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.zbdpay.com/embedded-rewards/creatives\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://zbd.mintlify.site/img/og-preview.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Creative Modals - ZBD Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Show full-screen image modals over gameplay, configured by ZBD without an app store release.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://zbd.mintlify.site/img/og-preview.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/zbd/0qiehUdhke3D2lQs/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ZBD Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1659e7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.zbdpay.com/embedded-rewards/creatives\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/embedded-rewards/creatives.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.zbdpay.com/#organization\",\"name\":\"ZBD Documentation\",\"url\":\"https://docs.zbdpay.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/zbd/jvCos8SaHsvVjNZx/img/logo/light.svg?fit=max\u0026auto=format\u0026n=jvCos8SaHsvVjNZx\u0026q=85\u0026s=1c8ae339a2d8e20a9b9da7cdc0d8b0b7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.zbdpay.com#website\",\"name\":\"ZBD Documentation\",\"url\":\"https://docs.zbdpay.com\",\"publisher\":{\"@id\":\"https://docs.zbdpay.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.zbdpay.com/embedded-rewards/creatives#webpage\",\"url\":\"https://docs.zbdpay.com/embedded-rewards/creatives\",\"name\":\"Creative Modals\",\"description\":\"Show full-screen image modals over gameplay, configured by ZBD without an app store release.\",\"dateModified\":\"2026-10-06T01:34:57.752Z\",\"isPartOf\":{\"@id\":\"https://docs.zbdpay.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.zbdpay.com/embedded-rewards/creatives#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.zbdpay.com/embedded-rewards/creatives#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Best Practices \u0026 Engagement\",\"item\":\"https://docs.zbdpay.com/embedded-rewards/player-comms\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creative Modals\",\"item\":\"https://docs.zbdpay.com/embedded-rewards/creatives\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.zbdpay.com/embedded-rewards/creatives#article\",\"headline\":\"Creative Modals\",\"name\":\"Creative Modals\",\"description\":\"Show full-screen image modals over gameplay, configured by ZBD without an app store release.\",\"url\":\"https://docs.zbdpay.com/embedded-rewards/creatives\",\"mainEntityOfPage\":{\"@id\":\"https://docs.zbdpay.com/embedded-rewards/creatives#webpage\"},\"image\":\"https://docs.zbdpay.com/img/og-preview.png\",\"dateModified\":\"2026-10-06T01:34:57.752Z\",\"publisher\":{\"@id\":\"https://docs.zbdpay.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.zbdpay.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ZBD Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ZBD Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/embedded-rewards/creatives.md","siteName":"ZBD Documentation","nav":{"global":null,"tabs":[{"tab":"Embedded Payouts","pages":[{"title":"Embedded Payouts","href":"/embedded-payouts"}]},{"tab":"Embedded Accounts","pages":[{"title":"Embedded Accounts","href":"/embedded-accounts"}]},{"tab":"Embedded Rewards","groups":[{"group":"Get Started","pages":[{"title":"Embedded Rewards Overview","sidebarTitle":"Overview","icon":"layer-group","href":"/embedded-rewards"}]},{"group":"Concepts","pages":[{"title":"Before You Build","sidebarTitle":"Before You Build","icon":"map","href":"/embedded-rewards/planning"},{"title":"Reward Economics","sidebarTitle":"Reward Economics","icon":"chart-line","href":"/embedded-rewards/reward-economics"},{"title":"Soft Currency Model","sidebarTitle":"Displaying Rewards","icon":"coins","href":"/embedded-rewards/soft-currency"},{"title":"Security \u0026 Fraud Prevention","sidebarTitle":"Security \u0026 Fraud","icon":"shield","href":"/embedded-rewards/security"},{"title":"Modal Customization","sidebarTitle":"Modal Customization","icon":"palette","href":"/embedded-rewards/customization"}]},{"group":"Setup","pages":[{"title":"Global Support","icon":"earth-europe","href":"/embedded-rewards/coverage"},{"title":"Download SDK","icon":"circle-down","href":"/embedded-rewards/download"},{"title":"Compatibility","icon":"rotate","href":"/embedded-rewards/compatibility"},{"title":"Integrating Earn SDK","sidebarTitle":"Integration","icon":"gamepad","href":"/embedded-rewards/integration"},{"title":"Building","icon":"gear","href":"/embedded-rewards/building"}]},{"group":"Advanced Configuration","pages":[{"title":"URL Scheme","sidebarTitle":"URL Scheme","icon":"link","href":"/embedded-rewards/url-scheme"},{"title":"Attestation Set Up","sidebarTitle":"Attestation Set Up","icon":"shield-check","href":"/embedded-rewards/attestation-setup"}]},{"group":"Sending Rewards","pages":[{"title":"Send Rewards (Client)","icon":"mobile","href":"/embedded-rewards/send-rewards-client"},{"title":"Overview","sidebarTitle":"Overview","icon":"circle-info","href":"/embedded-rewards/send-rewards-server"},{"title":"Restrict Client-Side Reward Sending","api":"POST https://api.zbdpay.com/api/v1/rewards/app/{rewardsAppId}/api-version-blocklist","href":"/embedded-rewards/restrict-client-rewards"}]},{"group":"Balances \u0026 Limits","pages":[{"title":"Player Balance \u0026 Limits","sidebarTitle":"Player Balance \u0026 Limits","icon":"wallet","href":"/embedded-rewards/user-balance"},{"title":"Withdrawal Events","sidebarTitle":"Withdrawal Events","icon":"bell-concierge","href":"/embedded-rewards/withdrawal-events"},{"title":"Adjust Player Balance (Dashboard)","sidebarTitle":"Adjust Balance","icon":"arrows-up-down","href":"/embedded-rewards/manage-rewards-balance"},{"title":"Gift Cards","sidebarTitle":"Gift Cards","icon":"gift","href":"/embedded-rewards/gift-cards"},{"title":"Withdrawal Limits (Server)","sidebarTitle":"Withdrawal Limits (Server)","icon":"gauge-high","href":"/embedded-rewards/revenue-based-earning"},{"title":"Increasing Limits with MMP Data","sidebarTitle":"MMP Integration","icon":"chart-mixed","href":"/embedded-rewards/mmp-postbacks"},{"title":"Manage Withdrawal Limits via Dashboard","icon":"arrows-up-down","href":"/embedded-rewards/manage-withdrawal-limits"}]},{"group":"Developer Dashboard","pages":[{"title":"Manage via Dashboard","icon":"sliders","href":"/embedded-rewards/manage-via-dashboard"},{"title":"Earn Controls (Dashboard)","sidebarTitle":"Earn Controls","icon":"users-gear","href":"/embedded-rewards/manage-controls-dashboard"},{"title":"Manage User Linking via Dashboard","icon":"link","href":"/embedded-rewards/manage-user-linking"}]},{"group":"Best Practices \u0026 Engagement","pages":[{"title":"Player Communication Guide","sidebarTitle":"Player Communication","icon":"message-lines","href":"/embedded-rewards/player-comms"},{"title":"Best Practices","description":"How to balance earn rates with withdrawal limits, handle SDK failures gracefully, and keep the player experience smooth.","sidebarTitle":"Best Practices","icon":"lightbulb","href":"/embedded-rewards/best-practices"},{"title":"Creative Modals","sidebarTitle":"Creative Modals","icon":"images","href":"/embedded-rewards/creatives"},{"title":"Local Notifications","description":"Bring players back to keep earning or claim their rewards, with SDK-scheduled local reminders — no push infrastructure required.","sidebarTitle":"Local Notifications","icon":"bell","href":"/embedded-rewards/local-notifications"}]},{"group":"Go Live","pages":[{"title":"Error Handling","sidebarTitle":"Error Handling","icon":"triangle-exclamation","href":"/embedded-rewards/error-handling"},{"title":"Troubleshooting","icon":"bug","href":"/embedded-rewards/troubleshoot"},{"title":"Support Data","sidebarTitle":"Support Data","icon":"life-ring","href":"/embedded-rewards/support-data"},{"title":"Apple App Store Guidelines","sidebarTitle":"Apple App Store","icon":"apple","href":"/embedded-rewards/ios-app-store"},{"title":"Google Play Store Guidelines","sidebarTitle":"Google Play Store","icon":"android","href":"/embedded-rewards/android-app-store"},{"title":"Go-Live Checklist","sidebarTitle":"Go-Live Checklist","icon":"clipboard-check","href":"/embedded-rewards/go-live-checklist"}]},{"group":"API Reference","pages":[{"title":"Send Rewards from Server","api":"POST https://api.zbdpay.com/api/v2/rewards/limited-achievement/reward","href":"/embedded-rewards/send-rewards-api"}]},{"group":"API Keys","pages":[{"title":"Create an API Key","api":"POST https://api.zbdpay.com/api/v1/rewards/app/{rewardsAppId}/api-key","href":"/embedded-rewards/create-api-key"},{"title":"List API Keys","api":"GET https://api.zbdpay.com/api/v1/rewards/app/{rewardsAppId}/api-keys","href":"/embedded-rewards/list-api-keys"},{"title":"Revoke API Key","api":"DELETE https://api.zbdpay.com/api/v1/rewards/app/{rewardsAppId}/api-key/{apiKeyId}","href":"/embedded-rewards/revoke-api-key"}]},{"group":"Blocklist","pages":[{"title":"Get Blocklist Entries","api":"GET https://api.zbdpay.com/api/v1/rewards/app/{rewardsAppId}/api-version-blocklist","href":"/embedded-rewards/get-blocklist-entries"},{"title":"Delete Blocklist Entry","api":"DELETE https://api.zbdpay.com/api/v1/rewards/app/{rewardsAppId}/api-version-blocklist/{blocklistId}","href":"/embedded-rewards/delete-blocklist-entry"}]}]},{"tab":"Bitcoin","pages":[{"title":"Bitcoin","href":"/bitcoin"}]}]},"basePath":"","title":"Creative Modals - ZBD Documentation","deploymentId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","buildId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-B0oVBAXA.js","DynamicMarkdown-BvJIe00T.js","zoom-image-lightbox-BXthlMNf.js","lightbox-handle-r17bVUz3.js"]}