I am sorry, but at what time Google or Facebook were not ad machines?
When they first announced the Summer of Code the common response was "wow, Google really is special like that".
Commercial sites were. But there was a time before corporations started treating the internet like the Gold Rush. Before that the internet was actually not full of ads, much less all the spyware the likes of Google and Facebook brought.
But Google and Facebook are just two big worms in an internet that's been rotten by corporate influence.
How times have changed.
It's also somewhat important to differentiate between "doing advertising" and surveillance capitalism. The scope/scale is completely different.