Yahoo is buying online advertising network BlueLithium for $300 million in cash, building upon an expansion aimed at ending a financial malaise that has ravaged the Internet pioneer's stock price.

The deal announced late Tuesday marks the latest step in Yahoo's attempt to regain some of the ground that it has lost during the past three years to Google, whose Internet-leading search engine propels the most lucrative online ad network.