I feel like you're assuming a false dichotomy between doing good and benefitting oneself. If Google organizes the world's information and makes it universally accessible and useful, and they put ads beside it, the latter part doesn't make the former untrue.