bert and born above have the right things to do. Here's why..
Almost every lawnmower engine has a way of auto shutting off if it tips over, the way it shuts itself off is the oil from the crnkcase will flood into the intake and choke out the motor.. therefore, if the float on the old carb and/or new carb was stuck open to a point that you saw gas in the airfilter that means it first filled up the crankcase with gas and the oil level now (gas/oil mixture) is above the shutoff tunnel and is flooding the new carb..
Change the oil, disassemble the carb, clean it all up real good, reset the needle in the bowl of the carb.. refill oil and you should be golden..