Your window AC should be connected to a three-prong, grounded wall outlet. The unit cannot share a plug with another appliance via an adapter. Most ACs come with a circuit interrupter fitted to the power cord. In the event of a fault, the interrupter automatically cuts off the power. Call an electrician if you only have two-prong, ungrounded outlets.
Most manufacturers advise against the use of an extension cord because the power demands of most AC units exceeds the capacity of many widely-available extension wires. Using an unsuitable extension cord is a fire risk. Call an electrician to discuss installing a grounded outlet closer to the unit, if necessary.
General Electric – like other manufacturers – advises customers to steer clear of extension cords. They do, however, allow owners of 115-volt models to use a UL-listed, 14-gauge, three-wire extension cord if absolutely necessary. The cord must be rated to handle 15 amperes and 125 volts. Some of the company's units are not suitable for use with any extension cord.
Press the "Test" button on the current interrupter, if one is fitted, every few months to ensure the device is providing the necessary electrical protection. The "Reset" button pops out when "Test" is pushed when the device is working correctly. Push "Reset" back down to continue using the AC.