WordPress Google Adsense Plugin

Filed in: Adsense Tips, Make Money Online, WordPress, WordPress Plugins — July 6th, 2005

Philhord.com has a nice WordPress plugin that insert Google Adsense code into the body of the post(inline). But, the plugin’s adsense quicktag button does not work for WP 1.5.

I took a few minutes to update the quicktag button code and now it works for WP 1.5+!

Google Adsense in WordPress post body

Download: adsense.zip

Installation:

  1. After download the plugin, extract it.
  2. Open the adsense.php file to insert your Google Adsense code.
  3. Goto line #29, insert your Google Adsense code in between :
    <!– Begin Google Adsense code –>
    and
    <!– End Google Adsense code –>
  4. Save modified adsense.php file, upload to your WP plugin directory(wp-content/plugins) and activate it in WP Admin panel’s Plugin page.
  5. Now, you get a “adsense code” button at Quicktags toolbar. Just click the button whereever you want to insert Google Adsense code in your post. Done!

Thought:
Compare to the Intouch with Subject plugin, this is only a simple update. But, I think many Google Adsense WordPress publisher will found it useful. :)

I hope we will have a Google Adsense plugin that support different code blocks(different layouts), not limited to single adsense code. Anyone?

Like this post? Please share:

Follow @liewcf on Twitter; Join Facebook page; Subscribe to free newsletter for updates like this article..

  • http://william.3pigeons.com/blog williamfong

    i put an quicktag. if you view the source codes of my blog, its there a few times. but no ads appear.

    if i paste the adsense code directly as given by Google, WP says:

    Not Acceptable
    An appropriate representation of the requested resource /blog/wp-admin/theme-editor.php could not be found on this server.

    im guessing its a problem with the adsense coding format.

  • LcF

    try to add the adsense code manually by editing the wordpress template sidebar.php file. pasting adsense code to wordpress web based theme editor is not recommneded.

    the quicktag does Not work in sidebar. The quicktag works in wordpress content only.

  • LcF

    try to add the adsense code manually by editing the wordpress template sidebar.php file. pasting adsense code to wordpress web based theme editor is not recommneded.

    the quicktag does Not work in sidebar. The quicktag works in wordpress content only.

  • http://william.3pigeons.com/blog williamfong

    wow that worked! great! thanks man!

    so now i dun really need the adsense plugin… well, unless i want quick adverts. hehe… thanks a bunch man.

  • http://william.3pigeons.com/blog williamfong

    wow that worked! great! thanks man!

    so now i dun really need the adsense plugin… well, unless i want quick adverts. hehe… thanks a bunch man.

  • http://www.tonycai.com/ Tony

    Anyluck with the 2.0 WP?

  • http://www.tonycai.com Tony

    Anyluck with the 2.0 WP?

  • Damen Choy

    What is the different in putting the adsense code on the sidebar and on the blog content?

    I know there is a limitation of putting adsense code on a single wedpage. If I put the adsense code on every post, would I violate the rule if there are more several blog postings on a single webpage?

    Anyone have inputs?

    Rgds

    Damen

  • Damen Choy

    What is the different in putting the adsense code on the sidebar and on the blog content?

    I know there is a limitation of putting adsense code on a single wedpage. If I put the adsense code on every post, would I violate the rule if there are more several blog postings on a single webpage?

    Anyone have inputs?

    Rgds

    Damen

  • LcF

    @Damen Choy: ads in sidebar appear all the time. ads in content only shown if the post is selected.

    You should apply some conditions in pages with multiple posts, so that the ads do no exceed the allowed number.

  • LcF

    @Damen Choy: ads in sidebar appear all the time. ads in content only shown if the post is selected.

    You should apply some conditions in pages with multiple posts, so that the ads do no exceed the allowed number.

  • Damen Choy

    Thanks for your reply. In that sense, that means I have to limit the maximum posts per page to three if I have to allow multiple posts on a single page.

    It that correct?

    Damen

  • Damen Choy

    Thanks for your reply. In that sense, that means I have to limit the maximum posts per page to three if I have to allow multiple posts on a single page.

    It that correct?

    Damen

  • LcF

    @Damen: not really, I suggest limit the number of ads for multiple posts page.

  • LcF

    @Damen: not really, I suggest limit the number of ads for multiple posts page.

  • hariz

    i’m using blogger and i want to add adsense into some of my post. not all but some. do u mind telling me how to do it.

  • hariz

    i’m using blogger and i want to add adsense into some of my post. not all but some. do u mind telling me how to do it.

  • http://www.oneandhalf.com/ oneandhalf

    guys, why not try the adsense deluxe version, it automatically bring you different layout.

  • http://www.oneandhalf.com oneandhalf

    guys, why not try the adsense deluxe version, it automatically bring you different layout.

  • LcF

    @oneandhalf: Yes, I previously reviewed AdSense Deluxe.

  • LcF

    @oneandhalf: Yes, I previously reviewed AdSense Deluxe.

  • http://ubuntista.wordpress.com/files/2006/11/2006-11-15_opensolaris.jpg Simone

    Hello there!

    I have a wordpress blog, freely hosted at http://www.wordpress.com; is there a way for me to add adsense code there? If so, how?

    Thanks a lot

  • http://ubuntista.wordpress.com/files/2006/11/2006-11-15_opensolaris.jpg Simone

    Hello there!

    I have a wordpress blog, freely hosted at http://www.wordpress.com; is there a way for me to add adsense code there? If so, how?

    Thanks a lot

  • Pingback: 馬修的研究室部落格(blog.mashow.tw) » Blog Archive » plugin: Adsense inline (在WordPress文章中插入Google Adsense)

  • Pingback: Marketing Place | Guadagnare Soldi Su Internet

  • http://catherinezetajonespic.wordpress.com/ mike

    Thanks i will try on my blog.

  • http://catherinezetajonespic.wordpress.com/ mike

    Thanks i will try on my blog.

t