means that
even unfavourable attention can sometimes increase public recognition, although negative publicity can also cause lasting harm.
When even bad publicity draws attention to a person or product and might become an advantage for that person or product., the saying “Any publicity is good publicity” is appropriate.