Blocking my subdomain (dev) from adsense

Discussion in 'AdSense' started by Frank_WHH, Oct 16, 2008.

  1. #1
    I have a development and a live environment. How can I disable the impressions from my development environment (dev.domain.com) so that my adsense stats are real and not counting all my personal impressions and programmers impressions...

    I want the ads to show on the dev site (and they do show) but don't want the impressions to count in adsense stats.

    thanks you
     
    Frank_WHH, Oct 16, 2008 IP
  2. Sanbon

    Sanbon Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You could just create a separate channel for the dev site.
     
    Sanbon, Oct 16, 2008 IP
  3. tharshan

    tharshan Active Member

    Messages:
    333
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    if u are still using old style codes in adsense. you can simply change the adsense pub-id to something like : pub-test
     
    tharshan, Oct 16, 2008 IP
  4. angilina

    angilina Notable Member

    Messages:
    7,824
    Likes Received:
    186
    Best Answers:
    0
    Trophy Points:
    260
    #4
    You want adsense to not count the impressions when you visit your site right?

    I think it is not possible. The only solution is to remove the ads. But even if adsense is counting the impressions when you visit your site, there is no harm in it.
     
    angilina, Oct 16, 2008 IP
  5. Frank_WHH

    Frank_WHH Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks.
    But the thing is that I take my database from the live environment, put it on my dev. Work on the website (me and programmers can make more than 1000 clics in a day while working). When I'm done, I upload the code and database from dev to live.

    So I don't want to have to always change the Adsense information in the code (between dev and live).

    What I would like is to block subdomain from counting clics, example no: dev.mydomain.com

    Either with Adsense tools, robots.txt or php code...

    What do people do with live environment and dev environment?

    Thanks!
     
    Frank_WHH, Oct 16, 2008 IP
  6. Frank_WHH

    Frank_WHH Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Since I'm in /admin pages on my dev site, I just removed the blocks from appearing in/admin*

    Thanks for suggestions!
     
    Frank_WHH, Oct 16, 2008 IP
  7. Dollar

    Dollar Active Member

    Messages:
    2,598
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    90
    #7
    Take a screenshot of the adsense blocks and shape to the mentioned diameter and put them in with image tag. so there fake but looks the same. That should work.
     
    Dollar, Oct 16, 2008 IP
  8. fct

    fct Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    i had this problem tonight. i just added a robots text just to my dev env. hopefully wont hurt my live site.
     
    fct, Oct 22, 2008 IP