Google already has a campus in Madrid if the article is anything to go by.
E.g. in Poland software is more Krakow based than Warsaw. Because why would you be wasting on rent, being in a large city where you aren't that important?
They develop for LATAM in other offices