Google ramps up machine learning to automatically optimize search, other ad formats