If an AI faction reaches the 15 or 45 province objective before you, they win, and you lose. But you can still keep playing, you just can't win, so the campaign won't end.