Generative Click-through Rate Prediction with Applications to Search Advertising