I usually got it from brew cask, not sure which "version" it downloaded - never saw any ads in it, myself but either way - I'd rather just not deal with a scummy project anymore.
Only the version downloaded from the developer’s website included malware. Versions in various repositories are fine.