RORK LABJP
CLOUD — Rork Max compiles native Swift on a fleet of cloud Macs, so you never download Xcode or need to own a MacPLATFORM — Rork Max targets iPhone, iPad, Apple Watch, and Vision Pro, and reaches games, widgets, and Live ActivitiesSHIP — Build in the browser, preview through a streaming simulator, install on device via QR code, and submit to the App Store without leaving RorkSPLIT — Regular Rork generates cross-platform apps with React Native and Expo. Reach for it to ship broadly and fast, and for Max when you need Apple-specific depthCREDIT — The free tier works out to roughly five prompts a week. It helps to budget the cost of trying something separately from the cost of finishing itPRICE — Rork Max sits on the $200/month Max plan, while regular Rork starts free with paid plans from $25/monthCLOUD — Rork Max compiles native Swift on a fleet of cloud Macs, so you never download Xcode or need to own a MacPLATFORM — Rork Max targets iPhone, iPad, Apple Watch, and Vision Pro, and reaches games, widgets, and Live ActivitiesSHIP — Build in the browser, preview through a streaming simulator, install on device via QR code, and submit to the App Store without leaving RorkSPLIT — Regular Rork generates cross-platform apps with React Native and Expo. Reach for it to ship broadly and fast, and for Max when you need Apple-specific depthCREDIT — The free tier works out to roughly five prompts a week. It helps to budget the cost of trying something separately from the cost of finishing itPRICE — Rork Max sits on the $200/month Max plan, while regular Rork starts free with paid plans from $25/month
Articles/Business
Business/2026-06-13Advanced

Getting to the Real Revenue Number — A Pipeline that Reconciles AdMob, App Store, Google Play, and Stripe

Dashboard revenue and the money that actually lands in your account do not match. Here is an aggregation pipeline that absorbs currency, timezone, and the gap between estimated and finalized figures across four revenue sources — with the implementation and operating judgment from running six apps.

revenue opsAdMob70App Store Connect11Stripe17data design

Premium Article

One month AdMob's dashboard showed a 12% gain over the prior month, yet the actual payout was flat. I suspected a bug at first, but the cause was simple: the dashboard's "estimated revenue" and the finalized payout are different things. The moment FX settles, post-hoc invalid-traffic adjustments, reaching the payment threshold — several factors make the number on screen diverge from the number in the bank.

Running six apps as an indie developer, revenue arrives from four sources: AdMob, App Store, Google Play, and Stripe. Each has its own currency, its own timezone, its own notion of "estimated versus finalized." Add them up naively and the numbers stop matching somewhere every month. Here is the aggregation pipeline I built to reach the real number by reconciling all four — with the normalization schema, the daily aggregation, and the monthly balancing routine.

Why the numbers diverge — the character of each source

Before designing reconciliation, I had to understand how each of the four sources lies.

AdMob's screen shows estimated revenue. Invalid-traffic deductions and FX settlement pull the month-end finalized figure down by a few percent. In my own records, the gap between estimate and finalized stayed roughly in the 2–6% range. App Store Connect and Google Play have three layers that each differ: the on-screen "sales," the finalized figure in financial reports, and the actual payout net of fees. Stripe is comparatively honest, but refunds and chargebacks arrive later as negatives, so you have to keep occurrence date and settlement date separate or things stop matching across month boundaries.

In other words, no source tells you unambiguously "how much you earned right now." I decided from the start that the foundation of the design is keeping estimated and finalized as separate columns.

A normalization schema — reshape everything into one form

The four data formats are all different, so I normalize them into a common shape first. The schema I use is this.

CREATE TABLE revenue_events (
  app_id        TEXT NOT NULL,        -- one of the six
  source        TEXT NOT NULL,        -- admob / appstore / googleplay / stripe
  kind          TEXT NOT NULL,        -- ad / iap / subscription / refund
  occurred_on   DATE NOT NULL,        -- occurrence date (unified to UTC)
  amount_minor  INTEGER NOT NULL,     -- minor currency units (1 = 1 yen, or 1 cent)
  currency      TEXT NOT NULL,        -- JPY / USD etc.
  status        TEXT NOT NULL,        -- estimated / finalized
  fx_to_jpy     REAL,                 -- FX rate at finalization (NULL allowed for estimated)
  PRIMARY KEY (app_id, source, kind, occurred_on, status)
);

Three things matter. Storing amounts as integers in minor currency units (amount_minor) instead of floats prevents rounding error from accumulating. The status field cleanly separates estimated from finalized, and the primary key prevents duplicate rows for the same day and source. And the FX rate is saved as "the rate at finalization" in fx_to_jpy, not "the rate at aggregation time," so past numbers do not shift when you re-aggregate later.

If you convert currency at the aggregation-time rate by accident, the number you saw at the start of the month differs from the one at the end, and the dashboard becomes untrustworthy. I learned that the hard way once.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
Why estimates and finalized payouts diverge, broken down per source, and how to reconcile them
A normalization schema that absorbs currency, timezone, and refunds, plus a daily aggregation skeleton
A monthly routine that balances payouts against the books instead of trusting the dashboard at face value
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Business2026-03-25
Five Automation Engines That Keep a Rork App Earning
Subscription retention, ad optimization, dynamic pricing, automated support, and a review-driven improvement loop — five pipelines that take the revenue side of a Rork app off your hands, with the design and the code.
Business2026-07-19
Handing Over an App — What an App Store Transfer Carries, and What You Rebuild
A practical look at App Store Connect app transfers when selling or moving an app: the eligibility criteria, what carries over (ratings, subscribers, iCloud data), what you rebuild (TestFlight, APNs, merchant IDs), and the three places users actually feel the change.
Business2026-07-05
When Your AdMob Earnings Suddenly Get Deducted: Preventing Invalid Traffic as a Solo Developer
Invalid traffic deductions in AdMob are unsettling because the cause is rarely obvious. From the perspective of running several apps solo, here is a minimal setup that prevents the most common accidents, plus how to respond when a deduction actually happens.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →