Google will rather split up the internet by pulling out of Europe than follow this. And isn't ads the only profitable business Google has? If they sell it, there Google search, Gmail etc couldn't exist.
EMEA is Google's second largest market, and it's not even close for competition. There is no way Google would be willing to cut revenue by $90 billion annually. It would be corporate suicide. The single greatest loss event of investor capital in history. They'll comply, just like Apple will comply with the DMA. They have a fiduciary responsibility to their shareholders. Unlike the U.S., E.U lawmakers can't be bought.
Google's overall ad revenue is 4x greater than EU total revenue. It will definitely loose EU business than it will loose ads business. But yeah there are always legal loophole in things like this and likely it could keep both.