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.
- ~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.
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.
From a pilot to a partnership.
- pilotA 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.
- feedbackFacts, 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.
- agreementLong-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.
- todayA strategic system
Calibra took over most routine tasks. The client now sees the agency as a technology company too.
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.
Have an idea, or a product that needs to grow?
Book 30 minutes with Yevhenii. Bring the hard part.