Presidential campaign formally begins after they are nominated in the national convention, the September before a presidential election, though they might do some informal campaiging beforehand.
Note: You can run without being nominated. (independents such as Donald Trump aren't going to get nominated because they don't belong to a party)