Google AdSense

Discussion in 'ASP.NET / ASP.NET Core' started by darena1009, Oct 8, 2008.

  1. I am having problems adding google AdSense to my site. I would like to put it in the master page. This is what I tried:





    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">


    <asp:Table ID="Table1" runat="server" Height="280px" Width="687px" BorderColor="Black" BorderStyle="Solid">


    <asp:TableRow runat="server" BorderColor="Black" BorderStyle="Solid">


    <asp:TableCell runat="server" BorderStyle="Solid"></asp:TableCell>


    <asp:TableCell runat="server" BorderStyle="Solid" Width="100px">


    <script type="text/javascript">


    google_ad_client = "pub-2873172713975597";


    /* 120x600, created 9/29/08 */


    google_ad_slot = "4451986149";


    google_ad_width = 120;


    google_ad_height = 600;


    </script>


    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">


    </script>


    </asp:TableCell>


    </asp:TableRow>


    <asp:TableRow runat="server" BorderColor="Black" BorderStyle="Solid">


    </asp:TableRow>


    </asp:Table>


    </asp:ContentPlaceHolder>


    My problem is that it doesn't show up. Is there anything special I should be doing?


    Thanks


    Dave
     
  2. Hi,
    Does it behave properly if you place it in a static html table instead of a dynamic serverside ASP.NET table?
    That would be my first check.
    Salute,
    Mark
     
  3. What I did was put it into it's own htm page and then used an iframe tag in the aspx. This doesn' seem to work in the site page.
     

Share This Page