- Author: Terence J. Grant (with special thanks to Bernd Zeimetz)
- License: GNU GPL v2
- Latest Release: v1.0.1 on Sep 15th, 2020
- Changes: See CHANGELOG.md for full details.
- Donate: Donations and Sponsorships are appreciated!
This tool allows you to set a code for use with Google AdSense, which allows you to put targeted advertisements on your site.
The 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.
<?php
if (file_exists(DOKU_PLUGIN.'googleads/code.php')) include_once(DOKU_PLUGIN.'googleads/code.php');
if (function_exists('gads_code')) gads_code();
?>
Note: Inserting the code above is required, not optional.
Template Authors Note: You can insert the above code and make your template "Google AdSense Ready", even if your users do not use Google AdSense (or have this plugin.)
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
All further documentation for this plugin can be found at:
The official repository for this plugin is available on GitHub:
The plugin thrives from community contributions. If you're able to provide useful code changes or bug fixes, they will likely be accepted to future versions of the plugin.
If you find my work helpful and would like to give back, consider joining me as a GitHub sponsor.
Thanks!
--Terence