Well, if you're tying tax to the algorithm then all the money should go back to the mothership. I have no idea what the rates of tax in Ireland vs California are.
It's not that debatable - we'll see unified tax codes across the EU. Some companies (not just Google) pushed things too far and set up weird schemes that exist only to reduce tax to a minimum.
> Google is just taking advantage of that complexity.
"Taking advantage of" also has negative connotations. Exploiting.
Except, arguably, the most important thing: the search algorithm and database that brings those UK customers to view those ads in the first place.
In any case, my point isn't that what Google is doing is the right answer. My point is that its quite debatable even from our armchairs how much tax revenue the UK is entitled to from Google's activities in the country. Google is just taking advantage of that complexity.