script to place Adsense on multiple articles?

Discussion in 'AdSense' started by Pixelrage, Mar 27, 2007.

  1. #1
    1) I was wondering what method everyone here uses to place Adsense within a traditional or blog article? Do you manually place the code within the article, or are you using a script or 3rd party software that just requires you to add some code, and the software does the rest?

    Since I was in a rush when I made my site - I manually put the Adsense code into over 100 articles. However, if I ever decide to stop using Adsense, then I have a LOT of work on my hands. What is a better way to do this, for the long-run?

    2) A programmer I work with made me a Javascript code that will call a server-side document that has Adsense code within it. My only question is - will Adsense be able to correctly 'see' what's on the page and display relevant ads, if it's being called from within a javascript file?

    Thanks, and hopefully these questions aren't too confusing :)
     
    Pixelrage, Mar 27, 2007 IP
  2. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #2
    anyone? Does such a thing even exist?
     
    Pixelrage, Mar 28, 2007 IP
  3. ovisopa

    ovisopa Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Your articles are saved in a database or your site is plain HTML ?
     
    ovisopa, Mar 28, 2007 IP
  4. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Everything is all saved in a database. The site was made with a CMS, much like Joomla.
     
    Pixelrage, Mar 28, 2007 IP
  5. 15challenger

    15challenger Banned

    Messages:
    394
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Can anyone tell me a plugin used to place adsense within posts?? I m using Wordpress 2.1. Adsense Deluxe is not working with 2.1. Any other plugin?
     
    15challenger, Mar 28, 2007 IP
  6. ovisopa

    ovisopa Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    in this case is "easy"

    You have to create a small part of code which inserts, let say something like this
    <div style="float:right;width:120px; height:600px;">your ad code</div>

    after xxx characters .. this way you can have something like this http://moving.about.com/od/preparingforyourmove/a/best_time_move.htm

    Anyway this is the most basic thing you can do .. there are much many enhacements you can do on that script , for exemple you can add many adsense codes (one chanel for one category of your articles) into the database, in a separate table and when somebody reads an article aboput SEO it will take the adsense code which have the SEO Chanel ID ..

    The other way is to add some signs when you write the article, like #!ad120x600!# ..and the script to automaticaly parse the text and when a match is find it will replace that code with the adsense code itself.

    It' all about how much knowledge your programer has. :)

    Hope it helps.
     
    ovisopa, Mar 28, 2007 IP
  7. jackburton2006

    jackburton2006 Peon

    Messages:
    5,296
    Likes Received:
    282
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Mighty Adsense.
     
    jackburton2006, Mar 28, 2007 IP
  8. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks! Just to confirm...would the usage javascript would be ok for this task? I just want to make sure that it won't stop Adsense from noticing the content on the page.

     
    Pixelrage, Mar 28, 2007 IP
  9. ovisopa

    ovisopa Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I'm not sure if javascript placement will affect google but it's much trouble less if you are using server side script to automaticaly place ads within articles.

    BTW. I'm using Adsense Deluxe on a wordpress site .. but It's 1.5 old one .
     
    ovisopa, Mar 28, 2007 IP
  10. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I don't know of any server side ones that can do it :(

    I just emailed Google, hopefully I'll get a response by the end of the week. I asked if this was against their TOS, too.
     
    Pixelrage, Mar 28, 2007 IP
  11. bidder

    bidder Active Member

    Messages:
    431
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #11

    hello ovisopa,

    01. I try to use <div style...> in my blog, but the ads not show up. The reason I use div tag was it can specified the location desire. I put it upper right and one upper left. I think this place are strategic position.

    02. adsense script (not use div tag)also not show up when i put within the post body of my blog. I found that other site can do that but mine cannot, why?

    any reply appreciated

    Thank you
     
    bidder, Mar 29, 2007 IP
  12. ovisopa

    ovisopa Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I don;t know where exactly you placed the div .. but if you place it above the article text (in the source code of the php files) like this :

    <div style="float:right;width:120px; height:600px; border:3px solid #00000">your ad code</div><br clear="all">

    you should see at least a black border in there.

    The div is a container for your adsense, adsense itself doesnt need to have div tags or so ...

    Try what I told you above and update me.

    BTW .. what CMS are you using ?
     
    ovisopa, Mar 30, 2007 IP
  13. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #13
    by the way, Google wrote me back and said that it would be ok to do this, but they never answered my question about "would placing the code from javascript disallow the ad from noticing the content on the page."

    As for the code you posted, is it necessary to include a height & width? I'm thinking along the lines of if I ever wanted to use a different ad size (or even switch over to YPN some day, etc).

    As for me, I use Subdreamer CMS
     
    Pixelrage, Mar 30, 2007 IP
  14. massiva

    massiva Active Member

    Messages:
    699
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    78
    #14
    Adsense injection works fine
     
    massiva, Mar 30, 2007 IP
  15. bidder

    bidder Active Member

    Messages:
    431
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #15
    I used blogger
     
    bidder, Mar 30, 2007 IP