I do not think it was just the bad acquisitions.
Yahoo also turned from a tech company into a media company. At some point, every decision was made with a media company mindset.
This includes making decisions that prioritize short-term revenue over building growth loops or enhancing user retention.
Also, no investments into technology. Browser, CDN, proper web hosting, cloud - they missed everything.