possible to hide adsense publisher ID?

Discussion in 'AdSense' started by thebulltrader, Feb 22, 2007.

Thread Status:
Not open for further replies.
  1. #1
    i have a ton of sites running the same adsense publisher ID, and i am scared that competitors will take my ID and do bad things with it. is there any way to hide it from being visible in the source of the HTML?
     
    thebulltrader, Feb 22, 2007 IP
  2. rehash

    rehash Well-Known Member

    Messages:
    1,502
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    150
    #2
    you cannot hide it, otherwise how would google track clicks and impressions from your sites?
     
    rehash, Feb 22, 2007 IP
  3. Pinvader

    Pinvader Guest

    Messages:
    239
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That would be cool if we can hide it :p
     
    Pinvader, Feb 22, 2007 IP
  4. Jarodboy

    Jarodboy Prominent Member

    Messages:
    7,233
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    330
    #4
    It's not possible yet but i think it will be in the near future, there are lots of complaints about that
     
    Jarodboy, Feb 22, 2007 IP
  5. vatu

    vatu Active Member

    Messages:
    372
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #5
    You Can,t do that dear
     
    vatu, Feb 22, 2007 IP
  6. CountryBoy

    CountryBoy Prominent Member

    Messages:
    8,970
    Likes Received:
    754
    Best Answers:
    0
    Trophy Points:
    360
    #6
    It can't be done, because to do that you'd have to modify the code. This is the biggest oversight ever from Google. They are so happy to ban people, but they do nothing at all to protect their publisher ID from illicit use.
     
    CountryBoy, Feb 22, 2007 IP
  7. qwestcommunications

    qwestcommunications Notable Member

    Messages:
    8,868
    Likes Received:
    172
    Best Answers:
    0
    Trophy Points:
    233
    #7
    Maybe he/she means hiding it the code from the user but somehow still enable google to track it.
     
    qwestcommunications, Feb 22, 2007 IP
  8. leandar

    leandar Well-Known Member

    Messages:
    3,929
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    170
    #8
    millions of publisher got banned from this google ugly thought... why they are showing our pub id to other Fu*kers ?
     
    leandar, Feb 22, 2007 IP
  9. JenniP

    JenniP Peon

    Messages:
    250
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #9
    What you could possibly do is just make it a bit more difficult to get the data, if you took the red section out of your main page into an external javascript file, then included it when you wanted the ad.

    <script type="text/javascript"><!--
    google_ad_client = "xxxxxxxxxxxxxxxxxxx";
    google_ad_channel = "xxxxxxxxxxxxx";
    google_alternate_ad_url = "http://www.digitalpoint.com/ads/ads.php?t=seo";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_color_border = "FF88FF";
    google_color_bg = "FFCCFF";
    google_color_link = "000066";
    google_color_url = "222222";
    google_color_text = "222222";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    So you would have in your page

    <script type="text/javascript" src="myGoogleAdSetup.js"></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    And myGoogleAdSetup.js would contain

    <!--
    google_ad_client = "xxxxxxxxxxxxxxxxxxx";
    google_ad_channel = "xxxxxxxxxxxxx";
    google_alternate_ad_url = "http://www.digitalpoint.com/ads/ads.php?t=seo";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_color_border = "FF88FF";
    google_color_bg = "FFCCFF";
    google_color_link = "000066";
    google_color_url = "222222";
    google_color_text = "222222";
    //-->

    Should still work, however someone would have to download the seperate myGoogleAdSetup.js file.

    Yes its not going to stop anyone who really wants to get at it however it would stop a casual abuser, especially if you used one of the tricks to stop a file being accessed unless its referer was from your site (A trick I use all the time on some of my sites to make the CSS file harder to rip off).

    Again I've just done a quick test locally and it works, although one major caveat I have no idea if this would break any Adsense TOS, however your not changing any of their code, and would have a side benefit of being able to be cached client side saving a little bit of download on each page hit.

    The trouble with anything on the web, if a web browser can process it you can get access to it.

    Jen
     
    JenniP, Feb 22, 2007 IP
Thread Status:
Not open for further replies.