adhesive for metal to glass
Go to Autozone and purchase automotive weatherstripping adhesive from 3M (8008). That stuff is seriously sticky and long lasting. It will take a few hours to set up, though. I have a test plate of glass that I've glued all sorts of things and have left outside in the elements for the last 5 years and still cannot pry anything off without breaking the glass.