A well-funded group backing Mitt Romney accidentally posted a campaign ad that harshly attacks Newt Gingrich.

The ad said Democrats are hoping Gingrich wins the nomination because of all his baggage,” including ethics violations while he was House Speaker and earlier support of climate-change legislation, amnesty for undocumented immigrants and a requirement that everyone buy health insurance.

The group, Restore Our Future, announced a $3.1 million ad buy in Iowa earlier Thursday and released an ad praising Romneys record in the private sector.

The anti-Gingrich ad broadcast live Thursday night on YouTube but was quickly taken down. Brittany Gross, a spokeswoman for the group, said that its an unfinished ad and the group would not comment further on it at this time.

The ad, if it becomes an official part of the campaign, would be considered a direct assault on Gingrich. 

Romneys campaign went on the attack for the first time Thursday morning, criticizing Gingrich for opposing House Budget Committee Chairman Paul RyanPaul RyanRyan: Graham-Cassidy 'best, last chance' to repeal ObamaCare Ryan: Americans want to see Trump talking with Dem leaders Overnight Finance: CBO to release limited analysis of ObamaCare repeal bill | DOJ investigates Equifax stock sales | House weighs tougher rules for banks dealing with North Korea MOREs (R-Wis.) plan to privatize Medicare and for being irrational and self-serving, in the words of two campaign surrogates.

Romney has slipped behind Gingrich in the polls in Iowa, South Carolina and Florida, three early-voting states. The former Massachusetts governors campaign is moving quickly to an all-out attack on Gingrich.