implemented resource TypeAd