You can place an air conditioner in a shaded window that doesn't get direct sunlight because direct hot sunlight will reduce the efficiency of an air conditioner.