1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to avoid the invalid click at your ads?

Discussion in 'Guidelines / Compliance' started by angellica2017, Sep 19, 2006.

  1. #1
    HOW TO AVOID THE INVALID CLICK AT YOUR ADS ?


    1. Disable the right click!
    AS we know on Google's policy that : clicking on Google ads must not result in a new window...."
    Clicking on the ads with right click and open it in a new tab/window will be categorized as invalid click. This script is useful for avoiding the invalid clicks at your ads! Here's a script for disabling the right click on your browser, so visitors could not open your ads in new tab or new window.

    1st code :
    <SCRIPT language=JavaScript>
    <!--
    var message="Put your line 1 here \n \n Put your line 2 here \n \n Put your line 3 here";
    function click(e){if(document.all){if(event.button==2||event.button==3){alert(message);return false;}}
    if(document.layers){if(e.which==3){alert(message);return false;}}}
    if(document.layers){document.captureEvents(Event.MOUSEDOWN);}
    document.onmousedown=click;

    function MM_displayStatusMsg(msgStr) { //v1.0
    status=msgStr;
    document.MM_returnValue = true;
    }
    //-->
    </SCRIPT>

    (This script works on IE browser only)


    2nd code :
    <script type="text/javascript">
    <!--
    function disableRightClick(e)
    {
    var message = "Change this text with your message";
    if(!document.rightClickDisabled) // initialize
    {
    if(document.layers)
    {
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
    }
    if(document.layers || (document.getElementById && !document.all))
    {
    if (e.which==2||e.which==3)
    {
    alert(message);
    return false;
    }
    }
    else
    {
    alert(message);
    return false;
    }
    }
    disableRightClick();

    function MM_callJS(jsStr) { //v2.0
    return eval(jsStr)
    }
    //-->
    </script>

    (This script works on most browsers)


    2. Changing the code
    google_adtest='on';
    To remove the ads testing for your web :
    Remove the google_adtest='on'; at your code

    3. Edit in the registry Editor :
    [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt]
    [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Google AdSense Preview Tool]
    @="http://pagead2.googlesyndication.com/pagead/preview/en/preview.html"
    "Flags"=dword:00000001


    To remove the current registry key:
    [-HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Google AdSense Preview Tool]

    I hope that could be useful for y'all...

    Peace

    Angel of Adsense
     
    angellica2017, Sep 19, 2006 IP
  2. INV

    INV Peon

    Messages:
    1,686
    Likes Received:
    101
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You misunderstood the TOS. Google means that you shouldnt modify the code to make the AD open in a new window. Users clicking on your ads via right click is totally fine. These right clicks or middle buttons to open new tab clicks are still counted and are valid!
     
    INV, Sep 19, 2006 IP
  3. angellica2017

    angellica2017 Peon

    Messages:
    351
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Are you sure about that? ;)
     
    angellica2017, Sep 19, 2006 IP
  4. Abhik

    Abhik ..:: The ONE ::..

    Messages:
    11,337
    Likes Received:
    606
    Best Answers:
    0
    Trophy Points:
    410
    Digital Goods:
    2
    #4
    its ok if someone right click and select to open the ad in new window. its completely in TOS. but, u can not modify the adcode to open the ads in new window
     
    Abhik, Sep 19, 2006 IP
  5. mike390

    mike390 Peon

    Messages:
    262
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ohh i always thought it was the other way around... still the right click is a good idea for protecting content from amateurs...
     
    mike390, Sep 19, 2006 IP
  6. shenron

    shenron Notable Member

    Messages:
    4,965
    Likes Received:
    374
    Best Answers:
    0
    Trophy Points:
    295
    #6
    If you have a tabbed browser you can always select the option "open links ina a new window", which means that all these users would be going against TOS and it wouldn't be your fault, so yes, it's ok to open links in a new window. ;)
    In any case thx a lot for those scripts. ;)
     
    shenron, Sep 19, 2006 IP
  7. angellica2017

    angellica2017 Peon

    Messages:
    351
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Some webmaster said it'd be going against TOS and some said no problem. Have y'all email Google about this case?
     
    angellica2017, Sep 19, 2006 IP
  8. MySpace

    MySpace Peon

    Messages:
    144
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    The easiest way is to disable JavaScript on your browser.
     
    MySpace, Sep 19, 2006 IP
  9. anjan

    anjan Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    thats right u should not modify the code to open in a new window,thanx
     
    anjan, Sep 19, 2006 IP
  10. Icheb

    Icheb Peon

    Messages:
    1,092
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #10
    - Think about what you wrote.
    - Use some common sense.
    - Forget about this thread.

    Can't believe these n00bs.
     
    Icheb, Sep 19, 2006 IP
    INV likes this.
  11. mvandemar

    mvandemar Notable Member

    Messages:
    2,409
    Likes Received:
    307
    Best Answers:
    0
    Trophy Points:
    230
    #11
    Well, ok, yeah, she was wrong, this time at least... but dude, she got here the month before you did. You're more of a newb than her. :p

    -Michael
     
    mvandemar, Sep 19, 2006 IP
    MattUK likes this.
  12. Icheb

    Icheb Peon

    Messages:
    1,092
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Since obviously the later you joined this forum the less knowledge you have.
     
    Icheb, Sep 19, 2006 IP
  13. angellica2017

    angellica2017 Peon

    Messages:
    351
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #13
    How could be ?
     
    angellica2017, Sep 21, 2006 IP
  14. Obelia

    Obelia Notable Member

    Messages:
    2,083
    Likes Received:
    171
    Best Answers:
    0
    Trophy Points:
    210
    #14
    Because obviously DP is the fount of all webmaster knowledge, and before DP we were all just blundering about in ignorance, trying to build websites by drawing pictures in wax crayon on our monitors.
     
    Obelia, Sep 21, 2006 IP
  15. ~Julia~

    ~Julia~ Peon

    Messages:
    134
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #15
    That gave me a chuckle.
     
    ~Julia~, Sep 21, 2006 IP
  16. matthewk

    matthewk Guest

    Messages:
    265
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #16
    thats what i thought too
     
    matthewk, Sep 21, 2006 IP
  17. zaya24

    zaya24 Peon

    Messages:
    97
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Not if you want your adsense to show.
     
    zaya24, Sep 21, 2006 IP
  18. akamaimommie

    akamaimommie Peon

    Messages:
    173
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Protect content from amateurs? You mean, so they can't right click and view source? All people have to do is click "View" then select "source" in their browser toolbar to view your source.

    Sorry, but disable right click is kinda useless, annoying for surfers, and lame.
     
    akamaimommie, Sep 21, 2006 IP
  19. khan11

    khan11 Active Member

    Messages:
    615
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #19
    thats good idea,but will take time to do, i cant mess with my windows files as im afraid of loosing my stuff. Anyways nice idea.

    thanks
     
    khan11, Sep 21, 2006 IP
  20. ivenms

    ivenms Peon

    Messages:
    334
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #20
    To preent invalid click, dont see the ads.That is the better option.
     
    ivenms, Sep 21, 2006 IP