Location: PHPKode > scripts > Simple AdSense Insert > simple-adsense-insert/readme.txt
=== Simple AdSense Insert ===
Contributors: dartiss
Donate link: http://artiss.co.uk/donate
Tags: AdSense, Advert, Google, Insert, Display
Requires at least: 2.0.0
Tested up to: 3.0.1
Stable tag: 1.2

Simple AdSense Insert provides a basic ability to display AdSense adverts on your blog.

== Description ==

Simple AdSense Insert provides a basic way of inserting AdSense adverts into your WordPress installation, whilst having full control of display and content.

If you've not done so already, create your AdSense advert via the Google Adsense website. The code you are provided by Google contains the parameters that are required by Simple AdSense Insert.

The 4 pieces of information you require are the values in `google_ad_client`, `google_ad_slot`, `google_ad_width` and `google_ad_height`.

To display your AdSense advert you will need to insert the following code, where appropriate, into your theme...

`<?php simple_adsense_insert('client=pub-0743991857092062&slot=5302103070&width=468&height=60'); ?>`

In the above example, I've used my credentials, but you will need to use the details that I suggested you note before, as supplied by AdSense.

The `client=` is your publisher ID (i.e. `google_ad_client`), `slot=` is `google_ad_slot`, `width=` is the width of the advert (i.e. `google_ad_width`) and `height=` is the height of the advert (i.e. `google_ad_height`).

Alternatively, if you wish to ensure that your code still works correctly, even if Simple AdSense Insert is switched off, you can use the following format of code...

`<?php if (function_exists('simple_adsense_insert')) simple_adsense_insert('client=pub-0743991857092062&slot=5302103070&width=468&height=60'); ?>`

== Installation ==

1. Upload the entire `simple-adsense-insert` folder to your `wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. There is no options screen - configuration is done in your code and, optionally, by modifying the plugin.

== Frequently Asked Questions ==

= My AdSense code doesn't have a slot number =

Ah, yes. Google changed the format of their AdSense code - if you're looking at some existing AdSense code and it doesn't look the same as my examples, then head back to the AdSense website and get it to create the code again.

= How can I get help or request possible changes =

Feel free to report any problems, or suggestions for enhancements, to me either via [my contact form](http://www.artiss.co.uk/contact "Contact Me") or by [the plugins homepage](http://www.artiss.co.uk/simple-adsense-insert "Simple AdSense Insert").

== Changelog ==  
= 1.0 =  
* Initial release

= 1.1 =  
* Minor code modifications to improve size and performance

= 1.2 =
* Parameters now sent via single string to plugin
* Google script checked
* Code optimised
Return current item: Simple AdSense Insert