Maximilian Kil

MarTech consultingArticle 01 of 02

Internal bidding and custom bidding: in-house bidding logic from the data warehouse

Email: maximilian@kil.dePhone: +49 40 226 33 911

Internal bidding means that a company calculates bids, targets or conversion values on its own data, using its own logic, and writes them to its ad accounts through APIs; the ad platform then executes them. It is also known as custom bidding, in-house bidding or proprietary bid management. The calculation happens in the data warehouse, where margins, returns and inventory are held; the Google Ads API and the Meta Marketing API carry the results across. I am Maximilian Kil, an interim CMO based in Hamburg, and I build systems like this as an interim project lead or consultant, together with your data and performance teams.

, Interim CMO, Hamburg Updated

What internal bidding means

Internal bidding is not a product but a division of labour. The company decides, as part of its marketing steering, what an order, a campaign or a click is worth; the platform decides how much to bid in each individual auction. In-house bidding logic works with data that Google and Meta cannot see: purchase prices, returns, customer history.

Three closely related terms are worth distinguishing. Smart Bidding, Google's family of automated bid strategies, calculates the bid for each auction; in-house logic usually does not replace it but feeds it the right value and the right target. Third-party bid management software manages bids across many accounts and channels, using logic owned by the vendor. In-housing means bringing campaign management from the agency into the company's own team. In-housing settles who runs the accounts; in-house bidding settles who calculates the values.

The fundamentals, such as what a click is worth, are on the bid management page. This page is about building it.

Custom bidding: the same idea under a different product name

Custom bidding usually means the same as internal bidding: an advertiser's own bidding logic. At Google, it is also the name of a feature in Display & Video 360, the platform for buying display and video advertising programmatically, where advertisers can set up their own rule-based or script-based bidding algorithm. Neither Google Ads (Search, Shopping and Performance Max) nor Meta has a feature of that name; there, your own logic works through value, target and bid. The principle stays the same: the valuation comes from the company, the auction from the platform.

Why build your own bidding logic: margin, returns, customer lifetime value, inventory

The platform optimises for what it is told, usually revenue at the moment of the order. What a company actually wants to steer, however, is contribution margin after returns and discounts, the expected value of a new customer, and stock levels and sell-through as a goal for seasonal goods or clearance lines. The platform sees at most parts of this, such as availability in the feed.

Take two orders that each bring in €100 in revenue. The first leaves €30 in contribution margin after purchase price, shipping and expected returns; the second leaves €10, because half the goods come back. With revenue as the value, the platform treats both the same. With a value based on contribution margin, the first is worth three times as much, and bids and budget follow it. More on this in contribution margin instead of ROAS and What is a click worth?

Four forms of internal bidding

The forms follow the three levels of value, target and bid, ordered by depth of intervention: the deeper you go, the more control you have and the more maintenance you take on.

1. Value signal per order

A custom conversion value per order, sent server-side, such as an index combining contribution margin after expected returns with the incremental share, plus a premium for repeat purchases. At Google this runs through offline conversion import; if the value changes, the conversion is adjusted retrospectively, either with a new value (restatement) or by withdrawing it (retraction). Smart Bidding then bids on this with target ROAS or Maximize conversion value, which Google calls value-based bidding. The auction signals are preserved.

2. Targets and budgets per group

Target ROAS, budget or bid cap per campaign or portfolio bid strategy, calculated from margin per product category, stock cover or season and set through the Google Ads API at a fixed frequency. Groups with the same target are created using custom labels in the Merchant Center product feed, such as margin tier or sell-through status.

3. Custom bids per unit

Bids per keyword or product group derived from the value per click and written individually through the API for each traffic unit. This works only where manual bidding is available, such as in Search and Standard Shopping, not in Performance Max. Tight control, but without the auction signals.

4. Hybrid

Value signals everywhere, targets per group, custom bids only for special cases such as brand search or a hard cap. This is usually the target state.

At Meta: Conversions API and Meta Marketing API

