The mayor had to campaign for months before he managed to ________.
to gain victory in a political vote or ballot