generate set/get advert entity