gets ad from server