Disclaimer: I'm a Canadian working for Google. And I have no opinion on this particular piece of legislature.
If properly implemented, territorial tax systems do not create a race to the bottom, because countries compete for the quality of service they can offer to businesses that operate there. In theory, a rich individual could live in a tiny country with no income tax, but the moment they tried to put that money to work, they would have to operate in some other country which imposed territorial taxation.
On the other hand, this law is more like a tariff. It seeks to impose a tax on value created (i.e. the selling of an ad to an Italian business) whether or not that value was created in Italy or not.
This is of course, 100% the problem. None of these countries seem to believe they can support themselves long term on the tax revenues earned by just their local people and businesses.
If that's really the case, they are doomed, long term, without changes.
If an advertising company really were running some of their operation from Italy, they should certainly pay tax there (and not, say, in Ireland). But you can't expect to tax all ads that are purchased by Italians that really are sold from overseas.