Most likely, the code you use on your site is connected to a script (meaning the script takes the code), which first records that there's a hit on your site with the ad, and then returns whatever the ad may be (a link, image, etc) for display on your site.
Though, I'm not sure... This wouldn't be good if you didn't get traffic for a few days!
However, why are you asking? Just curiosity?