Warning of half-billion-dollar settlement tops off tough week for Google