A short tutorial on using the WhyDoWork Adsense Plugin, since I’ve received a couple of questions over time.
What it can be used for:
- inserting either Adsense ads, or anything else really into posts. You can insert Adsense, YPN, CPM banners or buttons, a box with your top or favorite posts to bring them to the attention of your users
- controlling when the ads show and how. You can use no ads on the blog on article pages while they’re new, and you can set it up to start displaying ads once a certain period of time passes (you decide after how much time).
- block ads from showing on certain pages or articles. For example, you may have a page where you want ads, but you might prefer that your About, Contact or Advertise Here pages are ad free. Another use is for paid reviews, which usually ask you not to have ads in those pages.
Options:
Set Code #1-10
The plugin can remember 10 different codes that you might want to insert in your blog. Paste the Adsense code in the box, then either set it up where you want to appear below, or if you want to paste a second code, scroll all the way down, click Save, then click on Code #2 and paste another code. Don’t forget to save before you click on another Code area, or the code you just inserted will be lost.
Preview
It inserts your code in the admin page to show you how it would look like. I’m seriously considering removing this in future versions, because most people probably don’t read the entire plugin page and don’t realize that it shows their real ads. DON’T CLICK ON THEM!
Exclude posts and/or pages
You can choose not to display ads in certain posts or pages. Either because ads are not appropriate there (About, Contact, Advertise Here pages) or because you’re not allowed to have ads in paid reviews (the case for PayPerPost I think).
For this, go to the Manage page in your admin area, and see what ID do the posts or pages that you want blocked have. Enter those ID’s in the Exclude box, separated by commas and Save.
Displaying ads on the front page, categories, archive and tag pages
You can insert a maximum of 3 ads on these pages (the maximum allowed by Adsense), and you have drop-down boxes for each of them.
Code # – click and select the code you want inserted for that particular position
Alignment of Ads – choose where you want that particular code to be displayed (ad positions explained below)
Show to post number – choose where you want that particular code and alignment to be used in the page (posts 1-10)
Example of use: Code 1 at the Top of Post 1, Code 3 at the Bottom of Post 1, Code 2 at the Top of Post 3
Displaying ads in pages and single pages
The only difference from the front page example is that you’re missing the Post Number option. Other then that, its the same. Choose the code that you want to display and in what position.
Please take into account your typical post length and image positions when choosing the place and size of the ads, otherwise you might end up with a bad look for your article.
Single Page (older then X days)
Here you can choose to display a different ad setup for older posts, so you don’t annoy your regular visitors. Usually only search engine visitors come on a regular basis to old posts and now you can monetize those visits better by inserting more aggressive ads.
If there is any code selected in this area, then it will display this configuration to article pages once they turn the age from the box below. If you don’t select a configuration for this section, then all the posts use the setting you decided for the pages and single pages previously.
Ad Positions
Top – inserts the code between the title and the content
Top Left and Top Right – inserts the code in the top part of the content, surrounded by text
Middle – inserts the code in the middle of the post, between two paragraphs. Middle means here that it sees how many paragraphs there are in a post, then divides it by two and inserts the ad there. For example, in a 12 paragraph story, it will insert it after the 6th paragraph. You need at least 2 paragraphs in a post for the middle positions to display.
Middle Left and Middle Right – inserts the code in the middle of the post, surrounded by text. It actually inserts it in the top part of the second half of the post, so it might seem closer to the bottom.
Bottom – inserts the code below the content
Random – cycles the selected code among the positions that are not occupied by other ads. In order for the random setting not to use a position assigned to a fixed ad, you will need to insert the random one to the last setting in use.
Example: if you want to have a top left ad all the time and another one in random position, select first the fixed position, then the random one, like in the example pic below:
As you can see, I’ve got two ads for articles in this example, the random being the last one to be inserted. That’s because it checks where the previous ad was inserted, so it doesn’t use that position.
You can see how random works by selecting an ad and refreshing the page where it is inserted. You should see it in different positions every time.
If you enjoyed this post, make sure you subscribe to my RSS feed!



