Online Privacy

How Targeted Advertising Works

How advertisers pick who sees an ad, which data feeds the choice, and which settings change what you are shown.

Key takeaways

  • Contextual ads depend on the content in front of you, while behavioral ads depend on what you've done before.
  • Advertisers often upload customer lists or install tracking code, which lets a platform match their data against its users.
  • Delivery systems predict who will click or buy, so ads can skew toward groups the advertiser never explicitly chose.
  • Ad settings change how ads are personalized, but they rarely reduce the number of ads you see.

Targeted advertising means an advertiser chooses who should see a message, and a platform uses data to find those people or to predict who will respond. The advertiser usually doesn't get a list of names. It describes an audience or a goal, and the platform's systems decide which impression, meaning one showing of an ad to one person, goes to whom.

The data behind those decisions comes from the page you're reading, from your past behavior, from details you gave an account, and sometimes from a company's own customer list. You can change some of that mix.

The main kinds of targeting

Contextual targeting matches the ad to what you're looking at. A page about camping shows tents. No history about you is needed.

Search advertising matches the ad to your query. Someone searching for emergency plumbing has stated a need plainly, which is why these ads are valuable. How to spot ads in search results shows how they're labeled.

Demographic and geographic targeting uses attributes such as age range, language or area, either stated by you or inferred.

Interest and behavioral targeting places you in groups based on activity: pages visited, videos watched, apps used, things bought.

Retargeting shows ads to people who already visited a site or abandoned a cart.

Lookalike or similar audiences start with an advertiser's existing customers and ask the platform to find other people whose behavior resembles theirs.

Most campaigns blend several of these.

Four ways to pick an audience
Context What the page or video is about Intent What you just searched for History What you did earlier, here or elsewhere Resemblance How closely you resemble existing customers Context What the page or video is about Intent What you just searched for History What you did earlier, here or elsewhere Resemblance How closely you resemble existing customers

Context and intent need little personal history. History and resemblance depend on it.

Where the data comes from

It helps to sort data by who gathered it.

  • Data you provide: profile fields, follows, searches and purchases on a platform.
  • Activity on the platform: what you pause on, like, share or hide.
  • Activity elsewhere: events sent by other sites and apps through pixels, software kits or server connections. Cookies, pixels and local storage explains the browser side.
  • Advertiser customer lists: emails or phone numbers that are hashed and matched to accounts.
  • Purchased or licensed data: attributes from data brokers, where a platform or advertiser allows it.
  • Inferences: guesses a model draws from all of the above.

Inferences deserve attention. A system doesn't need you to say you're moving house if your searches for boxes, utilities and furniture suggest it.

How a campaign runs

Here's a hypothetical example. A small shop selling running gear wants more orders.

  1. It sets an objective, such as purchases, along with a budget and a schedule.
  2. It chooses an audience: people within delivery range, perhaps with an interest in running, or visitors who viewed shoes recently.
  3. It supplies several images and lines of text.
  4. It installs the platform's tracking code so purchases are reported back.
  5. The platform begins showing ads, observes who responds and shifts delivery toward similar people and better-performing versions.

By the later stages, the algorithm often matters more than the advertiser's initial choices. Many platforms now encourage broad audiences and let automated systems find buyers.

Auctions and prediction

Ad space is mostly sold by auction. The winner isn't simply the highest bid. Platforms commonly combine the bid with a predicted chance that you'll take the desired action, plus measures of ad quality. An advertiser offering less can win if its ad is much more likely to interest you.

On the open web, many of these auctions happen across separate companies in the moments while a page loads, which real-time bidding covers in detail. Large platforms run their own auctions internally.

The feedback loop in ad delivery
Learn Update the model and budget Observe Clicks, views, purchases reported Predict Estimate who is likely to respond Auction Weigh bid against predicted response Show The winning ad reaches a screen 1 2 3 4 5 Predict Estimate who is likely to respond 1 Auction Weigh bid against predicted response 2 Show The winning ad reaches a screen 3 Observe Clicks, views, purchases reported 4 Learn Update the model and budget 5

Measuring results

Advertisers want to know whether money spent produced sales. They tag links with campaign parameters, collect conversion events and compare. The UTM URL builder shows what campaign tags look like, and UTM parameters explains them.

