Walmart on Thursday reported third-quarter earnings and revenue that narrowly topped analysts’ estimates and raised its full-year sales and earnings outlook, the company and CNBC reported. The Associated Press said it was the third time this year Walmart has raised its outlook.

For the quarter ended Oct. 31, Walmart reported adjusted earnings of 65 cents a share on revenue of $188.8 billion, up 5.2%, or 4.5% in constant currency, according to the company’s earnings release. CNBC put revenue at $188.84 billion. Analysts surveyed by LSEG had expected 64 cents a share and $187.27 billion. Net income fell to $4.95 billion, or 62 cents a share, from $6.14 billion, or 77 cents a share, a year earlier, CNBC said.

Global e-commerce sales grew 17%, driven by store-fulfilled pickup and delivery, with Walmart U.S. online sales up 23%, Walmart said in its release. CNBC reported Sam’s Club U.S. online sales rose 30%. Global advertising rose 25%, with Walmart U.S. advertising up 37%, and operating income rose 16.0%, or 5.5% on an adjusted, constant-currency basis, the company said. Comparable sales at Walmart U.S., excluding fuel, rose 2.9%, in line with expectations compiled by StreetAccount, CNBC reported.

The company now expects full-year net sales to rise 4.9% to 5.2%, up from a previous forecast of 4% to 5%, and adjusted earnings of $2.84 to $2.89 a share, up from $2.80 to $2.87, CNBC reported. It also raised its forecast for adjusted operating income growth to between 8% and 8.6%.

“This was another really solid quarter for us, we feel good about it,” Chief Financial Officer John David Rainey told CNBC. “We continue to gain share while continuing to improve the profitability of our digital businesses.” Rainey said the company saw its largest share gains in the food category in three years and that the fourth quarter was “off to a pretty good start.” He said Walmart is maintaining “flexibility” in its guidance.

Walmart said it rolled back prices on nearly 8,000 products, CNBC reported, as shoppers contend with elevated food and gas prices. Rainey said the company had navigated “a volatile couple years between tariffs and high diesel prices.” Global membership fee revenue rose 17%, the company said.

Rainey said he is “optimistic” about consumer spending heading into the holidays, CNBC reported. One figure from the quarter stands out: Walmart U.S. online sales grew 23%, nearly eight times the 2.9% rise in its comparable sales, growth Rainey attributed to faster delivery and lower prices.