In this paper, $\rm WO_3$ nanorods are successfully synthesized via a one-step hydrothermal method, and then silver nanoparticles are deposited on the $\rm WO_3$ surface by in situ photoreduction method to obtain $\rm Ag/WO_3$ gas sensitive materials. $\rm WO_3$ and $\rm Ag/WO_3$ are characterized by Scanning Electron Microscope techniques (SEM), Transmission Electron Microscope (TEM) and X-ray diffraction (XRD). The experimental results indicated that Ag nanoparticles have an important effect on the gas response of $\rm WO_3$ . The $\rm Ag/WO_3$ sensor greatly improves selectivity and response compared to the traditional $\rm WO_3$ sensor, the response is 300 for 100 ppm ammonia when the $\rm Ag/WO_3$ sensor operates at the optimum operating temperature. The $\rm Ag/WO_3$ sensor can respond to 50 ppb ammonia.