The ammeter has to measure the amount of charge that flows through the lightbulb.
Therefore, it has to be in the same circuit as the lightbulb and the battery.
We say the components are in series, because the same amount of charge flows by each component every second.