The value signal travels through the Conversions API, Meta's server-side API for conversions; bidding aims for the highest value or a ROAS goal. A job sets cost goals, bid caps and budgets through the Meta Marketing API.

Without a dedicated data route, Google offers blunter levers: conversion value rules and the customer lifecycle goal in “new customer value” mode. Conversions with cart data use the cost of goods from Merchant Center to show gross profit; Google introduced bidding on this profit in 2024 as a beta for Performance Max and Standard Shopping. Returns, your own customer lifetime value and inventory are not reflected in it.

From the data warehouse through the Google Ads API into the ad accounts

Technically, internal bidding is a closed loop. The data warehouse, the company's central database, receives orders carrying order ID and click ID (the GCLID at Google) from the shop, purchase prices, returns and inventory from the ERP system, customer status from the CRM and feed data from the product master. Common data warehouses include Snowflake, Google BigQuery, Amazon Redshift, Databricks and Microsoft Fabric; the architecture is the same for all of them. The tools and APIs I have worked with are listed in the tools overview.

The bidding logic runs in the data warehouse, first as rules and later as models, with every version tracked. It fills three tables: value per order, target per group, bid per unit. The route out into the ad accounts is called reverse ETL: the reverse of the usual pipeline (ETL) that brings data into the data warehouse. A write job checks the values against caps and plausibility rules and passes them to the APIs. At Google, targets, budgets and bids go through the Google Ads API, and conversion values through the Data Manager API, which Google designates as the primary route for offline conversion import (as of November 2026). At Meta, values go through the Conversions API, and targets and budgets through the Meta Marketing API.

Costs, clicks and conversions flow back into the data warehouse daily through reporting APIs or connectors. There they are reconciled with finance and a control group, and the rules are adjusted. Identifiers hold the loop together: order ID, click ID, campaign ID and a product ID that is identical in the shop, the feed and the data warehouse. The same mechanism underpins the in-house count in marketing attribution.

In internal bidding, the company calculates values, targets and bids in its own data warehouse, the platform executes them, and the results come back for review.

Inputs: shop (orders with order ID and click ID); ERP (purchase prices, returns, inventory); CRM (customer status, customer lifetime value); product data (feed). Stations clockwise: 1 Data warehouse: for example Snowflake or BigQuery: all data in one place. 2 Bidding logic: rules first, models later: value per order, target per group, bid per unit. 3 APIs: Google Ads API and Data Manager API, Meta Marketing API and Conversions API; with caps and plausibility checks. 4 Ad platform: Smart Bidding bids on the value; custom bids only where manual bidding is available. 5 Measurement feedback: costs, clicks and conversions back into the data warehouse; reconciliation with finance and control group. Arrow from 2 to 3: Reverse ETL. Arrow from 5 back to 1, dashed: adjust rules. Beside the bidding logic: stays in-house: margin in euros, calculation method, customer data in plain text.2Bidding logicrules first, models later:value per order, target pergroup, bid per unitStays in-housemargin in euros,calculation method,customer data in plain text1Data warehousefor example Snowflakeor BigQuery: all datain one place3APIsGoogle Ads API andData Manager API,Meta Marketing APIand Conversions API;with caps andplausibility checks5Measurement feedbackcosts, clicks andconversions backinto the data warehouse;reconciliation with financeand control group4Ad platformSmart Bidding bidson the value; custombids only wheremanual biddingis availableReverse ETLAdjust rulesShoporders withorder ID andclick IDERPpurchase prices,returns, inventoryCRMcustomer status,customer lifetime valueProduct datafeedInputs: shop (orders with order ID and click ID); ERP (purchase prices, returns, inventory); CRM (customer status, customer lifetime value); product data (feed). Stations clockwise: 1 Data warehouse: for example Snowflake or BigQuery: all data in one place. 2 Bidding logic: rules first, models later: value per order, target per group, bid per unit. 3 APIs: Google Ads API and Data Manager API, Meta Marketing API and Conversions API; with caps and plausibility checks. 4 Ad platform: Smart Bidding bids on the value; custom bids only where manual bidding is available. 5 Measurement feedback: costs, clicks and conversions back into the data warehouse; reconciliation with finance and control group. Arrow from 2 to 3: Reverse ETL. Arrow from 5 back to 1, dashed: adjust rules. Beside the bidding logic: stays in-house: margin in euros, calculation method, customer data in plain text.Shoporders withorder ID andclick IDERPpurchase prices, returns,inventoryCRMcustomer status,customer lifetime valueProduct datafeed1Data warehousefor example Snowflake or BigQuery: all data inone place2Bidding logicrules first, models later: value per order,target per group, bid per unitStays in-housemargin in euros,calculation method,customer data inplain text3APIsGoogle Ads API and Data Manager API, MetaMarketing API and Conversions API; withcaps and plausibility checksReverse ETL4Ad platformSmart Bidding bids on the value; custombids only where manual bidding is available5Measurement feedbackcosts, clicks and conversions back into the datawarehouse; reconciliation with finance andcontrol groupAdjust rules
Schematic, no client data. Platform features as of November 2026.

