Most new codes are locked to one phone's IMEI (International Mobile Equipment Identity) number. If you activated it on your Samsung phone yesterday, and today you try to use that same new code on your iPad, it will reject it.
You may see websites promising "free" or "cracked" activation codes.