Previous study revealed severe toxic effects of ammonia nitrogen on Ruditapes philippinarum including lysosomal instability, disturbed metabolic profiles, gill tissues with damaged structure, and variation of neurotransmitter concentrations. However, the underlying molecular mechanism was not fully understood yet. In the present study, digital gene expression technology (DGE) was applied to globally screen the key genes and pathways involved in the responses to short- and long-term exposures of ammonia nitrogen. Results of DGE analysis indicated that short-term duration of ammonia exposure affected pathways in Dorso-ventral axis formation, Notch signaling, thyroid hormone signaling and protein processing in endoplasmic reticulum. The long-term exposure led to DEGs significantly enriched in gap junction, immunity, signal and hormone transduction, as well as key substance metabolism pathways. Functional research of significantly changed DEGs suggested that the immunity of R. philippinarum was weakened heavily by toxic effects of ammonia nitrogen, as well as neuro-transduction and metabolism of important substances. Taken together, the present study provides a molecular support for the previous results of the detrimental toxicity of ammonia exposure in R. philippinarum, further work will be performed to investigate the specific genes and their certain functions involved in ammonia toxicity to molluscs.