Wikipedia has been ad-free for a long time.
They do that by doing donation drives. They'll usually do multiple ones each year.
If enough contributors and users donate to them, there is no reason to ever host an ad of any kind. People who are loyal to that platform will typically donate again...