It only takes one of these moon shots to be successful to bring in extraordinary revenues, and Google has always been crystal clear that following such path was in their DNA.
I don't see it that way exactly. R&D is an investment. Hell, I'd consider calling it a pure capital investment, if not simply enhancing goodwill. If even one of those moonshots become successful those "sunk costs" will likely start streaming back.