Are Trump's US government funded ads illegal?

President Trump has faced criticism after fronting adverts which were paid for by the US government.