A back office that takes routine work off an agency.

How a pilot module for ad statistics grew into a long-term partnership: one view for every ad account, cost and revenue sync with the tracker, and rules that stop losing ads on their own.

~/cases/calibrainternal tool
client: marketing agency, CPA leads
service: agile development
product: BPMS for the whole company
stage: pilot → long-term partnership
stack: MySQL, Binom, ad platform APIs
~30 min
after hours, losing ads stop on their own instead of running till morning
≤ 1 min
delay when syncing costs and revenue with the marketing tracker
10–20
concurrent API threads the sync needed for headroom, where the tracker failed at two
4
levels of statistics, from ad account to a single ad

Reports by hand, and ads that kept spending.

The client runs a marketing agency that brings its customers leads on the CPA model: customers pay for a user's action, such as a sign-up. To get there, the agency buys traffic on platforms like Google Ads, Microsoft Ads and Facebook Ads, then sets up landings, analytics and tracking for every offer.

Much of the working day went on routine: managing landings, building reports, handling payment accounts. Customers had several ad accounts on one platform, so a monthly report meant opening each account, downloading its statistics and joining them into one table.

When a new creative or audience didn't work, someone had to notice and stop it. After the working day ended, a losing ad kept spending until the next morning.

One back office between the platforms and the tracker.

Statistics come in from the ad platforms, the tracker adds revenue, and rules act on the ads. Dozens of modules in all; here are the main ones.

~/calibra/architecture
ad-platforms/Google Ads, Microsoft Ads, Facebook Ads and others: statistics in, ads switched on and off from Calibra.
calibra/One statistics view from ad account down to a single ad, with filters that stay as you switch tabs.
binom/The marketing tracker. Costs go in and revenue comes back, with no more than a minute of delay.
autorules/Presets that stop, restart or raise the budget of ads by ROI, spend and revenue, with every action logged.

Where the engineering went.

A tracker that couldn't take the load

Binom returned errors with just two concurrent API clients. The sync needed five, and 10–20 to have room. Its MySQL locks crashed the database under parallel calls, and its support confirmed it.

Sending only what changed

We stored the time of the last sync for every value and sent it only when it had changed. When that wasn't enough, we moved Binom to a server tuned for MySQL, since it can't scale horizontally.

Rules that act on real money

Autorules stop, restart or raise the budget of ads over a chosen period, by formulas built on ROI, spend and revenue. A mistake there wastes the budget, so we spent much of the time on requirements and UI prototypes.

Currencies and time zones

In the pilot, ad accounts turned out to have different currencies and time zones. We added a main time zone, a currency switch and exchange rates for the day each cost happened.

// routine eating your team's day? that's a 30-minute conversation.book a call →

From a pilot to a partnership.

  1. pilot
    A statistics module

    Collecting and showing statistics for one ad platform across many accounts, with requirements and a budget agreed up front. Finished on the planned date.

  2. feedback
    Facts, not impressions

    The client judged the pilot on facts. Where requirements changed, such as currencies and column sets per user, we had already built the new version.

  3. agreement
    Long-term work

    We proposed a cooperation agreement, an architecture plan and two strategic goals: automate manual work as far as possible, and make sure the product can’t harm the client’s customers.

  4. today
    A strategic system

    Calibra took over most routine tasks. The client now sees the agency as a technology company too.

// what we took from it

Long-term products only work when we clearly understand the value we bring, and when there is trust from the first days. That is why we start long-term work with a pilot that brings real value.

next caseCowolas: an early healthcare product made easy to scale

Have an idea, or a product that needs to grow?

Book 30 minutes with Yevhenii. Bring the hard part.

~/next-step
$ book-call --with yevhenii --30min
→ no sales pitch
→ your problem, and how we'd approach it
→ an honest no if we're not the right team
→ NDA before details, if you need one