1====== Google AdSense for DokuWiki ====== 2 3===== About ===== 4 5This tool allows you to set a code for use with [[https://en.wikipedia.org/wiki/Google_AdSense|Google AdSense]], which allows you to put targeted advertisements on your site. 6 7===== Setup ===== 8 9The plugin also exports a function for use with your template, so you will have to insert the following code into your template's **main.php**, somewhere inside of the ''<head></head>'' tags. 10 11<code php><?php 12if (file_exists(DOKU_PLUGIN.'googleads/code.php')) include_once(DOKU_PLUGIN.'googleads/code.php'); 13if (function_exists('gads_code')) gads_code(); 14?></code> 15 16**Note**: Inserting the code above is **required**, not optional. 17 18===== Configure ===== 19 20If you're ready, you can set your configuration below: 21 22