Step 1: ingest
The loop starts by pulling the latest performance and revenue data — impressions, clicks, conversions, and the real order value flowing back from your store or CRM. Fresh data in, every hour.
Step 2: predict
The model updates its estimate of the value behind each keyword, audience, and placement. Conversions that landed in the last hour sharpen the forecast; segments that went quiet get discounted.
Step 3: decide and act
Then it acts only where the expected gain clears a threshold — raising a budget that is leaving conversions on the table, lowering a CPC ceiling that is overpaying, pausing a keyword below target, or shipping a new ad variant to test. Marginal changes are skipped to avoid churn.
Step 4: log
Every action is written to the audit trail with the reason behind it, and every action is reversible. Then the loop sleeps until the next hour — around the clock, on every campaign you give it.