Custom Bidding Models for Your Ad Campaigns
Manual bid management in Google Ads / Meta Ads with 10,000+ keywords often leads to suboptimal CPA. Platform algorithms optimize for their own goals (maximize clicks/impressions) that may diverge from your KPIs. We build custom ML bid optimizers that directly target ROAS, CPA, or LTV. The architecture below has been refined on 15+ projects with budgets starting at $30K/month. For a $100,000 monthly budget, a 15% ROAS improvement yields $15,000 additional profit. In one project, we reduced CPA from $50 to $32 – a saving of $18 per conversion, totaling $36,000 savings per month at 2000 conversions. On average, clients achieve a 20% reduction in CPA, saving about $20,000 monthly on a $100k ad spend.
Why a Custom Bidder?
Google's default bidding uses signals like user search history – unavailable via API. A bespoke bidding solution wins when your attribution is more complex than last-click (LTV, touch-attribution); business metric is not conversion but, e.g., deposit amount; budget > $50K/month – even a 5% ROAS improvement yields $2.5K/month. On niche audiences, our proprietary model predicts conversions roughly twice as accurately as standard algorithms.
How We Build the ML Model for Bidding
Data Pipeline: Daily import from Google Ads API / Meta Marketing API: impressions, clicks, conversions, costs – broken down by campaign, ad group, keyword, device, hour, audience. In parallel – your own data: LTV, lifetime ARPU. Feature store on ClickHouse with versioning.
Bidding Model: We use gradient boosted trees (XGBoost/LightGBM) or neural networks for non-linear dependencies. Target: P(conversion) considering auction time features. Inference via Triton Inference Server on GPU, p99 latency below 50 ms. The system handles over 10,000 keywords per campaign with ease.
Optimal bid formula:
bid = target_CPA * predicted_CVR * bid_boost_factor
# where bid_boost_factor > 1.0 for new keywords (exploration)
We employ multi-armed bandit algorithms (Thompson sampling) for cold start and rare keywords, operating at keyword + match type level. According to Wikipedia, multi-armed bandit approaches have proven effective in uncertainty scenarios.
Automated Execution: Through Google Ads API (mutate operations) or Meta Ads API – updates every 6 hours. Fallback to bid_multiplier when API is unavailable.
How Accurate Is a Custom Bidder vs Smart Bidding?
| Criterion |
Custom bidder |
Smart Bidding |
| Optimization goal |
Any business metric |
Conversions / Conversion value |
| Signals |
Limited to API |
Full Google context |
| Flexibility |
Full (formulas, weights) |
Only presets |
| MLOps required |
Yes |
No |
| Typical ROAS lift |
+10–25% on niches |
Baseline |
In one case, our tailored optimization algorithm achieved 2x more accurate conversion predictions compared to Google's automated bidding for a niche audience.
ML Model Comparison: GBT vs Neural Network
| Parameter |
Gradient Boosted Trees |
Neural Network |
| Interpretability |
High (SHAP, feature importance) |
Low (unless explainable methods) |
| Sparse data handling |
Excellent |
Needs embeddings |
| Inference performance |
<10 ms on CPU |
<50 ms on GPU |
| Typical ROAS lift |
+10–15% |
+15–25% with sufficient data |
Risks and How to Avoid Them
The main risk is metric degradation during the cold start phase due to exploration. We use bandit algorithms to balance exploration and exploitation. MLOps infrastructure is also required for drift monitoring and automatic retraining. According to Wikipedia, multi-armed bandit approaches have proven effective in uncertainty scenarios. With over 10 years of experience, we guarantee a minimum 10% ROAS improvement or we refine the model at no extra cost.
Limitations and Realism
A custom bidder is not a replacement for default bidding for 80% of advertisers. It is needed by those with specific KPIs and sufficient budget. We honestly evaluate potential through backtesting before launch. Request a backtest for your data to assess potential lift.
Process of Work
- Analysis – audit current metrics, data quality, identify bottlenecks (2–3 days).
- Prototype – quick model on historical data, backtest, lift forecast (1–2 weeks).
- Integration – deploy pipeline, isolate traffic in A/B test (2–3 weeks).
- Launch – gradual ramp-up with drift monitoring, auto-rollback (1 week).
- Optimization – retrain, add features, tune (ongoing).
What's Included
- Architecture and model documentation (model card);
- Docker images for inference, Kubernetes manifests;
- Monitoring (Prometheus + Grafana dashboards);
- Training your team on the system;
- 3 months of technical support after launch, including guaranteed uptime.
Timeline: 5–8 weeks to first production campaign. Cost is calculated based on your data volume and funnel complexity. Contact us for a data analysis and lift forecast.
Our experience: 10+ years in AI and ad tech, 50+ ML pipelines deployed in production. We have been using multi-armed bandits in production for many years. Our track record speaks for itself.
Get a consultation and lift forecast in 2 days.
We provided AI consulting services for a retailer with 5 million customers: after data cleaning, only 14 months and 60k records were usable. The business task “churn prediction” required narrowing down to the B2B segment with clear indicators (login reduction >40%, skipping two key features, payment delay). Without such decomposition, the model would have learned on proxy features and shown zero lift in an A/B test.
How to prioritize AI use cases for maximum ROI?
Why ML Projects Fail at the Start
Incorrectly formulated problem. “We want to predict churn” is not an ML task. You need an answer: which segment, what thresholds, what success metric. Without this, the model fails in production.
Overestimation of data. “We have five years of data” — after audit: the schema changed three times, 30% of records lack a key attribute. Usable dataset: 14 months, 60k records with missing target values. Plan changes: instead of deep learning, gradient boosting with careful feature engineering.
Missing baseline is the most common mistake. Before launching ML, we measure the current result without a model. If an analyst manually achieves precision 0.68 and the model gets 0.71, six months of development often isn’t worth it. Gartner research shows that ML projects without preliminary data audit waste up to 70% of the budget. Gradient boosting on tabular data typically delivers a 1.2–1.5x lift over a heuristic baseline at 1/10 the compute cost of deep learning.
How We Conduct AI Audit: Stages and Checklist
| Stage |
Duration |
Key Artifact |
| Data audit |
1–2 weeks |
Data quality report (missing data, drift, leaks) |
| Process mapping |
1 week |
AS-IS / TO-BE diagram with ML integration points |
| Feasibility scoring |
1 week |
Prioritized backlog of use cases with risks |
-
Data audit — check completeness, label correctness, temporal drift, target leaks during joins. Tools:
ydata-profiling, great_expectations, SQL in PostgreSQL.
-
Process mapping — document the business process AS-IS and TO-BE with specific points where ML will bring speed, error reduction, or automation.
-
Feasibility scoring — matrix: data volume × label quality × business value × technical complexity. Result: prioritized backlog.
AI Audit Checklist (Retail Example)
- Data leaks from future joins?
- Feature stationarity over time?
- Missing values in target documented?
- Baseline (human/heuristic) defined?
- A/B test of MVP against baseline conducted?
ROI: Realistic Calculation
Three components of ML project ROI:
Direct savings. Replacement of operators: 3 people × $45,000 annual salary = $135,000 saved before infrastructure costs.
Decision quality. Increased precision of fraud detection — fewer false positives, less customer churn. A false positive costs $50 per incident; the model reduces them from 200 to 50 per month, saving $90,000 per quarter.
Speed. Scoring an application from 48 hours to 2 minutes — conversion increase equivalent to additional $240,000 in revenue per year.
Honest ROI includes development cost, GPU inference cost, storage, support (30–40% of development per year), and monitoring. Models degrade — budget for retraining is mandatory. For a typical mid-size retailer, the break-even occurs within 6–9 months after pilot deployment. Schedule a free data readiness assessment to get a custom ROI projection.
When to Use LLM Instead of Classic ML?
LLM is needed for unstructured text, generation, dialogue. For tabular data, XGBoost, LightGBM, CatBoost win in quality, interpretability, and inference cost (on a CPU instance for a low monthly fee). Similarly: RAG vs. fine-tuning. If knowledge is static and structured, RAG via LlamaIndex with pgvector is cheaper and easier to maintain. For a unique response style, fine-tuning with PEFT/LoRA. Inference cost of a fine-tuned 7B model on a T4 GPU is roughly 8x cheaper than a GPT-4 call per token.
What the Roadmap Looks Like: From Pilot to Product
| Horizon |
Focus |
Key Artifacts |
| 0–3 months |
1–2 Quick wins: MVP with baseline, shadow deployment |
Comparison report: ML vs human |
| 3–12 months |
MLOps: feature store, CI/CD, drift monitoring |
Model registry in MLflow, evidently dashboard |
| 12+ months |
Automate retraining, scale to new domains |
Continuous learning pipelines |
What is Included in Deliverables
-
Analytics: Data audit report, AS-IS/TO-BE process map, feasibility matrix with backlog.
-
Strategy: 12–18 month roadmap, priorities by ROI and risk.
-
Pilot: MVP model with baseline, shadow deployment, comparative A/B test.
-
Documentation: Model card, API specification, monitoring plan.
-
Team training: Workshop on MLOps and result interpretation.
-
Support: Pilot support for 2–4 months, strategy adjustment.
Timeline for consulting project: AI audit — 2–4 weeks, strategy development — 3–6 weeks, pilot support — 2–4 months. Exact timing depends on data maturity and availability of key stakeholders.
For over 7 years, we have completed 40+ AI consulting projects for retail, fintech, and logistics. We have certified architects for AWS SageMaker and GCP Vertex AI — ensuring quality architecture and data security. Contact us — we will conduct an express audit in two weeks and show the real AI potential for your business. Request a consultation to get a detailed implementation plan and an accurate budget estimate.