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.7
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.
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.

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.

<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.


324 Responses
Those who link to this post
Get a Gravatar if you like to show your picture/cartoon character with your comments.
Recent Posts
- 34 Excellence Online Photo Editing Websites
- Stumbleupon & Digg Thumbnail Maker
- Beautiful Underwater Photography
- 35 Chrome Add-ons For Better Browsing
- The Natural Mirrors
- Issues & Workarounds For Windows 7 Explorer Navigation Pane
- Install WordPress In Your Local Computer With XAMPP
- Smoke Can Be Piece Of Art
Recent Comments
- London Affiliate : Hi having issues with this on Thesis and posts, only works on pages but... (more)
- Mark : The plugin is great but i tried to install the latest version on 1 of my sites and... (more)
- Julian : I straddle the world between Mac and PC, I rarely find anything new with these... (more)
- shahbaz : good site (more)
- Andy : CHeck out www.ezyimageresizer.com as well! Lets you resize images online, in the... (more)












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.
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?
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.
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.
nice plug in for ad sense thnkyou
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!
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.
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.
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.
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)
its important to change adsense placement in each post?
Just insert the <!–Ads1–>, <!–Ads2–>, etc. in anywhere within the post.
Hi, This plugin seems to of stopped working since I upgraded to WP3.0. Can you confirm any known issues with Quick Adsense 1.6 and WP3.0 – Would like to get my ads showing again. thanks
I’m using WP3.0.1 & QuickAdsense 1.6 is working properly. Can you specify the problem in details? Try change your theme & check again.
Hello,
FYI, got the following error message at the top of the Plugins page after activating Quick Adsense:
“The plugin generated 180 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 deactivated and reactivated two times with the same message coming up.
Hope this helps with future versions.
Thanks and regards!
This error has been made known to me previously by a number of users, however sorry to mention that until now I have little information to figure out what causes the problem. Perhaps it is due to some setting of the WP server.
I am also getting this message on WP 3.0.1 after activating the plugin:
“The plugin generated 189 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.”
Haven’t tested the plugins functionality yet though.
I believe some other plugins have similar problem. Try ignore the error & QuickAdsense should work fine. Someone please test it out, also check this forum post: http://wordpress.org/support/topic/plugin-all-in-one-seo-pack-incompatability-with-30-alpha
Hello everyone,
A new version (v1.7) of the plugin is released. In this version, I finally be able to rectify the error message when the plugin is first activated, which was informed by some users in the comments.
The error message :
[ The plugin generated 'n' 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. ]
Thank you very much for supporting Quick Adsense. Please allows sometime for the new plugin to appear in http://wordpress.org/extend/plugins/quick-adsense/
when i update my plug in it stops working?
It shouldn’t be. I believe it’s fine now, I can see Quick Adsense is ok on your blog now :-)
yes now it works fine, thanks for great plug in, actually it didnt work with basic SEO plugin so i deactivate it
i am looking for rotating image gallery plugin which take images from different post, if you know any please share it. thanks again
I consistently use this plug in on my sites. Terrific and simple to use.
Thanks!
Sofia
good site
The plugin is great but i tried to install the latest version on 1 of my sites and i got version 1.0. What happened to new version?
And is it possible to integrate a widget rotator in future updates, so it’s easy to do some split testing.
Oh! It has been due to an error that occur during the uploading of this plugin. It should be fixed now! latest version is 1.7. Thanks for informing me & I’m really sorry about this.
Hi having issues with this on Thesis and posts, only works on pages but both automatic and code inserted on posts is not showing up. Any ideas?
The plugin may conflict with some Thesis themes, more info is required to solve this problem.