AdSense

This widget allows you to add Google AdSense ads to your wiki page. Ads are placed in specific spots within the page - not in the skin.

Example
To insert this widget, use the following code:

Code from Google
In Google AdSense, click "Get code". Copy that code. It will look similar to this:

 

Code in the wiki
Take the values from above and place them in a widget call, as below.

Parameters

 * name - The ad name in the AdSense system - this is only required for responsive ads
 * client - Your AdSense Publisher ID - NOTE: It is highly recommended that you hard-code the client ID onto the widget page (Widget:AdSense). Otherwise, users will be able to insert their own ID and make money off of your site.
 * slot - The AdSense Slot ID for this ad
 * width - The desired width for this ad
 * height - The desired height for this ad

Responsive Example
The Widget was designed to work with responsive ads as well. Usage is similar.

Code from Google
In Google AdSense, click "Get code". Copy that code. It will look similar to this:

.responsive-1 { width: 320px; height: 50px; } @media(min-width: 500px) { .responsive-1 { width: 468px; height: 60px; } } @media(min-width: 800px) { .responsive-1 { width: 728px; height: 90px; } } 

 (adsbygoogle = window.adsbygoogle || []).push({});

CSS
Take the values from the above section and add the following CSS to your wiki, either by inserting it into your Mediawiki:Common.css, or by adding it to your skin. More info is available here. .responsive-1 { width: 320px; height: 50px; } @media(min-width: 500px) { .responsive-1 { width: 468px; height: 60px; } } @media(min-width: 768px) { .responsive-1 { width: 728px; height: 90px; } }

Widget Call
Take the values from the above section and place them in a widget call, as below.