Limits: Performance Max, learning phases, API access, consent

Performance Max

Performance Max does not accept bids per product or search term. Custom logic works there through value signals, target values, budgets and feed segments, alongside conversion goals, audience signals, search themes and exclusions. How to audit this campaign type and keep it in check is explained on the Performance Max page.

Learning phases

Smart Bidding relearns after major changes. Changing targets every day keeps a campaign permanently in learning, so targets are changed in steps.

Late returns

Returns arrive weeks after the purchase. The value is estimated at the time of the order and corrected later, but only within the windows the platform sets for conversion adjustments.

Data latency

Smart Bidding learns from the values that arrive on time. A value sent days later affects bids only days later. Values therefore go out at least daily, and the estimate at the time of the order has to be good enough to keep the later correction small.

Fallback

If a job fails or a source delivers no data, the system writes nothing rather than zeros or partial values; the last validated targets, budgets and bids remain in force in the accounts, and missing conversion values are sent later. If incorrect values have already been live for a period, that period can be marked as a data exclusion in Google Ads. Every write operation is logged with its old and new value so that it can be reversed.

API access and maintenance

Access to the Google Ads API depends on a Google Cloud project and its access level; below the highest level, a daily operations quota applies (as of November 2026). New major versions appear several times a year, and older ones are switched off. Running the system is an ongoing task.

Consent and data protection

Values and identifiers go out only for users who have given consent, and hashed customer data only with a legal basis. Margin leaves the company only as an index, never in euros.

Impact shows only in comparison

A campaign experiment or a geo-based comparison, with a success metric defined in advance, shows whether your own logic delivers more; see incrementality testing.

Common mistakes when building in-house bid management

  • Automating before the rules have proved themselves in manual use.
  • Reporting revenue before returns as the value.
  • Changing targets every day.
  • Putting two optimisers on the same units, such as Smart Bidding and custom bids.
  • Writing without caps, plausibility checks and a kill switch, so that one data error reaches every account.
  • Changing the scale of the values without adjusting target ROAS.
  • Missing an API version change, so that the job silently fails.
  • Overlooking the gap left by users who have not given consent.

Roles in the project: what I am responsible for as an internal bidding consultant

In-house bidding logic touches four departments: marketing wants to steer, finance defines contribution margin, data engineering builds the pipelines and IT runs the jobs. That calls for an internal bidding specialist who understands all four sides. I act as business lead: setting the target metric and rules, writing the requirements, signing off the result against the shop and finance, and handing over to operations. Implementation lies with your team or an external service provider. If the performance team currently has no head, I can also step into that role as Interim VP Performance Marketing. I work for a fee, have no stake in any media volume and sell neither advertising services nor software. I describe my overall approach under profit-driven marketing.

