Based on the shape of the secretory unit- If the secretory units are tubular in shape it is a tubular gland. If secretory units are more rounded, then they are called alveolar or acinar glands.
Glands which have characteristics of both these, or which have tubular portions with terminal alveoli, are called tubulo-alveolar glands.