They run house ads, and it's the same ad on every page. It's not engagement driven, and it's not deceptive like Google's ads that look like search results. Whether or not they need the money is a different question.
Wikipedia ads are frequently phrased in a way to suggest that the funds are vital for keeping the site up when in reality, the majority of the funding goes to various social "justice" orgs.