Heya, ScriptNeeded. Welcome to TSDN!
So what you're saying is, you want to calculate the number of UNIQUE impressions per time period. Is this correct?
Yes you are right, if you know about google adwords and adsense you understand me. What i want to do is to implement something similar to those great ads engines(of course very simple ones). Firstly i need to implement only for myself (for my site only), so it will be something similar to adwords, and then i'll give an opportunity to other site owners to earn money on my ads collection, so it will be something similar to adsense.
The code for calculating views is very simple, it is a servlet which increments hitCount field in database table record, it do so just before sending response to javascript client which triggered request.
Now i have another question regarding this, the question is how to calculate clicks on ads. The simplest solution is to include id of the ad record in a parametr of the request to servlet, and servlet then increments clickCount field of specified ad record.
Does anybody know how other ad/banner networks do this?
and please excuse me for dummy questions, i am new to ad/banner networks business.