Google by law has to take advantage of these "loop holes". They are a publicly traded and thus by law have the obligation to maximize their shareholder returns. So taking advantage of these tax loop holes they are fulfilling that duty. Doesn't excuse it but it does prevent Google from just saying no we won't do it.