The simplest and most reliable route is to buy a game card or a monthly subscription code. They're inexpensive and give you a great value for the play time you get, so it's well worth picking one up rather than hunting for codes.