Google's parent on Thursday revealed that efforts to push its vast advertising business toward mobile is paying off as second quarter earnings handily beat Wall Street's expectations.