Quick answer
Programmatic advertising is the buying and selling of ad space through software instead of manual negotiation. An auction or pre-agreed deal decides who gets each slot as the page loads; the advertiser's result on its own site is measured separately.
Formula: CPM = spend ÷ impressions × 1,000; CPA = spend ÷ conversions
What is programmatic advertising?
Programmatic advertising is the buying and selling of ad space through software instead of through emails, phone calls and signed insertion orders. A publisher's ad slot is offered to buyers automatically, an auction or a pre-agreed deal decides who gets it, and the ad is chosen while the page or app screen loads.
"Programmatic" describes the transaction, not the channel. The same method buys display banners, video, audio, connected TV and digital out-of-home screens. It is also not the same as "real-time bidding": real-time bidding is one way programmatic buying is done, in which each impression is auctioned as it appears. Other programmatic deals are fixed in advance and only delivered automatically.
What the advertiser pays for is an impression. What the advertiser wants is a result on their own site, which programmatic systems cannot see. That gap is why the measurement half of this topic lives in your analytics.
How does a programmatic ad get bought?
A simplified path for one impression:
- A person opens a page or app with an ad slot.
- The publisher's system (a supply-side platform) sends an ad request describing the slot, and information such as the page and device.
- The request goes to buyers, directly or through an ad exchange. IAB Tech Lab's OpenRTB specification defines an exchange as a service that conducts an auction among bidders per impression.
- Buyers' systems (see demand-side platform) decide whether to bid and how much.
- The winning ad is returned and displayed. Google's documentation says the whole process occurs in less than a second.
- The impression is counted, and later a click, view or conversion may be recorded.
Everything between steps 2 and 5 is invisible to your website. Your analytics script only runs if the person then clicks or visits.
What are the main ways to buy programmatically?
| Deal type | How the price and inventory are set | Typical reason to choose it |
|---|---|---|
| Open auction | Any eligible buyer bids per impression | Reach at flexible scale |
| Private auction (private marketplace) | Only buyers the publisher has approved can bid | More control over where ads run |
| Preferred deal | A fixed price negotiated with specific buyers, offered before the auction | Predictable price with some flexibility |
| Programmatic guaranteed | A fixed number of impressions the buyer commits to, at a fixed price and dates | Guaranteed placement and delivery |
The first two are auctions; the last two are negotiated deals that are executed by software, as Google's transaction-type documentation lays out. Which one you use changes cost and control, but not what you need to measure on your own site.
Which metrics belong to which system?
Programmatic reports and website analytics count different events, so split them by owner:
- Ad platform: impressions, clicks, click-through rate, CPM, cost per click, completed views.
- Your analytics: sessions that arrived, which source and campaign they carried, pages seen, bounce, conversions.
- Both, to be reconciled: clicks versus landing sessions, conversions each side credits.
Useful formulas: CPM = spend ÷ impressions × 1,000; CTR = clicks ÷ impressions; CPA = spend ÷ conversions. More KPI definitions are in KPIs for advertising.
A worked example: from impressions to cost per conversion
Sample data: a $12,000 programmatic display campaign with a $4 CPM.
| Step | Calculation | Result |
|---|---|---|
| Impressions | $12,000 ÷ $4 × 1,000 | 3,000,000 |
| Clicks at 0.10% CTR | 3,000,000 × 0.001 | 3,000 |
| Cost per click | $12,000 ÷ 3,000 | $4.00 |
| Landing sessions recorded | 2,400 (80% of clicks) | 2,400 |
| Sessions flagged as bots | 150 | 150 |
| Human sessions | 2,400 − 150 | 2,250 |
| Conversions | 60 | 60 |
| Conversion rate (human sessions) | 60 ÷ 2,250 | 2.67% |
| Cost per acquisition | $12,000 ÷ 60 | $200 |
| Return on ad spend at $120 per order | 60 × $120 ÷ $12,000 | 0.6 |
Three things to notice. First, 600 clicks never became recorded sessions: people closed the page, the page loaded too slowly, or the click was accidental or invalid. Second, if the bot sessions had stayed in the denominator, the conversion rate would read 2.5% (60 ÷ 2,400) instead of 2.67%: small here, large on campaigns with a lot of invalid traffic. Third, the campaign "wins" on cost per click and loses on return: $0.6 back per $1. Cheap impressions are not the goal; cost per outcome is.
How do programmatic, RTB, DSP and ad network relate?
These terms sit at different levels, which is why they are so often mixed up:
- Programmatic advertising is the whole idea: software handles the buying and selling.
- Real-time bidding is one transaction method inside it: each impression is auctioned as it appears.
- Demand-side platform is the buyer's system; a supply-side platform is the seller's. OpenRTB treats the first as bidders acting for advertisers and the second as suppliers of publisher inventory.
- Ad network is an older model that bundles many sites' ad space and sells it as one package.
A buyer can use more than one at once: an auction through a demand-side platform on Monday, a negotiated deal on Tuesday, a network package on Wednesday. Each reports its own numbers in its own way, so the tagging scheme on your landing pages is what holds the comparison together.
Common mistakes with programmatic advertising
- Optimizing to clicks. Click-through rate rewards accidental taps. Judge by conversions on the landing page.
- Trusting one report. The ad platform and your analytics should be reconciled each week, not at quarter end.
- Untagged traffic. Without UTM parameters, programmatic visits fall into direct or referral and cannot be separated.
- Ignoring where the ads ran. Open auctions include inventory you may not want to be near; deal types with more control cost more.
- Skipping the seller check. Publishers list who may sell their space in a public file (ads.txt), and buyers can verify it; unlisted sellers are a risk.
How to measure programmatic campaigns in TapCub
Take the $12,000 campaign above. TapCub does not buy, bid on or optimize programmatic ads; it measures the landing-page side.
- Tag every ad with the same UTM scheme.
utm_sourcefor the platform,utm_mediumfor the format,utm_campaignfor the campaign. Naming rules are in name UTM parameters. - Read the campaign in Sources. Web analytics › Sources › UTM shows visitors, sessions, pageviews, bounce and duration per campaign. Ad click IDs are kept as a separate table: type and hash only, never the raw ID. See track ad click IDs.
- Check the traffic is human. Web analytics › Bots lists recognised crawlers separately, so they do not inflate visitors or push down the conversion rate.
- Count conversions with a goal. Web analytics › Goals gives people-based conversions that you can compare with the platform's own figure.
- Import the spend. All-platform analytics › Business › Channel ROI accepts daily spend by channel, source or campaign and returns cost per click (spend ÷ sessions), cost per acquisition (spend ÷ purchases in orders) and return on ad spend.
For credit across several channels, select more than one model at once in Behavior analysis; see compare attribution models and UTM.
See also: What is an advertiser? Roles, what they pay for and the numbers they should calculate.
See also: What is an ad exchange? How a real-time ad auction works step by step.
See also: What is ad tech? The supply chain from advertiser to publisher, layer by layer.
Sources
- IAB Tech Lab, OpenRTB.
- Google Authorized Buyers Help, Introduction to real-time bidding (RTB).
- Google Ad Manager Help, Transaction types.
- IAB Tech Lab, ads.txt.
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Product Analyst
Focuses on event analysis, conversion funnels, and retention, using clear metric definitions and structured analysis to explain product performance.