Alphabet (GOOGL 10.22%) (GOOG 9.96%) stock has run like wildfire over the past year, riding the recovery of tech stocks, the rebound of digital advertising, and the accelerating adoption of artificial intelligence (AI). Share prices of the search leader gained 52% during the past 12 months, nearly double the 27% gains of the S&P 500.

Investor confidence is on the upswing, fueled by the company's improving financial results, which suggests that the advertising market -- which represents the lion's share of Alphabet's revenue -- will continue to gain ground.

Investors who sat out the recent rally are left asking themselves the quintessential investing question: Is a pullback coming, or should they buy Alphabet before the stock runs even higher? Let's see what the evidence suggests.

A person at a computer desk taking notes.

Image source: Getty Images.

Multiple growth drivers on the horizon

Despite the bruising downturn of 2022 and the stock's recent run higher, there are still reasons to be optimistic. Google remains the worldwide search leader, with more than 91% of the market, according to data compiled by web traffic analytics provider StatCounter. This is the funnel that drives the digital advertising that provides nearly all of Alphabet's revenue. The company garnered an estimated 39% of worldwide digital ad revenue last year, according to online data provider Statista.

Furthermore, digital ad spending is expected to spike in 2024, increasing 13% year over year, according to data compiled by Insider Intelligence. As the global leader, Alphabet is best positioned to ride that secular tailwind higher.

The recovery in ad spending is already showing up in Alphabet's results. In the fourth quarter, Alphabet's revenue increased 13% year over year to $86.3 billion, accelerating from a 1% increase in the year-ago quarter. This suggests the advertising market is finally making a comeback, which could ultimately push Alphabet's stock higher.

That's not the only potential catalyst that could drive gains for the company.

The move to the cloud, a foundational part of the digital transformation, could also provide a boost. In the fourth quarter, Google Cloud remained the world's third-largest cloud infrastructure provider, with 10% of the market, trailing Amazon Web Services and Microsoft Azure, which controlled 31% and 26%, respectively, according to market analytics company Canalys.

The role of cloud infrastructure services in providing generative AI to users has also been a hot topic, and Google Cloud is at the forefront of the conversation.

Its Vertex AI service offers everything users need to get AI up and running, including 130 prebuilt foundation models to choose from. Users can also accelerate the development process to "build, deploy, and scale AI-powered applications," according to the company.

The most recent addition to its portfolio of products is Google Gemini, the company's "largest and most capable AI model." The system was designed to understand and incorporate information from a multitude of sources, including audio, video, text, images, and even computer code. Tests suggest its premiere model, Ultra, "exceeds current state-of-the-art results on 30 of the 32 widely used academic benchmarks" used to assess AI performance.

How to approach Alphabet stock now

Alphabet is currently selling for roughly 24 times trailing earnings, a discount compared to the price-to-earnings (P/E) ratio of nearly 28 for the S&P 500.

Furthermore, it's difficult to quantify the impact of generative AI. As the opportunity continues to unfold, Alphabet could be among the principal beneficiaries of this secular tailwind.

As noted above, there are several growth drivers that could fuel an ongoing rally for Alphabet stock in the coming months and years. Given the opportunities ahead and its strong history of growth, I'd suggest now is the time to buy Alphabet stock while it's still on sale.