implemented getAd, putAd, putDeviceInfo api