Campbell was elected as a Republican to the Forty-fifth Congress. He was an unsuccessful candidate for reelection in 1878. He was again elected to the Forty-seventh, Forty-eighth, and Forty-ninth Congresses. He served as chairman of the United States House Committee on Manufactures during the Forty-seventh Congress. He was an unsuccessful candidate for renomination in 1886.
