Alphabet has reported expenses from its Google search business were growing more slowly and that revenue from advertising and cloud computing rose faster than analysts anticipated, boosting its earnings beyond Wall Street targets and pushing shares up 3.6 percent after hours.
Google's dominance in online advertising has been challenged this year by the antitrust battle over its Android mobile software and other regulatory actions.
But the issues have yet to halt Google, which has grown quarterly revenue at least 20 percent year-over-year for two straight years.
"There was never a question about Google’s dominance of a buoyant digital ads market," said analyst Richard Kramer of Arete Research.
The company has seen costs rise and profit margins dip as more searches and ads get shown on mobile devices, where Apple Inc and other firms charge fees to distribute Google search on their devices and apps.
But growth in what the company calls traffic acquisition costs decreased for the first time in three years compared with the year-ago period.
Operating margin rose to 24 percent excluding a US$5 billion antitrust fine, up from 22 percent last quarter, and down from 26 percent a year ago.
"Most impressive was that it looks like the headwind from traffic acquisition costs have started to ease," Atlantic Equities analyst James Cordwell told Reuters.
Adjusted earnings per share were $10.58, which beat the $9.52 average estimate in research aggregated by Thomson Reuters. Some analysts excluded other items as well, and Alphabet also beat that consensus of $9.59.
Alphabet said earnings per share were $11.75 before adjustments, which removes $1.1 billion in investment income from a new accounting standard for unrealized gains as well as the fine issued last week by the European Commission. Google is appealing the ruling, which found it abused its dominance in mobile software.
Alphabet's $32.66 billion in second-quarter revenue, 86 percent of which came from Google's advertising business, beat an average estimate of $32.17 billion.
A new privacy law enacted by the EU in May led the company to revise user privacy disclosures and clamp down on how it shares data with advertising customers. Google also has tweaked its comparison shopping service as it strives to comply with an EU ruling from last year, and it plans to soon release changes to how it handles political ads.
Alphabet, Facebook Inc and other leading application makers have become big forces in advertising as consumers globally, and in turn, advertisers devote increasing attention to smartphone and TV apps instead of newspapers and traditional TV broadcasts.
Still, Alphabet's outlook remains tempered by cost concerns, the analyst Kramer told Reuters.
"It's clear they are doing all they can to suppress profits and cash with their rising" capital expenditures, he said.
Alphabet trails Facebook, Amazon.com Inc and Twitter Inc in valuation as measured by the ratio of enterprise value to expected earnings. Its enterprise value, or market capitalization and debt minus cash, trades at 13 times expected earnings for the next 12 months, compared with about 14 times for Facebook, 24 times for Twitter and 26 times for Amazon, according to TR data.
Cost increases have come across the enterprise. Government pressure to improve moderation of user-created content has forced Google to hire more analysts. YouTube, a Google-owned streaming service, has increased spending on video content to keep consumers from shifting to offerings from Netflix Inc and expanding media conglomerates such as AT&T Inc.
Amazon's encroachment into advertising has threatened Google's lucrative deals with media companies and advertisers.
At least three financial analysts who follow Google have said this year that separating its various advertising businesses in financial results would help investors understand how the competition is affecting the company.
Google, though, has increasingly linked together its services technologically through automated ad-buying tools that empower algorithms rather than humans to pick where ads are placed.
Macquarie Group senior analyst Benjamin Schachter wrote in a report this month that "we are approaching a point where we (and we believe The Street collectively) are not understanding the size of search vs YouTube vs programmatic, which may lead to increasing volatility" in share price.
Shares of Alphabet have gained 13 percent this year, compared with 16 percent for Facebook, 51 percent for Amazon and 76 percent for Twitter.
(Reporting by Arjun Panchadar in Bengaluru and Paresh Dave in San Francisco; editing by Patrick Graham and Lisa Shumaker)