There is no ending to reach in the conventional sense. The closest thing is the Campaign mode, Rise of the Empire, which has a defined story and a credits sequence.
Outside that, the game is designed to be played rather than completed. The advice worth following is to keep grinding the galactic conquest and online modes until you hit the rank of General with everything at Legendary. That takes a long time, which is the point — there is always another medal to chase.