These rare earth neodymium magnets have an adhesive backing for mounting purposes.
They are very powerful and can hold a lot of weight when in direct contact with the attaching surface. If there is a gap between the magnet and the attaching surface the attach force will be much less.
Note: These neodymium magnet discs are strong enough to break each other if allowed to hit together hard enough