To me, it's not just not the same race. It's not even the same game. Facebook's playing Tetris; Google's playing Civilization.
From http://investor.google.com/financial/tables.html if I'm reading it right, 69% of their revenue comes from ads on their own sites. For mine that deserves to be counted as "technology company revenue" not "advertising company revenue". If they didn't have their own ad arm they still would have made a big chunk of that 69% by using some other company to show ads on gmail, youtube and their search page, but if they were only an advertising company they would have just made the 27% that was pure "advertising on other sites" revenue. Just because youtube makes money by showing ads, doesn't make youtube not profitable.
I think in the next 5-10 years we'll also see a much more hardware-oriented Google, too. I think Google is serious about hardware (Glass,Motorola devices...maybe even a self-driving, self-sustaining electric car in the future? Who knows).
What they have to do is ensure no one else profits from some research, and to have a way of profiting in the long term. That is a lot easier to work out once something is successful, you know how people use it and it has become somewhat indispensable to users.
Android is successful, but apparently it’s not generating much profit for Google.
Not even close. They do not have to figure out how to make money from things now or even for several years. Or in some cases ever. The ad revenues can subsidise things forever.
For example their maps product (excluding premium) being free means no one else can realistically charge for an equivalent service. But all the people using it provide Google with a large amount of information such as places people actually want to go and where they don't. Those signals can be further used to improve their search relevance which keeps users away from competing search products.
asymco.com has various revenue numbers. At best Google is making around $4 per Android user per year in revenue (not profit). However if Google did not provide Android then they would be completely at the mercy of the likes of Apple and Microsoft who could make using and finding Google products on their devices hard.
Chrome is another example. Even if not a single person used Chrome, its effect was a massive reinvigoration of browsers (sandboxing, Javascript performance etc). Google depend on browsers to deliver their products so this helped ensure continued good delivery. (If users started abandoning browsers for native platform apps then again Google would be in danger of being shut out.)