publishAdvertisement added.

Complete with pointless comments!