flutter-monetization-pitfalls
Step 5 of the pipeline (WORKFLOW.md), for a Flutter app that earns from ads or a purchase. The premise:
monetisation code is where an app's promises to its user are enforced or broken, and every failure is quiet:
a paying user still gets the ad SDK started, a new account sees a permanent "no ads available" button, a release
ships the network's sample ids. Rules here are a policy layer over a service seam the app already has;
native bridges are flutter-native-bridge-ffi, release tooling is flutter-release-toolchain-hygiene, startup
order is flutter-startup-error-hooks, and general conventions are flutter-conventions.
When
- An ad format, a "watch to earn" control, an interstitial or a banner is added or moved.
- A purchase, a restore button, a paywall or an entitlement flag is added.
- Ad units are created in a network console, or a release build is prepared for an app that shows ads.
Steps
Read only the part the task meets. They are independent.
| Part |
Covers |
Read it when |
File |
| 1 |
Ad policy: injected interfaces, rewarded outcomes, daily cap, earn control visibility, interstitial caps, banners, pricing model |
an ad format or earn flow is designed or reviewed |
01-ad-policy.md |
| 2 |
Entitlement: unlock, restore, one gate, restore before init, cache, commit before UI, tests |
a purchase, a paywall or startup order is touched |
02-entitlement-and-launch-order.md |
| 3 |
Ad units and the release gate: formats not to create, console fields, two identifier kinds, sample ids |
units are created or a release is prepared |
03-ad-units-and-release-gate.md |
Output / checkpoint
Each rewarded flow names its outcome type and grants only on the genuine reward; each interstitial names the
natural break and where the count lives; each entitlement read goes through one gate; the launch order is
written as restore first, ads second. "Ads are integrated" without saying what happens for an entitled user, an
offline owner, a failed restore and a no-fill is not verified.
Guardrails
- Never grant a reward on a dismissed or unfilled outcome (part 1).
- Never initialise the ad SDK before the entitlement is known (part 2).
- Never show an earn control while no ad is loaded (part 1).
- Never ship a release that still carries the network's sample ids or an empty unit id (part 3).
- Never design a server-backed benefit on top of a local entitlement flag (part 2).
- No block and no agent installs an SDK or a plug-in: the blocks name it and the user installs it
(
CONVENTIONS.md).
- Versions: store policy and SDK behaviour change; every rule here is the source's position at the stamped
commit. Nothing was built or run while writing this block.
Origin
Rewritten from the ads-and-iap-monetization skill of the Flutter-Skills repository (MIT: its rules, its two
references and its release-gate script), read 2026-10-16. Overlaps with skills/flutter-conventions (2026-10-19); cross-referenced, not merged. 🟡: never run by us; open
points are in references/origin.md.
1---2name: flutter-monetization-pitfalls3description: "Use when adding ads, a rewarded earn loop, an interstitial, a paywall or a one-time unlock to a Flutter app: rewarded outcomes and daily caps, earn controls that never dead-end, natural-break interstitials, one derived entitlement gate, restore before ad SDK init, console unit settings, and sample ad ids in a release."4metadata:5 source: https://skillmd.com/skills/techmefr/flutter-monetization-pitfalls6---78# flutter-monetization-pitfalls910Step 5 of the pipeline (`WORKFLOW.md`), for a Flutter app that earns from ads or a purchase. The premise:11**monetisation code is where an app's promises to its user are enforced or broken, and every failure is quiet:12a paying user still gets the ad SDK started, a new account sees a permanent "no ads available" button, a release13ships the network's sample ids.** Rules here are a policy layer over a service seam the app already has;14native bridges are `flutter-native-bridge-ffi`, release tooling is `flutter-release-toolchain-hygiene`, startup15order is `flutter-startup-error-hooks`, and general conventions are `flutter-conventions`.1617## When18- An ad format, a "watch to earn" control, an interstitial or a banner is added or moved.19- A purchase, a restore button, a paywall or an entitlement flag is added.20- Ad units are created in a network console, or a release build is prepared for an app that shows ads.2122## Steps2324**Read only the part the task meets.** They are independent.2526| Part | Covers | Read it when | File |27|---|---|---|---|28| 1 | Ad policy: injected interfaces, rewarded outcomes, daily cap, earn control visibility, interstitial caps, banners, pricing model | an ad format or earn flow is designed or reviewed | [`01-ad-policy.md`](./references/01-ad-policy.md) |29| 2 | Entitlement: unlock, restore, one gate, restore before init, cache, commit before UI, tests | a purchase, a paywall or startup order is touched | [`02-entitlement-and-launch-order.md`](./references/02-entitlement-and-launch-order.md) |30| 3 | Ad units and the release gate: formats not to create, console fields, two identifier kinds, sample ids | units are created or a release is prepared | [`03-ad-units-and-release-gate.md`](./references/03-ad-units-and-release-gate.md) |3132## Output / checkpoint33Each rewarded flow names its outcome type and grants only on the genuine reward; each interstitial names the34natural break and where the count lives; each entitlement read goes through one gate; the launch order is35written as restore first, ads second. "Ads are integrated" without saying what happens for an entitled user, an36offline owner, a failed restore and a no-fill is not verified.3738## Guardrails39- Never grant a reward on a dismissed or unfilled outcome (part 1).40- Never initialise the ad SDK before the entitlement is known (part 2).41- Never show an earn control while no ad is loaded (part 1).42- Never ship a release that still carries the network's sample ids or an empty unit id (part 3).43- Never design a server-backed benefit on top of a local entitlement flag (part 2).44- No block and no agent installs an SDK or a plug-in: the blocks name it and the user installs it45 (`CONVENTIONS.md`).46- Versions: store policy and SDK behaviour change; every rule here is the source's position at the stamped47 commit. Nothing was built or run while writing this block.4849## Origin50Rewritten from the ads-and-iap-monetization skill of the Flutter-Skills repository (MIT: its rules, its two51references and its release-gate script), read 2026-10-16. Overlaps with `skills/flutter-conventions` (2026-10-19); cross-referenced, not merged. 🟡: never run by us; open52points are in [`references/origin.md`](./references/origin.md).