c# - Tracking ad impressions (views) and preventing fraud -


i've been trying create little ad system users place peice of ad code on own site. i'm sure has been mourned on many times surprising how hard find info. using asp.net mvc 4 , javascript track impressions , clicks , prevent impression , click fraud.

this code placed on publishers site:

<script>     var gv = { siteid: 1 };     (function (d, w) {         function a() {             var s = d.createelement('script');             s.type = 'text/javascript';             s.async = true;             s.src = 'gv.js';             d.getelementsbytagname('body')[0].appendchild(s);         }         if (w.attachevent) { w.attachevent('onload', a); } else { w.addeventlistener('load', a, false); }     }(document, window)); </script> 

from there gv.js make call ad json info , display ad , send request track ad has been viewed. stopping user refreshing page constantly? 1 thing note users can anonymous , not logged in general public kind of thing.

i'm sure has been mourned on many times surprising how hard find info.

+1 had problems finding info too, solutions listed here:

prevention methods click fraud on advertisements , implementation

this 1 of awkward times when "should" close duplicate cant due active bounty , missed amoung comments


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -