Quick Adsense

Quick Adsense is an Ads management WordPress plugin. It offers a quicker & flexible way to insert Adsense or any Ads code into a blog post. Besides, it can randomly place the Ads anywhere within a post. It comes with a simple setting page, and it does not overwhelm you with complicated customizable options.

In general, placing Adsense randomly within a post is a good way to experiment a variety of ads formats & placements besides optimizing your Adsense. If you have many regular visitors who frequently revisit your blog, the randomization will likely catch their attention.

Latest Version: 1.6

Here are some features that come with this plugin:

  • Absolutely NO author revenue reward or revenue sharing from your Adsense or that kind of features.
  • Default Ads positioning: Assign Ads at the beginning of post, assign Ads at the end of post, assign Ads after certain paragraphs & assign Ads after certain images.
  • Flexible Ads placement, insert Ads specifically or randomly anywhere within a post.
  • Simple configuration interface, requires no coding knowledge: Just copy and paste AdSense code, tick & select options, the plugin will then do the rest for you.
  • Support any Ads code, not limited to Adsense code only.
  • Display up to a maximum of 10 Ads on a page. Google allows publishers to place up to 3 Adsense for Content on a page. If you are using other Ads, you may display up to 10 Ads.
  • Support up to a maximum of 10 Ads codes on Sidebar Widgets.
  • Support up to a maximum of 10 Ads codes for Randomization within a post.
  • Ads placement on the fly, simply insert <!--Ads1-->, <!--Ads2--> … , <!--RndAds-->, <!--NoAds-->, <!--OffDef--> to a post to accomplish this.
  • Tags above can be inserted into a post easily via the additional Quicktag Buttons added to the HTML Edit Post SubPanel.

Sign up for a Google Adsense Account to generate revenue from your blog, if you don’t have one.

Download


The Quick Overview

Here are the quick overview of the plugin:

Screen shot showing the additional Quicktag Buttons added to the HTML Edit Post SubPanel
Screen shot showing the additional Quicktag Buttons added to the HTML Edit Post SubPanel.
The Settings page from Quick Adsense plugin. There are many ways to configure your Ads display, specifically or randomly as you wish.
The Settings page from Quick Adsense plugin. There are many ways to configure your Ads display, specifically or randomly as you wish.

Link To TechMilieu.com

If you believe that Quick Adsense plugin is valuable to you, than a link from your blog to http://techmilieu.com/ would be highly appreciated. You can show your support by simply copy one of the HTML code below & paste into your pages. This will help spread the words, thanks.

Text Link : TechMilieu.com
<a href="http://TechMilieu.com/">TechMilieu.com</a>
Tiny Button : Tiny Button
<a href="http://TechMilieu.com/"><img src="http://TechMilieu.com/images/link-20x20.png" alt="TechMilieu.com"></a>

The Quick Test Drive

If you have just installed the plugin, you may want to test it up. Here is an illustration that you can follow to have a feel of what Quick Adsense can do for you:

  • Go to the Plugin setting page & click the Load Default Setting link located at the bottom of the page.
  • Copy & paste the following Sample Ads1, Ads2, Ads3, Ads4 codes to the Ads textbox respectively, assuming these are your Adsense codes. Do remember to save your changes:
    <span style="display:block;width:250px;height:250px;
      background:#eee;border:1px solid #333;
      text-align:center;font-size:10pt">
    <b>Sample Ads1 (250x250)</b>
    </span>
    <span style="display:block;width:234px;height:60px;
      background:#eee;border:1px solid #333;
      text-align:center;font-size:10pt">
    <b>Sample Ads2 (234x60)</b>
    </span>
    <span style="display:block;width:200px;height:200px;
      background:#eee;border:1px solid #333;
      text-align:center;font-size:10pt">
    <b>Sample Ads3 (200x200)</b>
    </span>
    <span style="display:block;width:120px;height:240px;
      background:#eee;border:1px solid #333;
      text-align:center;font-size:10pt">
    <b>Sample Ads4 (120x240)</b>
    </span>
  • In your post, insert three <!--RndAds--> tags, anywhere within the post (somewhere in the middle is good), use the Quicktag button under the HTML Edit Post Subpanel as you wish.
  • Now, use the Preview Changes button & see how the SampleAds appear in your post. Remember not to update your post as your live visitors may see this.

Some Thought About This Plugin

Previously, I have written some php codes which allow me to insert Adsense to a post on the fly randomly [ posted to here & here ]. The drawback of this code is that you need to modify the theme template directly for the code to work. A comment from Gossips about this code has inspires me to convert the code into a plugin.

I decided to spend a few hours googling & trying to figure out how to create a WordPress plugin. Surprisingly, I found out that writing a plugin is not as complicated as I thought.