Attribution is imperfect. Someone might see an ad on a phone and buy on a laptop a week later. Or they might have bought anyway. Careful advertisers run experiments in which a random group is held back from seeing ads and compare the two groups. That answers "did the ad cause sales?" far better than counting clicks.

Customer lists and matching

A large share of targeting starts with information a business already has. A store exports the email addresses of recent buyers and uploads them to an advertising platform. Before or during the upload, each address is normalized and hashed. The platform hashes its own users' addresses the same way and looks for equal values.

The matches form an audience. The advertiser can show those people an offer, exclude them so it doesn't pay to reach existing customers, or use them as the seed for a lookalike audience. People who don't have an account under that address simply don't match.

Hashing protects the addresses from casual reading in transit and storage, but it doesn't hide who matched from the platform, which already knows its own users. If you'd rather not be matched, give businesses a different address from the one on your social and email accounts. Some platforms also show which advertisers have uploaded a list containing you and let you opt out of their ads.

Privacy laws may require a business to tell you about this sharing, get consent or honor an objection before uploading your details. The requirement depends on where you and the business are.

Sensitive moments and vulnerable audiences

Some inferences carry more risk than others. Guessing that you like gardening is mild. Guessing that you're pregnant, in debt, recently bereaved or struggling with gambling can lead to messages that arrive at a painful moment or push a harmful product.

Large platforms publish advertising policies that restrict certain categories and targeting choices, and they review ads with a mix of software and people. Enforcement is imperfect. Report ads that appear to exploit a vulnerable situation, and use topic controls to reduce subjects such as alcohol, gambling or parenting where those controls are offered.

Children get particular attention in law and in platform rules, but age is often self-declared. If a child uses a shared adult account, the system may treat them as the adult. Separate child accounts with family settings are a more reliable boundary. Children's online privacy rules gives the legal background.

The harder questions

Targeting raises real disagreements.

Supporters say relevant ads help small businesses reach customers affordably, fund free services and waste less of everyone's attention. Critics say it depends on pervasive data collection, can exploit vulnerable moments and makes messages hard for outsiders to scrutinize, because different people see different things.

Delivery can also be uneven in ways nobody selected. If a model learns that one group clicks a job ad more often, it may show it to that group more, even with neutral targeting. Some platforms restrict targeting options for housing, employment and credit ads, and laws in various places limit targeting that uses sensitive categories or targets children. These rules differ and have been changing.

Political advertising brings its own rules and debates, including whether narrow targeting should be allowed at all and how much disclosure is enough.

Controls that actually change things

Where you look depends on the platform, but most large ones offer similar options.

  1. Open the ad settings or ad preferences page on each major account.
  2. Turn off personalization, or at least the use of activity from other sites and apps.
  3. Review the list of inferred interests and remove what you can.
  4. Use the "why am I seeing this ad" link when one appears. It often reveals whether a customer list or a site visit was involved.
  5. Hide or limit sensitive topics where the option exists.
  6. On your phone, restrict the advertising ID.
  7. In your browser, block third-party cookies and consider a content blocker.

What won't work

Turning off personalized ads doesn't mean the company stops collecting data. It often continues for security, features or measurement. A blocker in your desktop browser does nothing inside a phone app. A VPN hides your address but not your logged-in account.

If you want less collection, use fewer services while signed in, deny unneeded permissions and exercise deletion rights where you have them. If you only want fewer irrelevant or upsetting ads, the platform's hide and report buttons may be enough.

Reading your own ads

Ads tell you something about how you've been categorized, with caution. A strangely specific ad may come from a retailer's list, a household sharing an internet connection, simple coincidence or the content of the page. It's rarely proof of any single explanation, including a microphone listening to you. Check the explanation link and your account's ad settings before drawing conclusions.

Common questions

Do advertisers know who I am?

Usually an advertiser sees totals and anonymous or pseudonymous events, not your identity. Once you click through and buy, though, that business knows what you gave it, and it may connect your visit to the campaign that brought you.

Can I pay to avoid ads entirely?

Some services offer ad-free plans. They remove ads on that service but don't necessarily reduce data collection, so read the plan's privacy terms if that matters to you.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Online Privacy →

Latest news on this topic