I tried that on some of the blasted things nesting on our works roof (a few years ago now). Either it worked when the blighters were away or it failed. I have no way of knowing!
Why they are protected now is anybody's guess - there's far too many making a mess...