Contextual targeting
Definition
Choosing ads based on the content of the page rather than data about the individual user.
Why it matters if you sell your own ads
Contextual is having a renaissance as third-party cookies decline, and it is the natural strength of a niche publisher. Your whole site is context an advertiser wants.
How contextual targeting works
The ad server looks at signals from the page itself: its words, its category, the section of the site it sits in. It then prefers ads that match. A review of a hardware wallet shows an ad for a hardware wallet. A recipe page shows an ad for a cookware brand. Nothing about the reader is needed to make that choice, only the page they are on.
The signals come in three common forms:
- Keywords. Words passed with the ad request or read from the page, matched against keywords an advertiser has chosen.
- Categories. The page or the whole site is placed in a topic, such as personal finance or gaming, and advertisers buy the topic.
- Placement. The advertiser buys a named slot in a named section, because they already know what that section is about. On a niche site this is the simplest form of all.
Contextual versus behavioural targeting
Behavioural targeting follows the person. It builds a profile from the sites someone has visited, usually through cookies or device identifiers, and shows ads based on that history wherever they go next. Contextual targeting follows the page. Everyone reading the same article is shown the same kind of ad.
Each has a weakness. Behavioural targeting depends on tracking that browsers keep restricting: Safari has blocked third-party cookies by default since 2020, and Firefox has walled each site's cookies off from every other site by default since 2022. Contextual targeting only knows what the page is about, so crude keyword matching can go wrong, such as an airline ad beside a report about a crash. That is why category rules and human approval still matter.
Why it suits a site that sells its own ads
A niche site is already a context. An advertiser who buys a placement on a site about fly fishing is buying contextual targeting whether anyone calls it that or not, and they are buying it across the whole audience. That is the strongest argument a small publisher has: a network sells your reader as one anonymous impression among millions, while you sell them as the readers of a site about the exact thing the advertiser makes.
Contextual targeting inside the site is the next step. Sections with different readers become separate placements with different buyers: the reviews section sells to manufacturers, the news to services, the beginners' guides to courses and starter kits.
How to sell it
- Make each section with a distinct audience its own placement, so it can carry its own floor price.
- Describe each placement by what readers are doing there, not by traffic alone. "Readers comparing wallets before they buy" is a promise an advertiser can price.
- Price contextual placements above your run-of-site slots. Start from what the slot earns today and add a premium you are prepared to test.
- Keep approval on. Context is only a promise if you decide which ads appear beside which pages.
How Pyrobid handles it
Your ad tag can pass the page's keywords with each request. Campaigns carrying a matching keyword are weighted heavily for that slot, so the relevant advertiser is far more likely to be picked while other eligible campaigns can still serve. Placements can carry allowed categories, so an advertiser in a category you have not approved for a slot never competes for it, and campaigns can include or exclude particular domains. Every ad still waits for your approval before it runs.
Common questions
Is contextual targeting the same as keyword targeting?
Keyword targeting is one kind of contextual targeting. Contextual targeting also covers topics and categories, and on a niche site the placement itself.
Does contextual targeting need cookies?
The targeting decision uses the page, not a profile of the reader, so it does not depend on third-party cookies. Other parts of an ad setup may still store data in the browser, so check what your own tags do and what your readers' countries require.
Does it work on a small site?
Yes. A small site with a clear subject is a single strong context, which is exactly what an advertiser in that subject wants to buy.
Related terms
Put a floor price on your own inventory
Your advertisers sign up on your own branded portal, fund an account and bid above your floor. You keep one hundred percent, and your existing ads stay on as the fallback.
Start free trial14 days free. Your existing ads keep running. Cancel anytime.