Don't you play as the 501st throughout the entire campaign mode? Showing their victories? I thought that part was canon.
It is. JarJar over there has a very skewed outlook on what is and isn't Canon. Story mode in Star Wars videogames is considered C-Canon. Gameplay mechanics aren't.