Writer under investigation for advert supporting marriage