The idea that "some of the greatest minds of our generation are spending their time figuring out how to get people to click on more ads" is a bit of a myth. They're figuring out new algorithms, faster methods and new technological concepts that are being applied to ads first. The truth is that the research divisions of Google, Microsoft, IBM, etc publish a lot of research that isn't related to advertising at all, possibly the majority of what they publish. The best and brightest engineers are interested in engineering and theory, and despite working for advertising companies they tend to come up with good ideas that can be used in a wide variety of applications.