The layoffs were announced days before Google’s parent company, Alphabet, announced its Q1 2024 earnings.