Google beats on ad revenue expectations, Microsoft slows hiring