Google, the Silicon Valley-based search engine company, said Friday that it would close its Tempe office, affecting about 50 jobs.