SSI includes with adsense

Discussion in 'HTML & Website Design' started by jasonleexxx, Oct 25, 2005.

  1. #1
    I am trying to do a SSI for my adsense and its not working right. Please help I am using:

    <!--#include file="adsense.html" -->

    Inside adsense.html is :

    <script type="text/javascript"><!--
    google_ad_client = "pub-4606937293897404";
    google_ad_width = 728;
    google_ad_height = 15;
    google_ad_format = "728x15_0ads_al_s";
    google_ad_channel ="";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "0000FF";
    google_color_url = "0000FF";
    google_color_text = "0000FF";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
     
    jasonleexxx, Oct 25, 2005 IP
  2. lorien1973

    lorien1973 Notable Member

    Messages:
    12,206
    Likes Received:
    601
    Best Answers:
    0
    Trophy Points:
    260
    #2
    Will it display a normal set of text in adsense.html? like if you just put "adsense here" in there, will it show that on the page?
     
    lorien1973, Oct 25, 2005 IP
  3. jasonleexxx

    jasonleexxx Guest

    Messages:
    105
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes if i just put text in the html file it works fine
     
    jasonleexxx, Oct 25, 2005 IP
  4. Amsterdam

    Amsterdam Well-Known Member

    Messages:
    361
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #4
    Strange. I've used php includes with no problems so I don't see why SSI should be any different.

    T
     
    Amsterdam, Oct 26, 2005 IP
  5. jasonleexxx

    jasonleexxx Guest

    Messages:
    105
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well I've been told SSI works with adsense so I dont know what the problem is?
     
    jasonleexxx, Oct 26, 2005 IP
  6. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #6
    It does work.

    I use one. Set it up with Dreamweaver as adsense.inc as follows:

    <table border="0" cellpadding="0" cellspacing="0" bgcolor="white" 
    style="border-collapse: collapse"   
    width="100%">
      <tr>
        <td valign="top" align="left"><b><font size="1"><br />ADVERTISEMENT</font></b><br />
    <script type="text/javascript"><!--
    google_ad_client = "pub-xxxxxxxxxxxxxxxx";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_ad_type = "text_image";
    google_ad_channel ="xxxxxxxx";
    google_color_border = "006666";
    google_color_bg = "FFFFFF";
    google_color_link = "006666";
    google_color_url = "006633";
    google_color_text = "006633";
    //--></script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
        <br />
        </td>
      </tr>
    </table>
    
    Code (markup):
     
    minstrel, Oct 26, 2005 IP
  7. Nokia999

    Nokia999 Guest

    Messages:
    1,488
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    0
    #7
    There may be any coding error in your SSI.
     
    Nokia999, Oct 26, 2005 IP
  8. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #8
    Post the URL? It may be on your end (firewall? javascript disabled in your browser?).

    When I first "installed" AdSense, I couldn't see it on my site but others could. Eventually, I figured out that my firewall was blocking it.
     
    minstrel, Oct 26, 2005 IP
  9. jasonleexxx

    jasonleexxx Guest

    Messages:
    105
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    jasonleexxx, Oct 26, 2005 IP
  10. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #10
    Isn't this AdSense?

    Top left

    This is misplaced - inside a table:
    <script language="JavaScript">
    <!--
    
    function SymError()
    {
      return true;
    }
    
    window.onerror = SymError;
    
    //-->
    </script>
    Code (markup):
    Then you have at least three or four repetitions of Google ads with nested tables and divs inside tables - I'm too tired to follow it all but I think you have misplaced tags in there that are screwing it up...
     
    minstrel, Oct 26, 2005 IP
  11. jasonleexxx

    jasonleexxx Guest

    Messages:
    105
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Yes that is the adsense not using SSI. I did that so i could see if it was a problem with my code in general or directly related to my SSI.

    You can see where the adsense not showing up is by using control + F to search for
    "kljnljl"

    thanks
     
    jasonleexxx, Oct 27, 2005 IP