The Silicon Valley-based company said that second-quarter net income climbed two percent to $3.4 billion on an 11 percent rise in revenue to $17.7 billion. Google's shares soared more than 10% in after-hours trade to nearly $642 after marking a 3.5% gain during the regular session prior to the earnings release.

"We continue to close the gap between mobile and desktop search monetization," Google's new chief financial officer Ruth Porat said during her first earnings call at the company.

She credited work done to improve user experiences on mobile devices along with the quality of ads, as well as finding ways to merge online activities with real-world commerce. Porat said desktop search-based advertising also posted solid revenue growth.

And Google's streaming video website YouTube saw substantial growth in viewer engagement during the past year, attracting marketers to its advertising platform.