You get banned if:
- You use a third party program or ANY other system to alter ANY variable in the game OR in your account
- Exploit any bug in the game
- Use common sense and just ask yourself if it is fair for the other players what you did, if the answer is no: banned
In your case: 361 upgraded cards in just a few hours.