getting data to display ads
I want to code a JS file that enables me to give a code to my users to place on their site so that I'll display ads on their site. the code they will place on their site is like this:
But how that display_ad.js file (hosted on my server) will collect the data in the code (like height, width, partnerid,etc) to decide what to desplay?
partnerid = "3832";
I really need it. any help or refering to a tutorial is highly appreciated
thanks in advance