You wouldn't think eating candy bars will make you athletic. But they market it with athletes and active people playing soccer etc.
They don't show some fat dude sitting in the dark in front of the computer shoving candy and chips and coke in his face and becoming diabetic.
The associations can be immediate if repeated often enough. When picking a product you don't reason "okay this will make my life X", but you feel a familiarity, a draw, a positive emotion. Not necessarily consciously. But especially after a stressful day, in the supermarket you will be more prone to emotional, autopilot handling.
How about chewing gum and mint ads? Many try for messages that are essentially "don't get cock-blocked by your bad breath" or something similar. And they work.
https://pdfs.semanticscholar.org/c86a/142c0ae2d70d95f6292af6...
I doubt pretty girls in ads are actually supposed to mean the goods they advertise make a man more attractive. Who (except teens) would believe that, consciously or subconsciously? You just get attracted yourself and that's enough, simply seeing a pretty girl fires the hormones and neurotransmitters making you feel good about what she advertises, no semantic load necessary.