What method do you want to stick the magnet on the wall brick?
If you want to stick the magnet on the wall brick permanently, it is recommended to choose 502 glue, which is suitable for bonding metals. Before bonding, you should clean the surface of the magnet and the ceramic tile, remove the dust, oil stain and rust on the bonding surface, then apply glue, and then stick the magnet in a proper position on the ceramic tile.