Involved in the biosynthesis of ADP-glucose, a building block, required in the biosynthesis of maltose-1-phosphate (M1P) and in the elongation reactions to produce linear alpha-1,4-glucans. Catalyzes the reaction between ATP and alpha-D-glucose 1-phosphate (G1P) to produce pyrophosphate and ADP-Glc. alpha-D-glucose 1-phosphate + ATP + H(+) = ADP-alpha-D-glucose + diphosphate Glycan biosynthesis; glycogen biosynthesis. Belongs to the bacterial/plant glucose-1-phosphate adenylyltransferase family.