Targeted advertising

Targeted advertising is the practice of showing personalized ads to specific people based on their demographics, interests, or online behavior. In AP CSP, it's the College Board's named example of a computing innovation used beyond its intended purpose, helpful to businesses but open to misuse (EK IOC-1.B.1).

Verified for the 2027 AP Computer Science Principles examLast updated June 2026

What is Targeted advertising?

Targeted advertising means companies don't show everyone the same ad. Instead, they collect data about you (your age, location, search history, the videos you watch, the things you buy) and use it to pick ads you're most likely to click. That's why you search for running shoes once and then see shoe ads everywhere for a week.

In AP Computer Science Principles, this term shows up directly in the CED. EK IOC-1.B.1 names targeted advertising as an example of a computing innovation being used in ways its creators didn't originally intend. The intended purpose is to help businesses reach interested customers efficiently. The unintended side is misuse, and the CED specifically says misuse can happen at both the individual level (manipulating or profiling one person) and the aggregate level (discriminating against or exploiting entire groups, like only showing housing or job ads to certain demographics).

Why Targeted advertising matters in AP Computer Science Principles

Targeted advertising lives in Topic 5.1 (Beneficial and Harmful Effects) in Unit 5: Impact of Computing. It directly supports two learning objectives. For 5.1.A, you explain how one effect can be beneficial and harmful at the same time. Targeted ads are the perfect case study, since the exact same effect (ads matched to your data) is a win for businesses and a privacy problem for users. For 5.1.B, you explain how an innovation has impact beyond its intended purpose, and the CED literally hands you targeted advertising as its example. If you need a ready-made innovation to analyze on the exam, this is one the College Board has already endorsed.

How Targeted advertising connects across the course

Behavioral targeting (Unit 5)

Behavioral targeting is the engine inside targeted advertising. It specifically tracks what you do online (clicks, searches, watch time) and uses that behavior to choose ads, while targeted advertising is the broader umbrella that also includes targeting by demographics or location.

Data mining (Unit 5)

Targeted ads only work because data mining finds patterns in huge piles of user data. The CED pairs them in the same EK for a reason. Both help businesses, and both have been used to discriminate against groups of people.

Machine learning (Unit 5)

Machine learning is how ad systems get scary-good at predicting what you'll click. The algorithm learns from millions of users' behavior, which means the targeting improves over time without anyone hand-coding the rules.

Personalization (Unit 5)

Targeted advertising is one flavor of personalization. The same data that customizes your feed and recommendations also customizes which ads you see, so the benefits and the privacy costs travel together.

Is Targeted advertising on the AP Computer Science Principles exam?

AP CSP tests this through multiple-choice questions, since the written portion of the exam is MCQ plus the Create Performance Task. Expect stems that ask you to identify a benefit of targeted advertising for businesses (reaching likely customers efficiently), explain how it can be misused at an aggregate level (group discrimination, like excluding demographics from seeing certain opportunities), or recognize why some people consider it unethical (data collected without meaningful consent, manipulation, privacy loss). The key skill is arguing both sides of the same effect. A question may also frame it as an unanticipated consequence of a platform, so connect it to EK IOC-1.A.3 (not every effect is anticipated) and EK IOC-1.A.4 (the same effect can be seen as beneficial and harmful, even by the same person).

Targeted advertising vs Personalization

Personalization is the broad idea of tailoring any digital experience to an individual, like your recommended videos, custom news feed, or autofill. Targeted advertising is personalization applied specifically to ads, usually to make someone money. On the exam, if the question is about customized content in general, that's personalization. If it's about businesses delivering ads based on user data, that's targeted advertising.

Key things to remember about Targeted advertising

  • Targeted advertising delivers personalized ads to specific people based on demographics, interests, or online behavior.

  • The CED names it directly in EK IOC-1.B.1 as an innovation that helps businesses but can be misused at both individual and aggregate levels.

  • The same effect can be beneficial and harmful at once, since efficient ad matching for businesses is also privacy loss and potential manipulation for users (EK IOC-1.A.4).

  • Aggregate-level misuse means harming entire groups, for example showing housing or job ads only to certain demographics, which is a form of discrimination.

  • It connects to data mining and machine learning, the tools that find patterns in user data and make the targeting possible.

  • On the exam, be ready to argue both the benefit and the harm of targeted advertising, not just one side.

Frequently asked questions about Targeted advertising

What is targeted advertising in AP Computer Science Principles?

It's the practice of showing personalized ads to specific people based on their data, like demographics, interests, or browsing behavior. The CED uses it in EK IOC-1.B.1 as an example of a computing innovation used beyond its intended purpose.

Is targeted advertising always bad according to the AP CSP exam?

No. The CED frames it as both beneficial and harmful. It helps businesses reach interested customers efficiently, but it can be misused to manipulate individuals or discriminate against groups. Exam questions usually want you to recognize both sides.

What's the difference between targeted advertising and behavioral targeting?

Behavioral targeting is a specific method within targeted advertising that uses your online actions (clicks, searches, watch history) to pick ads. Targeted advertising is broader and can also rely on demographics like age or location.

How can targeted advertising be misused at an aggregate level?

Aggregate misuse means harm to whole groups, not just one person. A classic example is showing housing, credit, or job ads only to certain demographic groups, which excludes others and amounts to discrimination.

Will targeted advertising actually show up on the AP CSP exam?

Very likely as a multiple-choice example, since the CED names it explicitly in Topic 5.1. Questions tend to ask for a business benefit, a form of misuse, or an explanation of why it raises ethical concerns.

Targeted Advertising — AP CSP Definition & Exam Guide | Fiveable