Google ad revenue rises as machine learning grows