You can add advertisements by editing .tpl files in templates folder. Mostly template names are related to its functions, for example, header is header.tpl, footer is footer.tpl, index template is index.tpl

When you add HTML ads code in template, put {literal} and {/literal} before and after of ads code.