Contextual Advertising, aka Contextual Targeting, is an advertising technology that works by scanning the text of the website or app for keywords and targets ads based on those keywords. This tactic can be used for text or display ads.
A good example of contextual advertising is Google AdWords.