added adtype to api