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

    Wow, that is a great response. Looking forward to use this plugin. I have been searching this in the beginning. This is awesome.

    • I try it on my Thesis 3 column website. For some reason, it takes two colums on the right (column 1 and column 2) and places it under column 1. It doesn’t always does that (its inconsistent).

      There were cases that when I set it to place an ad after paragraph 2, it converted the text in the body as if it was link (blue and underlined). it sometimes did it and sometimes not. The links that I’m using are from Commission Junction.

      • It sound like your post body contents HTML tag errors. Please check & make sure each HTML tag has been properly closed.

  2. Hi

    This is an awesome plugin! I’ve tried many adsense plugins and yours fit exactly what I want, because I can use many types of ads for different parts of the post automatically. The rest I’ve tried either wants me to manually put in the ads in the posts or templates or it automatically injects the ads with only one ad-type without much customization available.

    Also, will there be adsense be showing in feeds in the future for this plugin?

    • Thanks for your comment. Hope this plugin will helps.

      For the Adsense in feeds, as for as I know, we just need to activate it & google will insert the ads automatically. I’m not sure how the other Ads publishers work, probably I will add this functionality in future version.

  3. Hi. I would like to contact you for a custom job on this code. can you contact me¿

  4. Useful plugin. Simple. At present I’m using Quick Adsense to display Amazon links. Can easily be used for more than just adsense.

    First started using your plugin with WP 2.8.4 – glitch I’m encountering is that ads are not appearing only on posts, but not on home, arc, cat, tag pages.

    • I have the same problem – I use the “iNove”-theme. Who can help me?

      • If you don’t want the Ads to be displayed on home, arc, cat, tag pages… simply uncheck the Appearance Option under the Quick Adsense Setting page.

        Please do inform me, if you have uncheck that & the Ads still appear there.

        • First, thank for the answer. I want display the ads on homepage, but the ads are not displayed. Only on a single view of an article is displayed google adsense. I have unchecked only the sites option, all other ar checked.

        • I see. Ya, it was initially designed in such a way that only one ads (the one assigned to the Beginning of Post under the Position option) will be displayed at the home, arc, cat & tag pages. This is to prevent many ads being displayed in every post summary at that home page. I believe this is the practice for most of the blogger. However, I will try to improve this in future version, probably by putting an option for that. Thanks for your comment Dschenns.

    • I also have this problem where ads don’t appear on the main page or cat pages etc only on the actual post page

      It would be great if they can appear on every page they are set to

      Also can you add to this plug in so certrain ads can only be shown when in certain categories

      ie if I have a cataegory called dog I want a dog related ad not a cat related ad etc

      so ad1 can be attached to cat dog only & ads 2 to category cat but ad 3 can be shown in any categopry

      the ideal thing would be to have a check box & ad1 can be shown in cat a,b, c, etc

      • Derek, thanks for your comment. I will take your suggestion into consideration & will work on it. Also, my ideal is to make the option page as simple as possible so that the beginner will find it easy to use.

      • Can anybody help I am getting an error when I try saving in (Quick Adsense Setting)

        This error : Error! Options page not found.

        Thank you so much in advance,

        • What version of WP are you using ? Is the problem occur only when you want to save the option setting ?

        • Thanks for the quick Reply,

          WordPress MU 2.7.1

          This is a fresh plugin never got a chance to use it.

          I followed the directions that are listed above:
          1- I hit the Load Default Setting at the bottom right.
          2- Entered my Adsence code for Ads1, Ads2, Ads3, Ads4
          3- I hit Save Changes (that when I get this error: Error! Options page not found.

          Not sure what I am doing wrong?

          Thnaks

        • Sam, I have identified the cause of error. It is something to do with the security approach that WP MU has implemented. It’s happening on WP MU but not WP, & I believe you are facing the same error with other plugins also : Check this forum topic.

          I’m working & testing on a new version of Quick Adsense, try to make it compatible with WP MU. If everything ok, I will release it under version 1.3, pls stay with me … announcement will be made here.

  5. I am getting a php_eol notification when I use the adsense code at the beginning or end of a post… any idea why?

    • Hi Bryan, php_eol is a php line break, shouldn’t have any problem. Can you tell me what version of WP are you using, also your hosting server? Probably, the notification is due to the support issue of your hosting server about this php command.

  6. Man this plugin is such a life saver…Installing it right away :)

  7. good plugin, but not of my use, no adsense account.

  8. Thanksssss… This is what i’m looking for. GREAT PLUGIN!

  9. ive installed this plugin.
    google adsense is telling me my CNAME has not been detected. it has been more than 3 days since install and signing up for adsense.

    help?

  10. ok, so i figured out that i have to get the www cname added to my host, except the host wont allow it. says the www is already in use (it is).
    it wont let me leave the name blank, because that would be only for a subdomain.
    dreamhost is the host
    anybody familiar?

    • Does Google approve your Adsense account already? If so, you should be able to place ads to your blog. Hosting shouldn’t be a problem, the www should be there. Can you tell more about the cname ?

      • google approved it
        google says it hasnt found the cname
        host says i cant add the cname that google wants me to add

  11. Nice job. May I offer a suggestion? If you have just ONE tag called <!--adsense--> you might get people with older adsense insertion plug-ins to update to yours, instead.

    An alternative solution for WordPress authors with old <!--adsense--> tags in their blog entries is to use a global text replace in their wordpress database as described at the link below:

    http://www.barrywise.com/2009/02/global-find-and-replace-in-wordpress-using-mysql/

    Chuck Eglinton

    • Nice suggestion! So, for those who want to replace all their actual Adsense code blocks which have been posted previously, you will be able to replace them with Quick Adsense Tags (ie. <!--Ads1-->, ...) globally with just a line of MySQL command. Just visit the link suggested by Chuck Eglinton, and you will know what to do. Thanks.

  12. Hi everyone,

    Quick Adsense V1.3 has just been uploaded to wordpress.org, it may take hours to be available for download. The change log is as follow:

    * Code modification: Option to place all possible Ads on Homepage, Categories, Archives and Tags page. Previously, only one Ads (the one assigned to the Beginning of Post) is displayed.
    * Code update to take advantage of some WP functions for options page, also for forward compatibility in future version.
    * Code update to make it compatible with WordPressMU, tested on WordPressMU 2.7.1
    * Some minor page & wording modification.

    Please do leave your valuable feedback, help to improve this plugin, thanks.

  13. guess i miss it but i can’t find where i can add my adsense id can you contact me ..hope to hear from you soon as i want to use your plugin immediately

    • Adding your Adsense Id is not required. Just go to your Adsense setup page & create your AdSense for Content, setup the format there, get the whole code block, & paste it to the plugin textboxes (Ads1 to Ads10).

  14. Hey there,

    There is some problem.. Is it a conflict with one of the other plugins?

    After the update, I cant seem to get ads on the post page. >.<

    • Also, its working fine on pages. Just the posts >.<

      • Check the options, make sure all have been checked according to what you want (Appearance : Post checkbox has been checked). If you are using tags, make sure the tags have been entered correctly. Is this happen only after the update? from which version to version?

        • Yup all are checked properly.

          For tags I am using WP Simple tags, not normal tags.

          Yes, only after the update, I think. From the previous version to 1.3

        • I have tested v1.3 on WP 2.7 & 2.8, the code look ok. Do you mind to deactivate some of your plugin or switch your WP theme to anther one temporary & see whether the problem still exist ? This however will affect your blog layout temporary. Just want to check whether it is conflict with other plugins or theme.

        • I guess it is the theme. Switching to the other one made the ads appear again.

          I am using Hybrid Original 0.1 by Justin Tadlock.

          Any quick fix?

        • Ya you’re right, I have tested the Hybrid Original 0.1 theme & it is conflicting.
          Here is the quick fix to the plugin: Unchecked the option “Assign Ads1 to the Beginning of Post”, & insert <!--Ad1--> to the beginning of your post. The problem is, you have to place <!--Ad1--> into every posts.

        • Okay, any other solution? This makes it a lot more cumbersome. I mean, could you locate what problem there was.

          I can edit the theme too, so whatever the problem is… just let me know. Don’t want to do something which I cannot change later in the posts.

        • The theme just goes too deep into wp’s code, it is very time consuming to trace. My test shows that the post content is blank when it is passed into the plugin for processing. That’s means the theme may has overtake the wp’s function that I have used in the plugin. I wish I can help, but will let you know if I found somethings.

  15. hi, can you post a second ad on the fly, on the page that already has 1 automatic ad1 at the top? i tried to place ad2 on the fly to the bottom of a page, but it doesn’t seem to show up… any tips or ideas on this? thanks.

    • Make sure Ads2 is not assigned to End of Post (unckeck it), also the maximum number of Ads within a post is 3 (including WidgetAds), no more Ads will be shown if number exceeded. Make sure the on the fly tag is typed correctly : <--Ads2-->

  16. Awesome blog! Google Adsense is an awesome source of income for webmasters, Thanks for the post.Eddiehttp://www.postlinksongoogle.com

  17. HELP, FOR SOME REASON THE SETTINGS PAGE ISNT DISPLAYING CORRECTLY FOR CONFIGURATION. SHOWING HALF PAGE.

    PLEASE HELP

    • Try to delete the whole Quick Adsense plugin folder on your server & reinstall with the fresh one.

  18. Hey this is really a awesome plugin, let god gives you longer life,health and peace. Im going to implement it soon.

  19. all of a sudden, the “save” button went away on the bottom of the Quick Adsense admin?? now I can’t make changes to the ads….

    help!

    • You can try to reinstall the Quick Adsense, simply delete the whole Quick Adsense plugin folder on your server & reinstall with the fresh one. All your Ads code & setting should remain intact.

  20. I love your plugin but for some reason, it only works in the IE and safari browsers, not in firefox.

    I am using WP 2.8.4, my site is hawaii-tickets.com

    Aloha,

    Chris

    • User side browsers shouldn’t have any impact on the plugin, because the plug is installed in the server. Can you please define your problem?

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