I just caught a bit of "Pride of the Yankees" on TCM. Footage of Yankee Stadium in this 1942 film shows a prominent "No Betting" sign on the facade just to the left of the scoreboard in CF. I see it in this 1950 photo, so it was presumably later replaced by ads at some point. Of course, now we have MLB rolling out the red carpet for betting on games.