(Recasts with company beating estimates, adds anlayst comment)
July 24 (Reuters) - Alphabet Inc surpassed expectations for quarterly revenue and earnings on Monday, reporting higher advertising sales across its platforms and trying to move past a record $2.7 billion European Union fine by taking the entire charge at once.
On a consolidated basis, revenue rose about 21 percent to $26.01 billion in the second quarter ended on June 30, beating the analysts' average estimate of $25.65 billion, according to Thomson Reuters I/B/E/S.
Earnings per share was $5.01, beating an average estimate of $4.49, and would have been $8.90 if not for the EU antitrust fine announced last month, Alphabet said. Earnings per share was $7 in the second quarter of 2016. http://bit.ly/2uR47WB
But the company's shares, which closed up in regular trading on Monday, fell about 3 percent to $968 after the bell.
Shares of Alphabet, the owner of the Google search engine and the YouTube video service, had gained nearly 26 percent this year through Monday's close.
"You're seeing some profit-taking after a pretty good run," FBN Securities analyst Shebly Seyrafi said in an interview.
One potential blemish in the earnings report was aggregate cost-per-click, which fell 23 percent year-over-year, but the impact on Google's ad business was not immediately clear.
EU antitrust enforcers last month hit Google with a record 2.4-billion-euro ($2.7 billion) fine for favoring its own shopping service, taking a tough line in the first of three probes of its dominance in searches and smartphone operating systems.
Alphabet said shortly after the EU announcement that the company would report the whole fine as an expense in the second quarter.
Revenue was boosted by robust demand for advertising on mobile and on YouTube.
Google's ad revenue, which accounts for a lion's share of its business, rose 18.4 percent to $22.67 billion.
The company faces intensifying competition from social media giant Facebook Inc for advertising dollars. The companies together dominate the online ad market.
This year, Google is expected to generate about $73.75 billion in net digital ad revenue worldwide, a 17.8 percent jump from a year earlier, according to research firm eMarketer.
Paid clicks, where an advertiser pays only if a user clicks on ads, rose 52 percent. Analysts on average had expected a rise of 35.2 percent, according to data and analytics firm FactSet.
Paid clicks rose 44 percent in the first quarter.
Revenue from its Google Other unit, which includes Pixel smartphone, Play Store and cloud business, rose 42.3 percent to $3.09 billion.
The company's net income fell to $3.52 billion.
The company changed the method it reports earnings in the first quarter, focusing on Generally Accepted Accounting Principles (GAAP) earnings instead of non-GAAP results.
(Reporting by David Ingram in San Francisco and Rishika Sadam in Bengaluru; Additional reporting by Noel Randewich in San Francisco; Editing by Sriraj Kalluvila)