Google has been actively trying to diversify away from being dependent on just ads for a very long time. The other ventures are certainly not side projects in terms of investment, and pretending revenue sources are equivalent to the only source of motivation is over simplifying how large companies operate.