If I'm reading the financials correctly, ads constitute just shy of $54b in earnings while Cloud just $6b.
As long as consumers are buying stuff, companies will advertise to them. As long as Google has a captive audience and they can continue to mint keywords for advertisers to bid against, I think this flywheel continues.