# Monetization: In-app Purchases, Subscriptions & Ads

> Earn revenue with store billing for digital goods and subscriptions, server-side receipt validation, and ad SDKs, while following store payment rules. Free...

Canonical: https://www.internhack.in/roadmaps/tracks/mobile/monetization
Last updated: 2026-11-28

Earn revenue with store billing for digital goods and subscriptions, server-side receipt validation, and ad SDKs, while following store payment rules.

Advanced · about 6 hours · difficulty 3/5

Learn first: [Publishing to Google Play & the App Store](https://www.internhack.in/roadmaps/tracks/mobile/store-publishing), [Authentication & Session Handling](https://www.internhack.in/roadmaps/tracks/mobile/authentication)

Not every app needs to make money directly, but if yours does, the store rules shape your design more than any code decision.

### Models

- **Paid upfront:** simple but rare today.
- **In-app purchases (IAP):** consumables (coins), non-consumables (unlock pro forever).
- **Subscriptions:** recurring access with free trials and introductory offers; the dominant model for content and productivity apps.
- **Ads:** banners, interstitials and rewarded video through **Google AdMob** or mediation networks.
- **Physical goods and services** (food delivery, rides) use normal payment providers such as Stripe, not store billing.

### Store billing rules

Digital goods and features consumed inside the app generally must use **Google Play Billing** and Apple **StoreKit**, with the store taking a commission. Rules for linking to external payments vary by region and change often, so read the current guidelines before designing a paywall.

### Implementation

- Native: **StoreKit 2** on iOS, **Play Billing Library** on Android.
- Cross-platform: `react-native-iap`, `expo-iap`, Flutter's `in_app_purchase`, or **RevenueCat**, which wraps both stores, validates receipts and tracks entitlements.
- **Validate purchases on a server** (or via RevenueCat) and store entitlements server-side. Never trust a boolean in local storage.
- Handle restore purchases, refunds, grace periods, cancellations and family sharing.
- Test with sandbox accounts and Play license testers.

### Ads without ruining UX

Show ads at natural breaks, never cover content or buttons, respect frequency caps, and comply with consent requirements (UMP, ATT). Rewarded ads that the user opts into perform best and annoy least.

**Good enough to move on:** you can sell a subscription in a sandbox, unlock features based on a server-verified entitlement, and restore it on a fresh install.

## Key concepts

- **Monetization models**
- **Store payment rules**
- **StoreKit 2 and Play Billing**
- **RevenueCat**
- **Server-side receipt validation**
- **Restore purchases and entitlements**
- **Sandbox and license testing**
- **AdMob and ad UX**

## Mini project

Add a monthly subscription with a free trial using RevenueCat or the native SDKs, gate a premium screen by entitlement, and verify restore works on a second device.

## Check yourself

Why must premium access be decided by a server-validated entitlement rather than a flag the app saves after purchase?

## Free resources

- [Google Play Billing](https://developer.android.com/google/play/billing) (Android Developers)
- [Apple: In-App Purchase](https://developer.apple.com/in-app-purchase/) (Apple)
- [RevenueCat documentation](https://www.revenuecat.com/docs) (RevenueCat)

Previous: [Product Analytics, Remote Config & Experiments](https://www.internhack.in/roadmaps/tracks/mobile/analytics) · Next: [Capstone: Ship a Production-grade App](https://www.internhack.in/roadmaps/tracks/mobile/capstone)

## More in Analytics, Crash Reporting & Monetization

- [Crash Reporting & Monitoring](https://www.internhack.in/roadmaps/tracks/mobile/crash-reporting)
- [Product Analytics, Remote Config & Experiments](https://www.internhack.in/roadmaps/tracks/mobile/analytics)
- [Monetization: In-app Purchases, Subscriptions & Ads](https://www.internhack.in/roadmaps/tracks/mobile/monetization)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Mobile App Developer Roadmap](https://www.internhack.in/roadmaps/tracks/mobile)