Firstly, I have to decide what the plugin can do for me. I want to create a plugin which allows me to quickly insert Ads code to the post. It must be capable to be random. Using tags to triggle the Ads display is always a good choice. Also, to make it more complete, I want the Ads to be displayed on the Sidebar.

Next, I started to design the plugin Setting page. It took me a while to do this as I wanted it to be as simply as possible, at the same time incorporating all the relevant options. The simpler the Setting page you want it to be, the harder the coding would be.

I thought it was nearly finished but realized that it was just started as the developing of the plugin algorithm was head-cracking. See my entire requirement in the first place; the question is how to make the plugin functions nicely? Well, the php excellent array functions really helped me do most of the jobs. Randomization had been done with just a few lines of code.

I really enjoy creating this plugin. My experience is that once started, it is hard to get it stopped. Please feedback for any bug you might have found, or any suggestion you like to add. Hope this plugin which have benefited me would benefit you as well.

Related Articles
Digg Stumbleupon Twitter Delicious Facebook Reddit Technorati Google Addthis
Comments

304 Responses

  1. Phillip,

    I couldn’t find a contact for you so I’ll just write it here. I have a suggestion for a plugin and it should be relatively easy for you since it’s just a subset of QuickAdsense.

    I’ve been looking for a plugin to automatically insert page breaks in all my post and pages but have not found any. Quick Adsense basically does something like that with ads.

    It should insert a next page tag based on:

    xxx of user definable characters or xxx number of images but only after a paragraph break.
    but not immediately after any header text.
    Look at adjacent text and make sure there is not already a next page tag withing xxx number of characters.

    Adding pages to long post has the advantage of serving more ads.

    Think about it. I don’t think anyone does this yet. I’m doing it manually now but it’ll be nice to do it automatically.

    • @Pat Yuen, thanks for your comment & suggestion. It’s a great ideal, I will keep that in mind for future release. Also, I will try to add a function to turn off WidgetAds for a specific post. Thanks.

  2. Just wondering if you are going to update the plugin to be compatible with WP 3.0?

    • So far the plugin has no major problem with WP3.0. Please do let me know any incompatibility with WP3.0.

      • Hi Philip,

        When I install the plugin on WP 3.0, it is O.K. But when I activate it I get this error:

        The plugin generated 184 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

        I never had this message on other versions of WP running exact same theme and plugins.

        Thank you!

        • I never see this error before. Try deactivate & activate it again.

        • I also had that error (184 chars), and when I attempted to delete and re-install I got another error saying that the folder already existed. So after manually deleting the folder I was successful in re-installing without error, interestingly, the ads that I’d test-installed after the folder was deleted were still there as well as my settings? Also, I did attempt to deactivate and reactivate w/o result.

          Anyway, the reason for my post is that during my test install, I verified the two ads I’d set up worked (clickable) but now for NO reason other then I posted my first post (this error was before the reactivation and before the reinstall). The ads no longer work. I’m VERY new to all this and am completely overwhelmed, I love the simplicity of your plugin and was hoping to keep it installed but if I can’t resolve this soon I’ll have to move on to another plugin.

          Please help by looking at my site and tell me what you think is the issue?!?

          D.

          http://ihavegoodcredit.com/blog

          P.S. on a side note, I attempted to post this from two different computers using Chrome and Explorer and when clicking submit, could only get to a white screen, I had to open Firefox to get the test above to post and no hopefully this post. I did also see this same white screen on another WP site’s comment attempt and just let it go, but something is weird with my computers or WP. BTW, One computer is using Vista and the other is using XP pro, so I’m pretty sure it’s not the computers and since it happened on two different WP sites it’s got to be WP. Wouldn’t you agree??

        • Hmmmm, so I contacted my affiliate and they suggested I re paste the banner code, which I did and now it works, but they gave no reason why it would have stopped working… I’m thinking maybe it was because I added “center” and “/center” to the code??

          Do they disable links when you change the code?

          So I officially love your plugin again!! :) But still have the comment issue outside of firefox.

        • Hi Philip,

          I just upgraded to wp 3.0, also upgraded to QA 1.6, and I also did get the same error as Robert. I enabled debugging and the following error popped up:

          Warning: Cannot modify header information – headers already sent by (output started at /path/to/site/wordpress/wp-includes/functions.php:3323) in /path/to/site/wordpress/wp-includes/pluggable.php on line 890

          Dis- & enable and Manually delete & reinstalling didn’t help. Any ideas?

          Cheers,

          David

        • Did you having the same problem in older version of WP?

  3. Can I change the names? example Ads1 to something like Mick then Ads2 to Jack etc for different editors of the Blog to display their own Adsense inside Posts?

    If so how Please!

    Thanks in Advance

    • No, you can’t change the name like Ads1 or Ads2 to other names. However, you can place the Adsense code for difference users into Ads1 or Ads2 code textbox & insert the Ads1 or Ads2 tag into their post respectively. I’m not sure whether this is against Adsense TOC or not, you may need to clarify with Google before putting Ads codes for difference users in a single blog.

  4. Hello.
    I have a problem with the quick-adsense.
    If I put the adsense code and command display (any page) and do a search, every page is blank and does not charge more.
    That would be a plugin bugs? Already updated the wp and the same thing happens. Also reinstalled the plugin and nothing.
    Already banners normal functioning normally. Only gives problem with the same adsense code.

    I need a help, since adsense is a extra income that is lacking in my blog …

    Sorry for my English, is translated by Google … ;)
    My site is http://www.coversblog.com.br

    Thank you in advance.

    Snd ®

    • Can you be more specific about your problem? Also, you can’t repeat the Ads code in one page as this may result the Ads not being displayed correctly.

      • Hello Phil, thanks for the quick response.
        It functioned normally until the WP 2.82
        If I remove widgets from adsense and put them in quick-adsense (468×60) presents the error. The error is as I mentioned, if someone does a search, the page is blank. I can enable you to see, when you want, just send me an email that active at the time.
        Already deactivated plugins to see if it was some incompatibility, but it’s the same problem …

        Thanks,

        Sandro

        • Do you means the search result page is blank? Ok, try deactivate Quick Adsense & do the search again, then see whether the page is blank or not. This can confirm whether the problem is cause by this plugin. Please email the HTML source code of the blank page to me @ techmilieu@yahoo.com if the problem is cause by this plugin.

  5. nice plug in for ad sense thnkyou

  6. Hi, I deactivated all plugins and left only the quick-adsense enabled. When you put the adsense code gives the problem. Already banners with normal work.
    But the source code (HTML) of the blank page is actually blank, it has no code.

    If you want me to enable you to take a look, just add me on MSN: coversblog@hotmail.com

    Thanks!

  7. Philip, I discovered that the problem occurs only in Firefox or Chrome.

    In IE works normally.
    Strange, no?

    • I suggest you try deactivate all plugin including Quick Adsense & do the search again, then see whether the page is blank or not. Sometime the problem is cause by the theme itself, not the plugins.

  8. Hi Philip,
    I have tried your plug in, but the adsense that appear is always public service add.
    Any idea why this happens? I use the plug in in the other site runs well.

    Note: I have deactivated and activate the plug in several times.

    Thanks,

    • This is nothing to do with Quick Adsense. Sometime, you may need to wait for a while for Ads to display.

    • Look at all the content on the page. If you have any banned content, Google will automatically serve backup ads. They don’t like sex, nudes, and controversial topics. Look not just at your post but widgets too.

  9. Not sure if it has been reported but the shortcode does not work on anything after page 1 in a multipage posts. Ads will show up in all pages starting from 2.

  10. nice plugin, but we cannot choose only current new post will display advertising,
    if we put ads code at one post, older entry will display advertising too.

    i suggest to the next update, you can give 2 option 1) ads will display at all post or 2) ads will only display at the current post ( we are wanted)

  11. its important to change adsense placement in each post?

