Optimizing relevance and revenue in ad search | Synapse