Each gas absorbs energy from the sun, some more efficiently than others. Symmetric gases, such as O₂, N₂, and Ar neither absorb or emit infrared radiation and are not contributors. Water vapor is the worst offender, but we cannot do without water! That leaves CO₂, methane, ozone, and a few others that, fortunately, do not occur in any abundance.