Best Method of Placing Adsense in Articles

Discussion in 'AdSense' started by Anduril66, Jan 25, 2007.

  1. #1
    I would like to create several pages of content and put an Adsense box in the midst of each page of content, preferably in slightly different areas on each page.

    Can you create a new html file with just the Adsense code and use PHP includes to place this "Adsense file" in each article?

    Is this the best method of including the same Adsense code on multiple pages?

    Thanks,
    Daniel
     
    Anduril66, Jan 25, 2007 IP
    fortgo likes this.
  2. casperl

    casperl Peon

    Messages:
    1,560
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #2
    NO. That is really bad. Assume that sth changed (e.g. you want to replace adsense ads with Yahoo ones or just want to change channel info) then you need to edit all filees manually or develop a separate program to do that.

    So having a CMS or at least a custom solution to change the ads in bulk is needed! Else you can find yourself in trouble later.

    About placement. I did not experience this much but placing a square ad at the start of the articles (right placement) did not work for me. Now i am adding ads at the end of eacp page of my tutorials. But as i said i did not practice this much..
     
    casperl, Jan 25, 2007 IP
  3. Anduril66

    Anduril66 Well-Known Member

    Messages:
    390
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    108
    #3
    But I would create an ad.php file ie:
    and then include that file in each article ie.
    , so if I would like to change or remove the Adsense ads I can edit ad.php (or make ad.php a blank file). Is this similar to what CMS's do? Would I have any problems with the Google ad finding keywords on my page if I dynamically included it in pages over if I had placed the code in a flat file?

    Thanks
     
    Anduril66, Jan 25, 2007 IP
    nks likes this.
  4. nks

    nks Well-Known Member

    Messages:
    1,602
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    160
    #4
    That sounds like a good way of placing adsense, Auduril66. I should have thought of that in the first place....
     
    nks, Jan 25, 2007 IP
  5. fortgo

    fortgo Peon

    Messages:
    723
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes, this sounds really as a great idea
    and thanks for sharing it in here
     
    fortgo, Jan 25, 2007 IP