Follow the below mentioned steps to put Google adds on your website using “Customer Footer”
- Sign up for a Google Adsense: http://google.com/adsense
- Create your ad and copy the code into notepad.
- Add <![CDATA[ before the comment tags (<!--) and ad ]]> at the end of the comment tags (//-->), like the example below. This does not violate the terms and conditions because tags will be removed when the page is rendered.
Before adding <![CDATA[ ]]>:
<script type="text/javascript"><!--
google_ad_client = "pub-9251456609637555";
/* MSOL Add */
google_ad_slot = "6444282108";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
- What the code should look like:
<script type="text/javascript"><![CDATA[<!--
google_ad_client = "pub-9251456609637555";
/* MSOL Add */
google_ad_slot = "6444282108";
google_ad_width = 120;
google_ad_height = 600;
//-->]]>
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
- Next insert a Custom Footer module into the page, you will need advanced design features turned on before you can do this.
- Either, remove everything between the <template> tags so that it looks like to the code below, or you can also just replace everything in the Custom Footer module with the code below as well.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" />
<xsl:template match="/">
</xsl:template>
</xsl:stylesheet>
- Paste the modified Google Adsense code between the <template> tags, like the example below.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" />
<xsl:template match="/">
<script type="text/javascript"><![CDATA[<!--
google_ad_client = "pub-9251456609637555";
/* MSOL Add */
google_ad_slot = "6444282108";
google_ad_width = 120;
google_ad_height = 600;
//-->]]>
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</xsl:template>
</xsl:stylesheet>