1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Placing AdSense within SSI?

Discussion in 'Placement / Reviews / Examples' started by Weatherstorm, May 17, 2006.

  1. #1
    I'm about to sign up for an AdSense account.

    Instead of copy/pasting the code into every .html document, is it possible I can make a file something like ...

    adsense.html

    and have a Server Side Include target that file? This way if I ever change my advertising scheme, or just wanna get rid of AdSense alltogether I only have to edit the adsense.html file and all of the other pages in the site are left untouched.

    Some problems I see with this ... (i'm no expert, these are just logical obstacles):

    Would the spiderbot read the adsense.html file for specific targetting information? Or would the bot read whatever file it's in, like index.html?

    Would the ads recycle when users go to different sections of the site, or would the ads be the same throughout the entire site?

    If both of those are true, how can I specify what keywords the bot searches for?

    Thanks for any and all help!
     
    Weatherstorm, May 17, 2006 IP
  2. enQuira

    enQuira Peon

    Messages:
    1,584
    Likes Received:
    250
    Best Answers:
    0
    Trophy Points:
    0
    #2
    the SSI will generate plain html so everything will be the same.
    the bot doesn't crawl the adsense code, it crawls the pages generated and hence ads will target the actual content.
    You cannot specify the keywords for the bot, it will read the content and generate targetted ads.
    Hope that helps
     
    enQuira, May 17, 2006 IP
  3. Weatherstorm

    Weatherstorm Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3

    Yes, it helps alot thank you!

    It also makes it more convenient to me so I can do a lot less work when revamping the whole page =)
     
    Weatherstorm, May 17, 2006 IP
  4. gadgetsguy

    gadgetsguy Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I do something very similar on alot of pages and it works just fine. SSI gets parsed at the server level, so googlebot and the media partners bot (adsense crawler) are none the wiser that SSI was even used.

    Do yourself a favor and make the included page adsense.php though, so that you can include it in any type of site, and it will be more versatile with new sites and backends you may use in the future.

    you can make ANY .html page a .php page just by renaming it, and it will function the exact same way as before.

    .php will just give you much more flexability for future use if you ever ad any scripts or database-driven elements to your page!

    GG
     
    gadgetsguy, May 19, 2006 IP
  5. gadgetsguy

    gadgetsguy Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Another very cool way about it is to use PHPAdsNew (free) to serve your adsense. You can make a publisher for each size adsense you want, and can switch them in/out easily for benchmarking against each other if testing the performance of a certain ad size (and/or color combination) ...

    Or in my case I do blogs, and I have a partner, so I use PHPAdsNew to split the adsense revenue with him, so that I do not have to cut him a check each month ... I put his ad and my ad in a publisher zone, and let PHPAdsNew serve the ads 50/50

    PHPAdsNew (input them as HTML Ads) works very well for trying different ad formats on the fly and/or revenue sharing, as well as even rotating adsense with other sponsors too (such as chitika, etc). Sometimes I have adsense above my article, sometimes I have chitika ads. The ratio each ad is displayed at is 100% your choice.
     
    gadgetsguy, May 19, 2006 IP