But Facebook is and did take a huge bite out of the total ad market. Facebook has roughly 1/3rd as much ad revenue as Google on a far smaller investment of infrastructure and a narrower range of products.
That's true but the market grew, rather than staying constant size, and nobody considers Facebook an existential threat to Google any more (which helps Google in the market).