Adsense within JS code?

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

  1. #1
    I was wondering if there would be any "cons" to putting my article's Adsense code within Javascript...for instance, I'd create a file that would simply have the Adsense code within it....then, each article would have a Javascript code calling up that file.

    The only reason I'd do this is so that I can change ad types whenever I want, without having to open and edit 100's of articles individually.

    Beyond the fact that a minority (?) of web users have blocked Javascript, are there any other negative factors in doing this?
     
    Pixelrage, Feb 22, 2007 IP
  2. alemcherry

    alemcherry Guest

    Best Answers:
    0
    #2
    If you use any server side scripts, it will be a lot more easier. I am not sure how google is going to react to your idea, since when mediabot spider your page, it is not going to see the adsense code.
     
    alemcherry, Feb 22, 2007 IP
  3. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I was afraid of that. Do you think this is also the case for CMS-driven websites where Adsense is used within "plugin zones"? It seems like my banners are WAY off, in regard to what's being displayed. Spas, file management software, and other stuff that has nothing to do with my site.
     
    Pixelrage, Feb 22, 2007 IP
  4. Pierce

    Pierce Active Member

    Messages:
    634
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    95
    #4
    You definatly need the code to display on the page.

    So if a user were to view source, they would be able to see the adsense info.

    You could look into http://openads.org (phpadsnew) i believe that software can hardcode ads into the html.

    Pierce
     
    Pierce, Feb 22, 2007 IP