Fixed error cause by getAdvertisementType method