There are 3 types of heat transfer which are convection, radiation and conduction and since wood that is in a campfire isn't conductive it would mean that the campfire heats the air through radiation.
The campfire radiates heat through the air through energy waves.