Catalyzes the phosphorylation of D-glucose to D-glucose 6-phosphate using ADP as the phosphate donor. GDP and CDP can replace ADP, but with reduced efficiency. ADP + D-glucose = AMP + D-glucose 6-phosphate + H(+) Binds 1 Mg(2+) ion per subunit. Optimum pH is 5.75-6.5 and 8.75-9.0. Carbohydrate degradation; glycolysis. Monomer. Belongs to the ADP-dependent glucokinase family.