Plugin Directory

Artiss AdSense Insert

Artiss AdSense Insert provides a basic method of displaying AdSense adverts on your blog.

Download Version 1.3

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

Adding the Code

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 Artiss 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 artiss_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( 'artiss_adsense_insert' ) ) artiss_adsense_insert( 'client=pub-0743991857092062&slot=5302103070&width=468&height=60 '); ?>

For help with this plugin, or simply to comment or get in touch, please read the appropriate section in "Other Notes" for details. This plugin, and all support, is supplied for free, but donations are always welcome.

Author: dartiss

Requires: 2.0 or higher
Compatible up to: 3.3.1
Last Updated: 2010-3-2 Downloads: 6,244

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(3 ratings)

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

Log in to vote.

100,1,1