A Donald Trump campaign advert allegedly removed a clip after it potentially violated federal laws which prohibit active members of the military engaging in political acts.

The reported issue with the ad is that it showed the president shaking hands with national security adviser , a lieutenant general still serving in the US Army – who was seen wearing his uniform in the clip.

As reported in the Daily Beast, the ad may have violated the law, "if not the letter of Defense Department rules" on the matter.

The campaign's YouTube account has since uploaded an updated version of the ad that excludes the clip of McMaster.

The $1.5m TV spot, set to go out nationally, discusses many of the recent decisions made by the Trump administration.

"Donald Trump, sworn in as president 100 days ago. America has rarely seen such success," the narrator says at the beginning of the ad.

"You wouldn't know it from watching the news," says the narrator. The words "Fake News" then flash over images of several different news anchors.

Marking 100 days as President, Trump spent the weekend at a campaign rally instead of attending the annual White House Correspondents' Association dinner.

"I could not possibly be more thrilled than to be more than 100 miles away from Washington's swamp, spending my evening with all of you and with a much, much larger crowd and much better people," Trump told the crowd.

HR McMaster at the Pentagon
White House national security adviser Lt Gen HR McMaster arrives at the Pentagon in Washington on March 16 REUTERS/Yuri Gripas