The APEX Telescope Large Area Survey: The Galaxy (ATLASGAL) is an unbiased continuum survey of the inner Galactic disk at 870 micron. It covers +/-60{deg} in Galactic longitude and aims to find all massive clumps at various stages of high-mass star formation in the inner Galaxy, particularly the earliest evolutionary phases. We aim to determine properties such as the gas kinetic temperature and dynamics of new massive cold clumps found by ATLASGAL. Most importantly, we derived their kinematical distances from the measured line velocities. We observed the ammonia (J,K)=(1,1) to (3,3) inversion transitions toward 862 clumps of a flux-limited sample of submm clumps detected by ATLASGAL and extracted ^13^CO(1-0) spectra from the Galactic Ring Survey (GRS). We determined distances for a subsample located at the tangential points (71 sources) and for 277 clumps whose near/far distance ambiguity is resolved. Most ATLASGAL clumps are cold with rotational temperatures from 10-30K with a median of 17K. They have a wide range of NH_3_ linewidths (1-7km/s with 1.9km/s as median, which by far exceeds the thermal linewidth, as well as a broad distribution of high column densities from 10^14^ to 10^16^cm^-2^ (median of 2x10^15^cm^-2^) with an NH_3_ abundance in the range of 5 to 30x10^-8^. ATLASGAL sources are massive, >100M_{sun}, and a fraction of clumps with a broad linewidth is in virial equilibrium. We found an enhancement of clumps at Galactocentric radii of 4.5 and 6kpc. The comparison of the NH_3 lines as high-density probes with the GRS ^13^CO emission as low-density envelope tracer yields broader linewidths for ^13^CO than for NH_3_. The small differences in derived clump velocities between NH_3_ (representing dense core material) and ^13^CO (representing more diffuse molecular cloud gas) suggests that the cores are essentially at rest relative to the surrounding giant molecular cloud. The high detection rate (87%) confirms ammonia as an excellent probe of the molecular content of the massive, cold clumps revealed by ATLASGAL. A clear trend of increasing rotational temperatures and linewidths with evolutionary stage is seen for source samples ranging from 24 micron dark clumps to clumps with embedded HII regions. The survey provides the largest ammonia sample of high-mass star forming clumps and thus presents an important repository for the characterization of statistical properties of the clumps and the selection of subsamples for detailed, high-resolution follow-up studies.
Cone search capability for table J/A+A/544/A146/sources (Source positions, NH_3_ parameters and parameters derived from NH_3_ and 870{mu} data)