What is the meaning of [any publicity is good publicity]

Even bad publicity draws attention to a person or product and may therefore serve a useful purpose.