If the person didn't want the political views to be public, they shouldn't have tried to buy ads about them.
Through a lot of human history, people have fought for certain views exactly because they faced oppression and immediate risk to their person for those views.
E.g. gay people wanting equal rights in societies where they at times may place their life at risk to come forward.