The answer is: win the nomination campaign with the certain political party that the candidate belongs. Before running as the party's candidate in the United States presidential election, a candidate must first win the the nomination campaign in her/his political party.