The best time is when the branch that you are trying to airlayer is actively growing - which means that it will be active in rooting, as well.
If the branch has fruit on it, yu will not want to remove it from the parent plant with fruit on it, as that will be a major drain on energy and resources needed to further develop your new plant. You would need to remove the fruit.