I'm thinking about making an ad network as an experiment and for learning a new server language.
I can't understand how Google AdSense knows what HTML is on a page. The request to googlesyndication.com appears to send them the current page's URL, but no HTML. How, then, do they know what is on the page?! Pages will look different for different users, even on the same URL. Some URLs will be behind passwords, yet AdSense still shows relevant adverts.
I don't understand what they are doing. Can you tell me how they do it?