Self-Configuring Contextual Advertising