I recently launched my website (http://www.prundo.com) which also had a blog component. I always wanted to put adsense and was inserting the code directly into my blog. However, your plug in is the best I have seen so far. Congratulations!
Erics last blog post..1
I also use this plugin on TakeDownTheMan.com. The best by far.
This is the easiest plugins for Adsense so far I found.
gouts last blog post..1
Great plugin if you have 20 programming degrees. The code is impossible to navigate and even more difficult to figure out. No tags anywhere to tell you where to paste what. Big waste of time.
I’m trying to use the sidebar widget, but my ads aren’t showing up even after waiting 48 hours. I can’t tell if it’s AdSense, the plugin, my layout, or what. I’m guessing it’s the plugin, only because nothing shows in the preview screen on my dashboard either. “Show adsense to administrator” is checked, but no pages are set. Am I supposed to enter codes for the ads to show on pages as well as have the sidebar widget? The ads don’t show on the pages either when I set that anyways. You might want to update your tutorial a bit, there are still a lot of questions that aren’t answered. And the widget isn’t even mentioned.
IS THERE A WAY TO SHOW THE AD IN EVERY POST INSTEAD OF ONLY THE FIRST 10 POST? IF SO HOW DO I DO THAT
no, you can only show 3 as per the google terms.
My content is wrapping around the middle position and I don’t want it to.
is there any easy way to duplicate the plug in configuration in order to embedded him in many blogs
for ex. most of my blogs are in the same pattern and i tired to enter the settings of your ( great) plugin over and over again…
thanks !
yos
Can’t seem to use the tag , there must be something wrong.
Any help is appreciated.
where do I find the options to set codes? I don’t see anything like that on my dashboard
Great plugin! Works perfectly. Thanks.
[...] Downloadseite Englische Anleitung Zur Blog Startseite Social [...]
I’ve looked this up and down. How do you get to the set options page?
I put in the code but it was obviously too large and the priview window has pushed down the update button. Now it’s behind the “powered by wordpress” footer and I can’t access it to change the size of the banner.
Can you help?
Pretty straightforward plug-in so I thought. Unfortunately, the none of the ads are showing up on my site with posts well over 300 words. Instructions don’t help either. Is the plugin broken? Don’t know but I just know I had ads showing before I installed this and now no ads show not even with me doing the configurations properly according to the instructions. Not going to keep trying at this. It’s like make a simple plugin or just don’t bother making one at all.
I recently added an Adsense square ads on my travel blog. my adsense earning is still low since i dont have large volume of internet traffic yet.
`
hi-
i have this plugin on many sites buy have something strange happening- i can not edit the code that goes into the widget. manually editing it is of no effect- it simply reverts to the original code in the widget when i save any changes to the widget box. And editing it in code block #2, where the original code was set, has no effect on the code in the widget. the widget settings are in fact nowhere to be found (I don;t know how it knew to put code block #2 code in the widget in the first place….)
would love a few tips here on the widget settings and controls
Okay, I’ll ask again –
This is a sterling plugin, and beats the pants off of any other I’ve found for Adsense management.
I ran into a conflict using this and the WPTouch plugin. I need to explain the issue first (again).
Google specifies that for cell phone pages there can only be one ad to a page. WPTouch gives me the option of adding Adsense code for cellphone ads, but doesn’t suppress the ads the WhyDoWork plugin displays. So I either set up one ad to a page, or stop using one plugin.
Well, I want my three ads to a page per my Adsense terms of service for my site, and I would like to make use of WPTouch, and it would be nice if I could display my one cell ad to a page through that plugin.
I brought this same issue up with WPTouch around the same time I mentioned it here, and the silence was deafening. This was about a year ago.
Can’t the two of you talk to each other?
Hey, I have no programming skills at all. A friend told me about this, I put it on my site http://CandiesShoesReview.com and put the code she gave me:
Just put your code in the place it says to and load it in the plugin, set the placement of add and it works, I love it,
Thanks Tiffany
great looks like it is working!
@Tiffany –
This doesn’t address my situation. I don’t think you understood my message. You don’t have WPTouch or one of the other similar plugins installed on your site. If you had looked at my site, you would have seen I have my ads set up fine. I am not using WPTouch or any of the other “mobilizing” themes at the moment, because I haven’t found a resolution to this issue that satisfies me.
@WhyDoWork –
So, I’ve asked about this issue twice, and I still haven’t gotten a response, even “sorry, we’re not going to do that.” May I have an answer?
I just installed this on Wordpress MU, everything works great, thank you.
Also installed your adsense income firefox add-on. Anyone with adsense and firefox, take a look a this utility, it takes 1 minute to install. If you are a ‘wonder-how-adsense-is-doing” freak like me, it takes no clicks but only a glance to see what your running total is for the day. Want to get into adsense for details, one right click. So Sweet !!
Love this plugin thanks. The only way I could think of to improve it would be to add the ability to rotate, limit number of impresions, increase amount of ads allowed, and set ads to expire also.
Would be most useful for ads other than adsense to have these options.
How do I desactive the plugin?
Going in plugin label and desactiving still showing the ads.
I evean try to delete folder from plugin directory… nothing happens… still showing ads!!
What sould I do?
Are you using the latest version of wordpress? Removing the folder would definitely remove the ads.
Thank you so much for this plugin! it’s working perfectly on mine. Ok admittedly, took a few minutes for me to figure out the post id… i tried the post ID of the categories and not the posts itself.. so there! Thank you again
glad to hear you like it !
This plugin is freaking awesome!! I’ve just installed it and have been playing with it. Works great. I’m about to write a post about great WP plugins and yours will be top of the list. Thanks!
awesome! Look forward to reading it
My ever lasting gratitude for this nice plug-in!
I have a little problem with it’s related widget – it doesn’t get the changes made in the plug-in section. I also cannot update it since it always keeps the initial code. Is it a known issue, or I’m missing something?
I have done the settings properly, but instead of where the ads should be, all I get is a block of the same size that says “The webpage cannot be found”
Wtf? Help is appreciated.
what is your url? I’d make sure the frame with the ad is being served up correctly by AdSense.
How come my previous comment and question was deleted? :-/
What was it? I usually only delete spam. Might have missed your comment
i am really very thankful that Google launched the Adsense program. this enables most of us who owns several websites to work at home.
adsense code won’t appear neither on top nor in the middle, only at bottom of my posts. doesn’t appear on fron page at all. any idea why this is?
thanks!
Your pluggin is the best I ever have seen to put adsese ads in the posts. Contragulations.
Thanks for this! I heard about the plugin from @problogger’s blog and I just implemented it today, at first I couldn’t figure out why I couldn’t see the ads, had to check off show ads to administrator! Looking good, thanks so much for this plugin!
i love google Adsense, it enables me to earn money on the websites and forums that i have put up several years ago. if you got tons of websites, you can earn a lot from Adsense alone