September 2017
Honestly, not much you can do, other than look for a site that sells discounted codes online, or purchase one from Origin/Steam/retailer when it is on sale. A modern game without a code, or even a used game with a code is often useless as most games are now linked to accounts by the code and it is only good once. This is the way distributors are trying to block out the secondary used market and keep more money for themselves.
So unless someone else here has a better idea, is sounds to me like you bought a shiny coaster for your drinks.
September 2017
Only thing you can do is to see if you can return it for a refund.