Roles in the project: what I am responsible for as an internal bidding consultant
Role Task Result
Business lead (my role) Target metric, rules, requirements Requirements specification, sign-off
Finance, financial control Defining contribution margin Agreed values
Data engineering Data pipelines, calculation logic Output tables
Analytics, BI Returns forecasting, customer lifetime value Estimates, measurement
Development, IT Write jobs, monitoring Stable operation
Performance team or agency Account structure, campaigns, feed Groups with the same target
Data protection Consent, contracts Approval

Process: manual rules first, then automation

This principle applies in bid management just as it does when building your own logic.

1. Assessment

Review the target metric, data situation, account structure and measurement quality; these determine which form to build.

2. Manual rules

Set values and targets by hand at a fixed frequency until it is clear which rules hold up.

3. Connect the value signal

Send the value per order and reconcile it with the shop and finance.

4. Test with a control group

Define the success metric and stopping threshold in advance, then test.

5. Automate

Proven rules run as jobs with monitoring, caps and a kill switch.

6. Expand and hand over

Connect further markets and channels, then hand over operations with documentation, named owners and a runbook.

Buying software or building your own bidding logic

Your own logic pays off where your own data changes the ranking of bids; software pays off where many accounts, channels and markets need to be managed consistently. In-house logic adds little when margins and returns are similar across the product range, or when so few orders pass through the accounts that Smart Bidding can hardly learn finer values; in that case the platform's built-in tools are enough.

Before the platforms began bidding automatically themselves, bid management was the domain of specialist software vendors. I worked with Efficient Frontier, a bid management platform of that generation (acquired by Adobe in 2012, now part of Adobe Advertising). Today the platform calculates the bid, and the real levers are the value signal and the targets. For managing many accounts there are platforms such as Search Ads 360, Skai (formerly Kenshoo) and Adobe Advertising. Even purchased software needs your own values. I was responsible for a proprietary steering model at Rebelle (now part of Vinted): a score-based Shopping model with a campaign algorithm for an inventory of one-off items.

Frequently asked questions

What is internal bidding?

Internal bidding means that a company calculates bids, targets or conversion values on its own data, using its own logic, and writes them to its ad accounts through APIs; the ad platform then executes them. The calculation usually happens in the data warehouse, using margin, returns, customer lifetime value and inventory.

Are custom bidding and in-house bidding the same as internal bidding?

Custom bidding, in-house bidding and internal bidding all mean the same thing in the sense of an advertiser's own bidding logic. At Google, custom bidding is also the name of a feature in Display & Video 360. In Google Ads and at Meta, your own logic works through values, targets and bids.

What is the difference between internal bidding and Smart Bidding?

Internal bidding and Smart Bidding complement each other. The company calculates value and target; Smart Bidding bids on them in each individual auction, using signals only the platform has. When custom bids should replace automated bidding is explained on the bid management page.

Does internal bidding work with Performance Max?

Internal bidding works with Performance Max through value signals, target values, budgets and feed segments. Performance Max does not accept bids per product or search term; those remain possible in Search and Standard Shopping.

What data does in-house bidding logic need?

In-house bidding logic needs orders with order ID and click ID, purchase prices, returns, customer status, inventory and ad spend per campaign. Product ID and click ID must be identical in the shop, the feed and the data warehouse.

How does Maximilian Kil help as an internal bidding expert when building in-house bidding logic?

When you build in-house bidding logic, I take the lead as a consultant, freelancer or interim project lead for internal bidding. I am responsible for goals, rules and sign-off; implementation lies with your data engineering and IT teams. I work for a fee, with no stake in media volume or software.

Next step

What does your account optimise for today: revenue at the time of the order, or contribution margin after returns? If it is revenue, that is where the first lever lies, even before any automation. I lead the build of in-house bidding logic on an interim mandate or support your team as an internal bidding consultant; the Profit Check shows where you stand before you start.

Email: maximilian@kil.dePhone: +49 40 226 33 911