If Google and Facebook were nationalized, why would they need to sell ads?
Once freed from the prime directive of collecting increasing amounts of data to improve ad tracking, operating and development costs should be much lower than they are now, too.
If people had to pay a monthly fee for search or social media, it would very quickly not be the only option anymore