A Cognitive Approach To Online Advertising