(CNN) - On the same day a federal judge examined his lawsuit challenging President Obama's health care law, South Carolina Attorney General Henry McMaster launched a campaign ad touting his opposition to the bill.
McMaster is one of several state Attorneys General who filed the high-profile lawsuit in a Florida court shortly after the president signed the bill, claiming that the new legislation infriges on legal and budget matters traditionally left to the states.
But because a handful of the plaintiffs are also seeking higher office, including McMaster and Florida Attorney General Bill McCollum, Democrats have accused the lawsuit of being politically motivated.
That isn't stopping McMaster from using the bill in a new ad for his gubernatorial campaign.
"Family man, Christian conservative, Henry McMaster has worshiped here his entire life," a narrator says in the ad. "As our Attorney General, McMaster challenged Obama's health care takeover and defended our state's rights."
McMaster is considered a frontrunner for the GOP nomination. His primary opponents are Rep. Gresham Barrett, Lieutenant Gov. Andre Bauer and state Rep. Nikki Haley.
Asked if the campaign had any qualms about using the legal action in a political ad, McMaster spokesman Rob Godfrey said the lawsuit is a key example of the candidate's courage and leadership abilities.
"Henry's executive experience, courage to act and ability to lead make him uniquely qualified to be South Carolina's next governor," Godfrey told CNN. "There is no better example of a time when Henry had the courage to act and the ability to lead than when he organized state attorneys general to stand up to the Obama Administration's assault on our state's rights."