The taste of sugar is perceived as positive. This puts you in a better mood. This makes you likelier to associate the ads with positive feelings. This in turn makes it likelier for you to react to ads because you associate those products with positive emotion.
Brains are really good at association. Really bad at cause and effect.
If you want to prove this to yourself, take a date out on a roller coaster or bungee jumping. When your hearts are racing and you feel alive, look at each other. The association you form pretty much guarantees a positive date, even though the person you were with had nothing to do with the adrenaline rush.
The taste of sugar is perceived as positive. This puts you in a better mood. This makes you likelier to associate the ads with positive feelings. This in turn makes it likelier for you to react to ads because you associate those products with positive emotion.