This Oct. 20, 2015 photo shows the Google logo outside the company's headquarters in Mountain View, Calif. Alphabet Inc., parent company of Google, reports quarterly financial results Thursday, Oct. 22, 2015. (AP Photo/Marcio Jose Sanchez, FIle)

Google received an "A'' from investors for its third-quarter report that ushered the Internet search leader into a new era under Alphabet, its recently formed parent company.

The numbers released Thursday indicated that Google is making significant strides in the increasingly important mobile-device market, with its earnings surging 45 percent to nearly $4 billion, or $5.73 per share.

Ruth Porat, Alphabet's chief financial officer, cited improvements in mobile search and more mobile traffic on Google's YouTube video site as keys to the quarter.

Alphabet, which replaced Google as a publicly traded stock earlier this month, won extra credit by announcing plans to spend nearly $5.1 billion buying its own shares over an unspecified period. Buying back stock is something Google never did in its 11-year history as a publicly traded company.

The third-quarter gains also reflected the financial discipline that has been imposed by Porat, who made it clear she intended to curb spending shortly after joining Google in May. Google's operating expenses in the third quarter rose at slightly slower pace than net revenue, helping to fatten profit margins.

Google's revenue for the three months ending in September totaled $18.7 billion. After subtracting ad commissions, revenue totaled $15.1 billion, a 15 percent increase from last year.

Both the third-quarter earnings and revenue topped the analysts' projections that steer investors' expectations.

Alphabet's Class C stock soared $62.86, or 9 percent, to $744. If the shares hit that level in Friday's regular session, it will be a new high for the stock.

The report covered a three-month period ending marked Google's final quarter as a public company. Google now is a subsidiary of Alphabet, which was created to oversee the hodgepodge of businesses that have been launched with the tens of billions of dollars that Google has made as the Internet's dominant search engine.

In January, Alphabet will report Google's financial numbers separately from a group of peripheral businesses that experiment with self-driving cars, invest in startups, make Internet-connected thermostats and search for cures to health problems.

That breakdown is expected to reveal how much money Google would have been making in recent years if it hadn't been diverting billions of dollars to finance risky projects that Alphabet CEO Larry Page calls "moon shots."

Page, Google's co-founder, had been the company's CEO until Alphabet's birth. Google's new CEO, Sundar Pichai, assured analysts during a Thursday conference call that the company is "just beginning to scratch the service .... Our vision is for Google to remain a place of incredible creativity and innovation that uses a unique technical expertise to tackle big problems."

Google's profit margins have been squeezed by the shift to mobile devices from laptop and desktop computers during the past five years. The company was better prepared for the upheaval than most of its technology peers because it had the foresight to build and develop Android, a mobile operating system that features Google's search engine, maps, email and YouTube video site.

Even though Android is being used on 1.4 billion devices around the world, Google still has been hurt by the move to mobile. That's because advertisers haven't been as willing to pay as much for marketing messages shown on the smaller screens of smartphones.

The phenomenon is one reason that Google's average price for ads, a statistic known as "cost per click," has declined for four straight years. The third-quarter cost per click dropped another 11 percent from the same time last year.

But marketers are gradually paying more to connect with prospective customers on mobile devices as Google has come up with ways to fit more ads on screens and done a better job of demonstrating that the pitches translate into sales.

In the U.S., the average cost per click for ads shown after mobile searches climbed 18 percent, according to digital marketing consultants IgnitionOne. Google says average ad prices on mobile devices have been rising in the U.S. but hasn't provided specific numbers.