With the explosion in smartphones and the web properties Yahoo had all along, it seems almost impossible to not make money off that. But no thanks to Yahoo, they didn't invent smartphones nor mobile ads after all.
(Also, of course, companies have large freedom what revenue they attribute where, shifting revenue from areas the market perceives as "stagnant" to those of "rapid growth" even if they have no actual presence. That's how IBM is the biggest cloud company in the world.)