Legislation lifting the ban was put forth by the opposition in parliament, thinkSpain reported Saturday.
The legislation was then passed by the parliament, lifting the ban on brothels, escort agencies or individuals acting as prostitutes placing ads in classifieds in print or online in Spain, where prostitution is legal.
However, the conservative People's Party government is expected to seek some way of eventually outlawing advertising of this type, thinkSpain said.
Gal Gadot cast as Wonder Woman for 'Batman vs. Superman'
Exploding whale video goes viral on Internet