They commanded an absurd premium on ads by virtue of being monopolistic leaders of search. They don't have a better product anymore, only a scale/distribution advantage.
Also, they have to start experimenting now to get the formula right for AI ads.
Perhaps the bright side from Google's POV is that it means that they can be the first to start wooing advertisers to their platform. First-mover advantage there might outweigh reputational damage with the public, especially if OpenAI follows suit with ads in 6 months.
Google starts from horrid UX where every advertiseable pixel has been squeezed dry. Only way to go is down.