Referencing and Classification of Advertisements