Adding Static Block in Magento template

Static block is something you really need in magento site. Static block let you create html static content in magento template, you can put it any where in your template. Now think you have to put google gen code inside your content area, it can done by static block.

Go to admin->cms->static-block> add new static block.
let the identifier of that block is ‘genads’
you have to put the below code in your template to view that block.

 <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('genads')->toHtml(); ?> 

for your kind information, template files are located in ‘/app/design/frontend/base/default/template/page’ directory.