Leave A Reply

Those who link to this post

Leave a Reply

Feed subscribe via feed, or

get the email updates :

Popular Posts Power Your PC With 45 Free Applications
Clear Your StumbleUpon New Shares From Friends Faster And Easier
Quick Adsense
Clear Your StumbleUpon New Shares From Friends Even Faster
Mosaic Illustrations By Charis Tsevis
The Natural Mirrors
It comes with the intention to highlight anything about blogging & technology that appear to be interesting, beside the useful applications & tools. This is a place for bloggers & tech lovers, and for everyone who know how to use a computer.

Recent Comments

  • Dave : Thanks for this helpful list. I found many of your recommendations to be sound and quite useful. In... (more)
  • madd : its important to change adsense placement in each post? (more)
  • panduan blog : nice plugin, but we cannot choose only current new post will display advertising, if we put ads... (more)
  • Pat Yuen : Not sure if it has been reported but the shortcode does not work on anything after page 1 in a... (more)
  • davidem : Hi Philip, I just upgraded to wp 3.0, also upgraded to QA 1.6, and I also did get the same error as... (more)
  • Pat Yuen : Look at all the content on the page. If you have any banned content, Google will automatically... (more)
  • Yulius Halim : Hi Philip, I have tried your plug in, but the adsense that appear is always public service add.... (more)
  • Sandro : Philip, I discovered that the problem occurs only in Firefox or Chrome. In IE works normally.... (more)

Developed Plugin

bluehost.com