Google AdSense

Google AdSense

From PaulGuWiki

Jump to: navigation, search

Contents

Google AdSense 2.0

AdSense extension Questions and Comments

Any questions, concerns, and comments

Please feel free to post to GuMax Community Forums to receive a quick answer. Your support is important, please tell me what you think.

What's AdSense?

Google AdSense is the program that can give you advertising revenue from each page on your website -- with a minimal investment in time and no additional resources. (Google)

AdSense delivers relevant text and image ads that are precisely targeted to your site and your site content. And when you add a Google search box to your site, AdSense delivers relevant text ads that are targeted to the Google search results pages generated by your visitors’ search request. (Google)

Details can be found at Google AdSense Tour.

What can this extension do?

This extension will allow you to add all types of Google AdSense as you need. It can display AdSense for content with specific channel, AdSense for search, and Referrals. Also you can put AdSense anywhere in your content page by using <google></google>.


To display AdSense for search

<google>mediawiki skins</google> will show a Google search with "mediawiki" in the search field

Google


To display AdSense for content

<google>CH02</google> will display a Google AdSense with WIKI channel


To display Referrals

<google>REF</google> will display a Google AdSense Referral on your web site.


To display YouTube

<google>YOUTUBE</google> will display a YouTube Ads on your web site.

As you can see from the example, it's very flexible and easy to add any type of Google AdSense according your need.


How to install it?

Here are the very simple steps:

  1. Download the extension file from above link, and unzip it into your “extensions” directory. It should create a “GoogleAdSense” folder with a files named GoogleAdSense.php.
  2. Add this to the end of LocalSettings.php:
include_once('extensions/GoogleAdSense/GoogleAdSense.php');

How to customize to your AdSense?

Open file GoogleAdSense.php and find the section below:

$CLIENTID = "pub-xxxxxxxxxxxxxxxx"; // Your Client ID
 
$CHANNELS = array( // Your Channel ID
	'CH01' => 'xxxxxxxxxx',
	'CH02' => 'xxxxxxxxxx',
	'CH03' => 'xxxxxxxxxx'
);
  • Change clientID to your client ID
  • Add channel IDs as many as you want

Wow, you are done! Sit down, relax and wait for your revenue.