Pharma Contextual Advertising: How to Build Contextual Segments That Work
How to build pharma contextual advertising segments: keyword vs semantic targeting, adjacent content, negative contexts, and testing against audiences.
The short answer
Pharma contextual advertising targets the content, not the person: pages and videos about a condition, its symptoms, treatment options, or the life around it. Good segments use semantic classification rather than raw keyword lists, include condition-adjacent topics for scale, and exclude negative contexts like lawsuits, recalls, and tragedy. Test them against audience targeting on the same outcome metric before deciding which deserves more budget.
Contextual targeting has moved from a fallback to a first choice for many DTC pharma plans. The reasons are mostly practical. State consumer health data laws make person-level condition data harder to use, platform health ad policies restrict some audience options, and contextual avoids most of those questions because it does not rely on data about the viewer. The catch is that a contextual segment is only as good as the way it is built, and lazy segments either run out of scale or end up next to the wrong stories.
What pharma contextual advertising is, and is not
Contextual targeting reads the page (text, metadata, sometimes images and video transcripts) and assigns it to categories. Your bid goes only to pages in the categories you chose. It is different from endemic buying, which picks publishers with a medical audience regardless of the individual page. A contextual segment can run on a general news site's health section, a recipe site's diabetes-friendly page, or a video about running with asthma. For the budget side of that distinction, see endemic vs. non-endemic media for pharma.
Contextual is not a privacy pass. You still need brand safety rules, MLR-approved creative, and platform policy compliance, and you still need to avoid building contextual segments from user browsing history (which would make it behavioral targeting under another name).
Keyword vs. semantic contextual targeting
| Approach | How it works | Strength | Weakness |
|---|---|---|---|
| Keyword lists | Matches pages containing specific words or phrases | Transparent, easy to audit and explain to MLR | Misses meaning: "psoriasis lawsuit" and "psoriasis treatment" look alike |
| Semantic classification | Models classify the overall topic and sentiment of a page | Better at separating helpful content from negative news | Harder to audit; vendor taxonomies differ |
| Prebuilt health categories | Vendor or IAB-style categories such as "skin conditions" | Fast to set up, decent scale | Often too broad for one condition |
| Custom semantic segments | Built from seed pages or descriptions you supply | Closest fit to the brand's condition and patient | Takes time to tune, needs review of sample URLs |
My default is a custom semantic segment, checked against a keyword list. The keyword list keeps the semantic model honest: pull a sample of matched URLs every week and see whether a human would call them on topic.
How to build contextual segments that work
- Start from the patient, not the drug. List what people with the condition read and watch: symptoms, diagnosis, treatment options, but also food, exercise, sleep, work, caregiving, and cost.
- Split into tiers. Tier 1 is direct condition content. Tier 2 is condition-adjacent content (related symptoms, lifestyle topics with a strong skew). Tier 3 is broad health and wellness. Price and measure them separately.
- Write the negative contexts. Lawsuits, recalls, adverse event stories about your brand or class, death and tragedy, misinformation, and content about competitor products if your policy excludes them.
- Review sample URLs. Ask the vendor for 100 to 200 matched URLs per tier before launch and read them.
- Check scale by condition. Rare conditions may have too little Tier 1 content to support a campaign. Plan to lean on Tier 2 or on endemic.
- Keep tiers in separate line items. Otherwise the DSP will pour budget into the cheapest tier.
Condition-adjacent content: where scale comes from
Pure condition content is limited. A migraine brand will find far more pages about screen fatigue, sleep, and hormone changes than pages about migraine itself. Adjacent content can be valuable, but it is also where segments drift. A page about general headaches might be useful for a migraine brand. A page about hangovers probably is not. Decide adjacency with someone who knows the patient, ideally with input from brand insights research, not by accepting every topic the vendor's model rates as related.
Negative contexts and brand safety
Health content has more bad neighbors than most categories. News about a drug class safety signal, a lawsuit advertisement page, or a story about a patient death can all mention your condition. Semantic tools help separate these, but a negative keyword list is still worth maintaining for your brand name, molecule name, class, and known issues. Be careful not to overblock. Blocking every page that mentions "cancer" or "death" will strip out most oncology content, including the content patients actually read. The brand safety and suitability for pharma article covers how to set those rules without losing scale.
Testing contextual vs. audience targeting
The question most brand teams want answered is whether contextual performs as well as condition audience data. The fair test runs both as separate line items with matched budgets, the same creative, the same frequency caps, and the same outcome measurement against a comparison group. Compare cost per incremental outcome. Click-through rate is a poor judge here because contextual placements and audience placements sit on different page types with different click behavior.
A hypothetical example: two line items each spend $100,000. The audience line item shows 600 attributed new patient starts and the contextual line item shows 400. After the holdout comparison, the incremental starts are 120 and 110. Cost per incremental start is about $833 for audience and about $909 for contextual. The gap is far smaller than the attributed numbers implied, and contextual comes with less data risk. The full comparison method is in contextual vs. audience targeting for DTC pharma.
Practical takeaway
Build three tiers for your condition (direct, adjacent, broad) plus a negative list, ask your vendor for 150 sample URLs per tier, and read them before launch. Then run Tier 1 and Tier 2 as separate line items next to your audience tactic, as described in the targeting options comparison, and judge them on cost per incremental outcome.
Frequently asked questions
What is pharmaceutical contextual targeting?
It is choosing ad placements based on the content of the page, article, or video rather than data about the person viewing it. For pharma, that usually means content about a condition, its symptoms, related lifestyle topics, or caregiving.
Is semantic contextual better than keyword contextual for pharma?
Usually, yes. Semantic tools classify the meaning of the whole page, so they can tell a treatment guide from a news story about a lawsuit, which keyword lists often cannot. Keyword lists are still useful as a transparent check on what the semantic segment is catching.
How do I test contextual against audience targeting?
Run them as separate line items with similar budgets, creative, and frequency, and measure both against the same outcome with a comparison group. Compare cost per incremental outcome, not click-through rate.
Sources
- Washington State Office of the Attorney General, Protecting Washingtonians' Personal Health Data and Privacy
- Media Rating Council, Standards and Guidelines
- Google Ads Policy, Healthcare and medicines
External guidance and platform documentation change. Links were current at publication; check them again before relying on them for a decision.
Editorial note. Analysis and frameworks are the author's own and do not represent Acxiom or any current or former employer, client, or named platform. Examples labeled hypothetical or illustrative are not results from real campaigns. Nothing here is legal, regulatory, or medical advice.
New pharma programmatic breakdowns, occasionally
One email when I publish something worth reading. Benchmarks, measurement teardowns, and case studies with the caveats attached. No cadence promises, no reselling your address.
Unsubscribe any time. See the privacy policy.
Working through this decision on a real plan?
I work on health and pharma data, identity, and activation, after five years running HCP and DTC programmatic agency-side. Happy to talk through how this applies to your situation.