Microsoft isn’t exactly struggling to turn a profit, though. They have reached the stage of market maturity (and capture) where their primary focus is on milking their “legacy” products like Windows and Office for cash.
I know, I'm not saying the bullshit they are trying to pull is good. But you have to look at the market as a whole, Apple makes even more profit while providing much less "services" to the world and their incentives are even more perverse (sell more hardware at higher price).
Microsoft always ends up looking like the bad guy, but considering how many people depend on them for easy cheap access to computing (including a lot of government/institutions) it could be much worse.
In fact, my point is that if it was Apple, we would be in big trouble we even less money in the bank while they would try to impose even more restrictions on their products to extract even more cash. At this point you realize that some shenanigans with ads are really not that big of a deal...