BEIJING—China’s government-controlled television broadcaster took aim at camera maker Nikon Corp. as part of an annual campaign to stamp out service and quality problems that stifle spending in the country.

In a two-hour prime-time show, broadcast Saturday in honor of World Consumer Rights Day, China Central Television accused the Japanese company of selling faulty cameras and skirting warranty policies. The report said many…