Apple avoids job cuts because it didn’t overhire like Google and Amazon 3 years ago
Your statement that Google is "all over the place" is at odds with what you say later "they didn’t invest much in generating other long term major revenue streams."
Maybe the investments weren't successful or didn't pan out, but that is not to say they didn't invest.