The only solution to this I think is to get the children their own TV, where they can comfortably watch cartoons and other children programs in their room, by this way, the children will begin to see less gambling advertisement ads on TV when their parent are watching a sports program.
If children have access to TV and the internet without limitation, they'll likely come across these gambling advertisements. Nowadays, with plenty of sources of entertainment online, it's too risky for our children to give them full freedom. It's still up to us how to discipline them and provide only what is necessary at their young age. We want our kids to have the same interests as us, if we love sports, we might also want them to enjoy sports. However, gambling is just quite different. This thing is what we call for adults only or mature content, similar to porn shows, with a warning: not for kids.