COPENHAGEN — With two simultaneous election campaigns underway in Denmark — one for a national election and the other for the European Parliament — there seem to be few places where Danes can avoid politics.

This time, even a pornographic website is carrying a customized campaign ad.

Joachim B. Olsen, a former Olympic shot-putter and current member of the Danish Parliament, paid $450 to have his face and a lowbrow slogan plastered across Pornhub, a Canadian website. The goal was to reach voters “where they are,” he said.

“Campaigning is about visibility, and in that sense it’s been a roaring success,” Mr. Olsen added.

The ad featured a play on words using “Jokke,” a nickname for Joachim, and a similar-sounding Danish slang word for masturbation, urging Danes to vote for one after they had finished doing the other.

The politician said he was unsure how many people saw the ad as it originally appeared, estimating “not many.” Still, the reactions have been overwhelming, mostly from voters and members of the media who had only heard about the campaign advertisement.