Players are apparently warned very frequently not to gamble, so of course they had notice. The NFL also has to know their constant gambling promos are going to affect people. I'm also willing to believe there are players who gamble using their friends/family as proxies.
Ultimately the NFL had a big hand in creating this problem, but the players (who are absolutely responsible) are the ones who bear the brunt of the blowback.