A federal judge has ruled an Ohio law aimed at curbing gold- and silver-related theft by barring precious metals dealers from advertising without a license is unconstitutional.