How to add Adsense on Number of Pages

Discussion in 'AdSense' started by GAdsense, Feb 24, 2007.

  1. #1
    I would like to know about how to add adsense code on a site having many pages, including shopping cart pages.

    I hope to hear as many solutions as possible.

    Thanks.
     
    GAdsense, Feb 24, 2007 IP
  2. 8everything

    8everything Peon

    Messages:
    16,350
    Likes Received:
    903
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you can as easy as possible? If you create your site with PHP tables, you can create a seperate PHP file (lets say.. a footer.php for an adsense ad) then place that footer file in each of your pages so this ad will appear in each page.

    I hope that makes sense.. you really gotta know PHP first ;)
     
    8everything, Feb 24, 2007 IP
  3. GAdsense

    GAdsense Well-Known Member

    Messages:
    1,247
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Yeah, it makes sense but at the same time learning PHP so fast will be a .... ;)

    Need more solutions guys! :)
     
    GAdsense, Feb 24, 2007 IP
  4. toughguy

    toughguy Well-Known Member

    Messages:
    846
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    118
    #4
    Hi,
    It is good to have Adsense Ads scripts embedded in scripts for sidemenu, title, header, footer, etc as pointed by everything.. It helps in updating the scripts very easily..

    Regards,
     
    toughguy, Feb 24, 2007 IP
  5. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #5
    to include adsense via PHP SSI in static HTML pages is easy and needs NO advanced PHP skills - it helps you to centralize all changes in ad-units or to remove ad-units as needed making changes on a single file only
    I have implemented the a.m. published system on thouands pf pages on my site successfully

    soon i will implement a same version of SSI for the footer that may include a Googel adsense search box on each page
     
    hans, Feb 24, 2007 IP
  6. swapnil90

    swapnil90 Well-Known Member

    Messages:
    1,528
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    115
    #6
    u can post it in forums that are capable of using HTML within a post
     
    swapnil90, Feb 24, 2007 IP
  7. GAdsense

    GAdsense Well-Known Member

    Messages:
    1,247
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    140
    #7
    Exactly .... this was something related I was talking about. I have seen a method where you put the google adsense code in a file with .js extension.

    I am not remebering the code which people uses to call that file.

    Your idea sounds to be little different ... I read that in a glance.

    This seems to be a php solution. First of all I am having window hosting server so will it work, what I am going to do then?

    Since you will reply after some time so I suppose that yes, we can host this adsense php solution on window server.

    Secondly, I understood the part of creating the files on server.... let's say if I have two files namely "adsense-atf" and "adsense-ftr" under "adsense" folder of my server so will this be the code pasted on the pages?

    <?php include('http://www.your_site-com/adsense/adsense-atf.tpl'); ?>

    Is .tpl the extention?

    Is it going to work in html pages, if so then windows server won't be a problem...

    Thanks for all your help :)

    I am not a native english speaker and I think I can't understand you. Could you please elaborate it in easy words?

    Thanks! :)
     
    GAdsense, Feb 24, 2007 IP
  8. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #8
    1.
    YES
    .tpl is the file extension I use
    under linux / PHP I can use almost any unless it conflicts with my apache config = hence NOT a htm/html/shtml extension !!
    I could use
    .txt definitely if i include only javascript like adsense

    2.
    sri NO experience at all with WIN server and its solutions

    but

    i also linked in a.m. page - lower section - to
    http://www.kriyayoga.com/how_to/how_to_adsense_ssi.html
    a complete equivalent perl - CGI solution I published much earlier

    an important factor is to tell PHP to parse html files for PHP-SSI
    an equivalent would exist for perl-SSI

    under Linux we would enter such additional config in .htaccess

    I am sure someone here knows the exact win-solution

    3.
    what is your native language pls ?
    I may be able to help
     
    hans, Feb 24, 2007 IP