How can i show adsense ads only 1 time per ip per day?

Discussion in 'AdSense' started by nevret2, Dec 18, 2007.

  1. #1
    hello,

    i got an email from bidvertiser too, they said there are invalid clicks , so i know now adsense didnt click me for other reasons, like close ads to the images etc

    now i want the next: i want, one ip can not see the ads more than 1 time a day, with this people cant click more than once, so there will be no invalid clicks right?


    how can i do this, any ideas?

    what i think: is there any ad rotator etc which will show my adsense ads only 1 time per day?

    an another question: if i put adsense in a frame in a empty page, will adsense ban me?

    note: i am gona start a site with a classmate, i make the site and we use his account,

    and?
     
    nevret2, Dec 18, 2007 IP
  2. 1one

    1one Active Member

    Messages:
    115
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Hello! This my solution in PHP (no more than 1 ADS show for each IP per day):

    ## BLOCK BY IP ##
    @$ip = getenv("REMOTE_ADDR");
    @$contents = file("ip-".date("y-m-d"));
    $var=0;
    for($i=0;$i<count($contents);$i++) {
    $tmps = ereg_replace("\r", '', $contents[$i]);
    $tmps = ereg_replace("\n", '', $tmps);

    if($tmps==$ip) {
    $var=1;
    break;
    };
    };


    if ($var == 1) {
    ##blocked do not show ads
    } else {
    echo "

    YOUR ADS CODE HERE

    ";
    }
     
    1one, Dec 18, 2007 IP
    leandar likes this.
  3. convergent

    convergent Active Member

    Messages:
    74
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    95
    #3
    You could use an ad management system like OpenAds or AdPeeps. Note that this capability doesn't exist in OpenAds 2.1.
     
    convergent, Dec 18, 2007 IP
  4. bivie

    bivie Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It seems if you could block the ad if they've already clicked it would be better. Blocking the view of
    the ad just because they've already seen it could cost you some money, and them just looking doesn't
    hurt anything. I know there are some tools that will do this (maybe those mentioned above), but last
    time I researched them the feedback wasn't very good.
     
    bivie, Dec 18, 2007 IP
  5. ravemaster

    ravemaster Peon

    Messages:
    108
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think you can used Affiliate banner replace that
     
    ravemaster, Dec 18, 2007 IP
  6. leandar

    leandar Well-Known Member

    Messages:
    3,929
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    170
    #6
    google are blocking duplicate clicks from same IP in a time , but i wonder why google cant use any code to block daily based illegal clicks ... adsense $ucks in this way
     
    leandar, Dec 18, 2007 IP
  7. wiseassoffice

    wiseassoffice Peon

    Messages:
    345
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I second that leandar, seems like a simple thing. Google's the biggest fish in this pond they should be able to work that little bid of code into Adsense.
     
    wiseassoffice, Dec 18, 2007 IP
  8. nevret2

    nevret2 Peon

    Messages:
    518
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    well also bidvertiser contacted me and said their were some invalid clicks, they give me 10ip's, all from usa, i want to show 1 same ad only twice per 24 hours and then it must replace it with an another ad, can someone help me with this? a script you know etc?
     
    nevret2, Dec 19, 2007 IP
  9. wiseassoffice

    wiseassoffice Peon

    Messages:
    345
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #9
    wiseassoffice, Dec 19, 2007 IP
  10. nevret2

    nevret2 Peon

    Messages:
    518
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    hej 1one

    i have used your code, but its saying the next when i open the file.php:

    ## BLOCK BY IP ## @$ip = getenv("REMOTE_ADDR"); @$contents = file("ip-".date("y-m-d")); $var=0; for($i=0;$i

    i have replaced the text ''YOUR ADS CODE HERE' with the ad

    can you please tell me what went wrong?

    thnx,
     
    nevret2, Dec 19, 2007 IP
  11. baumann93

    baumann93 Peon

    Messages:
    2,268
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #11
    You really do not want to limit one view of ads per IP. It is like removing ads from your website... You need to be registering clicks, not views.
     
    baumann93, Dec 19, 2007 IP
  12. nevret2

    nevret2 Peon

    Messages:
    518
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #12
    i have the next options:

    -i use this code and choose 2 ads per ip per day, on alexa i see 1.8 pages per day per user visitited on my site
    - i use a script which will show my adsense code once a day then it will replace it with an another ad

    for the second one i can pay

    hope someone can help
     
    nevret2, Dec 19, 2007 IP
  13. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #13
    Look at the OpenAds, it's a popular open-source ad management script (former phpAdsNew). It has many options.
     
    wmtips, Dec 19, 2007 IP
  14. the rebel

    the rebel Active Member

    Messages:
    271
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #14
    thanx for these info i gonna try open ads
     
    the rebel, Dec 19, 2007 IP
  15. FanAddict

    FanAddict Notable Member

    Messages:
    7,017
    Likes Received:
    376
    Best Answers:
    0
    Trophy Points:
    230
    #15
    FanAddict, Dec 19, 2007 IP
  16. abroad

    abroad Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    i thing if you have big traffic there wont be any problem
     
    abroad, Dec 19, 2007 IP