They don't only monitor you, but your friends and close social relationships as well (both physically and emotionally close based on interaction between you, as well as location proximity) for information - you've most likely interacted with someone or entered an area where this craving was stimulated, thus predicting you will crave it, thus providing targeted advertising at just the right time.
Like they give you 3 scoops of it and add toppings and all.