So I am not as qualified in Javascript as I am in PHP but I do know how to write it. My only problem right now is that I have been studying codes and one thing I cant figure out is how google manages to display there code and count impressions with it.. Anyone know of a little snipit that I can study for reference?? Would be willing to pay a small fee for it but not much as I just want to study the methods of the way this is done!
Google can display their code because the location of the js you point to in adsense (the href of the script tags) actually points to a server side script that then outputs the js as the last action, so you're actually accessing a php or whatever script that tracks and does it's magic, and then it outputs the relevant code to you. Hope this helps.