There’s ads on Medium? I’ve never seen any. BTW you can easily open an article in incognito mode, to bypass the login-wall.
They do however use analytics, like any other platform that wishes to quantify engagement and provide value to their content creators.