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 have the plugin installed and inserted the adsense code into slot #1. I just want my ads to show up in the middle right on the top 3 posts. Do I have delete my old adsense codes to get the plugin to work? Sorry but I am still a little bit confused. Thanks
If you’re talking about TraderBubs, you need at least 2 paragraphs in a post to show ads in the middle. The plugin counts how many paragraphs there are, divides the number by 2 and inserts it after that paragraph.
For example, if you have 6 paragraphs in a post, it will insert the ad after the 3rd one (which is considered to be in the middle).
Middle right and left work best on articles with more text then your blog has. Otherwise you don’t have enough text to wrap around the ad.
Anyway, you should have these settings at the Front Page settings for Middle right to show if you have articles with more text in them:
Code # – Middle Right – Post 1
Code # – Middle Right – Post 2
Code # – Middle Right – Post 3
Thanks for all the help. I think I will just keep the current layout that I currently have. My adsense numbers seem to be decreasing even though my readers have gone up, I just thought it was time for a change. Once again thanks, I have added your feed and am know a regular reader.
First of all, thanks for subscribing. Second, it’s not about the layout, but about the text. You don’t have enough text in your posts to use the middle options.
Thanks for this great plugin. Although I think I’ve optimized my Adsense blocks enough, I like the option of suppressing the ads for new posts.
However, I have a quick suggestion. In your Exclude Page/Posts, it would be great if you could include the option for excluding certain categories. Often I like to make 1-2 line posts for which even the Top and Top Right/Left ad blocks are disproportionately large or for personal reasons, I don’t want ads on certain posts. Thus it would be great to exclude those categories from displaying any ads.
Patrix, thanks for the suggestion. I’ll see what can be done, but the next version is still a few weeks away.
[...] Blogging is an upcoming blog and is relatively new. But, they already have some great posts like a Adsense Plugin Tutorial. This contest winners are going to walk away with some nice ad packages. First prize winner gets 3 [...]
[...] of difficult to configure and I need some time to figure it out. Lucky me, Alexandru has also a tutorial, [...]
Great Plugin! I’ve been looking for something like this for months.
I previously tried Adsense Deluxe, but that plugin required the very tedious manual manipulation of posts (a waste of time, in my case) and couldn’t keep the ads from showing up in my RSS feed.
On the other hand, your fine plugin is fantastic. I can’t thank you enough.
Great to hear that John. Thanks for the comment
First of all, awesome plugin mate.
dont remove the preview window, its very important, it help chk which ad is in which code.
Wishlist – Wish there was a command to manually add a code to a page.
This is usefull as I use your plguin to inject different adnetworks
Alfred, first of all, thanks!
Second, quite a few people want that, so it will be in the next version of the plugin. Hopefully in November it will come out.
[...] Nota: No hacer clics en la vista previa, ya que es el código original Adsense. Web: Shylock Adsense Plugin / Tutorial: shylockblogging.com [...]
hello,
I would love to use this plugin in conjunction with another plugin, but unfortunately it seems not to work. The other plugin is: http://thesandbox.wordpress.com/wpads/ and it helps me randomize my ads.
I.e. I can input 5 different ad formats into wp ads, assign them all to a “zone” and then just add this code to display ads for this special zone into shylock adsense, so wp ads would rotate between those ads for that zone and shylock adsense would rotate the position it gets inserted.
The problem right now is that, shylock adsense inserts the code but it seems not to get parsed, it seems wp ads comes before shylock adsense inserts his code
the wp ads code looks like: and after shylock inserts that, it should be parsed by wp ads.
I will also post on that authors page.
oh and one more question:
I understand waht Front Page(categories, archive) means, but what does Page and Single Page stand for? I mean single page seems to mean the view when viewing only one post. but page? does that refer to any page?
Ovidiu, single page means a normal post, and page means pages like About and Contact.
[...] Download here and full tutorial here! [...]
Can I request for add COMMENT page for next release?
I’ve installed the plugin witch is very good. Bur i’m having trouble in making it work in the sidebar. I put it in wordpress admin in the presentation page in widgets, but adsense don’t appear. Why?
Thanks.
This plugin is awesome. I had it installed and working in less than 20mins. I highly recommend this to anyone who is interested in making money with Google Adsense.
This is a great plugin. I was wondering if there was a way to get an ad to align to the bottom left of a post.
When I select align bottom, it aligns to bottom center.
I would like to align the adsense ad as bottom left.
Thank you
When I try to use the Shylock sidebar widget it just puts in an empty text box with places for title and code. Am I suppose to type in coding like “[ad code#2]” or something? Is it suppose to do that or allow me to select a code #1-10 that I’ve already put in to use? I would assume the latter so I could prevent it from showing on certain pages. Information on using the sidebar widget would be much appreciated.
Paste the Adsense code in that box Tom.
Well it took a little tweaking, not your fault, just the way my blog is layed out, but it looks pretty damn good! I really think this will help my earnings out immensely. I will get back to you in a couple of weeks with the results.
Thanks for this, I just added close to 1,400 new ads that I did not have before in about 20 minutes.
PS would it be possible in your next release to have some kind of CSS options for padding, etc.? I am terrible at CSS so it would be nice to have built in otpions to choose from.
Thanks again!
Nevis1s last blog post..Nevis Health Minister Welcomes Free Health Care
Nevis is one of the most beautiful places on earth
Have you tried wrapping your ad code in a div tag with style=padding:5px; or something similar?
Yes Nevis is beautiful, sadly though it is getting commercialized rather quickly
I did try as you suggested to wrap the code in CSS, but that did not do the trick either. I think if I make the photos wider, or possibl narrower, this might help. I have the plugin set fro the “home page” to be middle right, but it seems to go up rathewr high on some posts. Maybe too long or too short of paragraphs?
Thanks for this! When was the least time you were in Nevis?
Nevis1s last blog post..Federal Government Guarantees Big Projects For Nevis
@ Nevis1:
I was there last summer. It was extremely relaxing! Hopefully the gov’t will protect it. I’d hate to see it turn into a place like Oahu HI.
If the plugin is set to middle it will count the paragraph tags to determine the correct position, so yes it could be a case of too short.
I’ve had the best success with embedding Adsense ads within the body of the article at the top left.
Love this plugin! However, I’m a touch confused about one thing… do I need to be using the widget for everything to work correctly or can I not turn the widget on and let it display how it wants..
No rush on the answer but I’d certainly dig understanding how it works a bit more.
Thanks for a great plugin, either way!
Wolf Niboris last blog post..First Press Release… released
@ Wolf:
Everything should work correctly with, and without the widget. If you turn it on and an ad position is set, you should be OK to leave it on auto-pilot
I ‘m very enjoy reading your content.
Thank for your good information
I will come back to read more.
JBiggss last blog post..How To Get Approved For A Loan
Dear Sir,
I am a asp programmer.But php have extraordinary technics.Thanks for your scripts.This is best idea about “adsense app. for wordpress”.
note:it is very easy for beginners.
Sincerly,
http://www.advancedseotools.com
turkers last blog post..Lightbox Photo Gallery Software – Digital Asset Management
What an incredible tool! Solved all of my adsense layout problems in 15 -20 minutes. Makes me feel like I’m using a WYSIWYG editor and have more control over which ads (and of what type) goes where.
Again, great tool and thanks for letting us know about it!
BTGNow.nets last blog post..BTG Back Online!
I just put the plugin into a ‘production’ -:) on my blog…. http://www.best-solar-energy.com
It’s great. I love this plug-in. I subcribed to this blog to keep updated. Great plugin for small webmasters and publishers like me. I’m gonna write a review on my personal blog. When it’s done I’m gonna post link here in the comments.
Vladan
Hey! great plugin! one question when i tried to add the 3rd code it is half cut off and says website cannot display (explorer page), why is that? thanks in advance.
Els last blog post..1
excellent plugin. i tried four others with no success and this one worked first time. it’s so good i don’t even have any suggestions at this time. oh yes, maybe one. how about handling ad sense for widget sidebars.
thanks. good job. as soon as i can i will make a donation.
I’m getting everything inserted but no ads are showing — not even public service ads. The code is leaving a space for them as designated, but nothing is showing up. Any suggestions?
Crafty Josies last blog post..Fall is Craft Fair Season
Hi
I don’t htink this is possible, but would be really nice, which is the ablity to exclude a particualr ad from a category or page.
As an example if you have ads top, middle and bottom. On our site we have long articles and some sections only have a very short amount of text and a image.
So i’d like to say exclude the middle advert form the following category
Thanks
Nadeem Aslams last blog post..Dubai loses status as haven for bankers
@ Nadeem:
If you use the middle ad position, it will only display ads if there are more than two “
” (paragraph open tags found)
This feature you’re requesting is already there
hi,
I have put the plug-in onto my site http://www.stopbadbreath.net however the ads do not show up,any idea why that could be?
p.s I have many other plug-ins do you think may be they do not work together
thanks
loopys last blog post..1
Show adsense to administrator?
-what do you mean by this checkbox?
Bryan navarros last blog post..Miss Earth 2008 Winners
@ Bryan:
That means whether or not you want to see adsense ads as an administrator of the blog. (ie. if you are logged into Wordpress and visit a page, do you want to see an ad? Most cases it is just wasted impressions as you can’t click ads on your own site, but sometimes it is helpful to turn on for testing.)
Thanks!
Hi. Nice plugin. Would appreciate more info on how to make the sidebar widget show the Ad. I can’t seem to make it work.
Very great Plugin which works very fine! Thank you very much!!!
How about adding more Ad-Positions like “footer” or anything? And how about leaving more Ad-Spaces so you can put maybe 2 Google-Ads, one self-defined (Link-Box, internal search or something) and 2 Amazon?
How about extending the Plugin to the Sidebar?
And: How about giving the option to ad maybe the google search-adsense-Code to a 404-not-found and to a search-page without results if possible?
@WhyDoWork:
I’ve heard a lot of great things about this plugin, but cannot get any settings page for it to show up in my Admin Panel. Is there something I’m doing wrong, or does it not work on Wordpress 2.7?
I uploaded it to my plugins dir & activated it. It is listed as an active plugin, but I cannot find where to Admin the plugin itself. Please help.
Thank you,
Matt Jabs
Hi Matt,
The plugin should be appearing in the ‘Settings’ section (below Tools) in 2.7 within your wordpress admin console.
@WhyDoWork:
Thanks very much for replying so fast.
I do not see it. I have downloaded the 1.2 version and uploaded to my plugins dir. I see it in my plugins…then activated it, but there is no heading for it under the ‘Settings’ section.
Any ideas? What is the Heading for the plugin (under ‘Settings’) supposed to read? ‘WhyDoWork’?
Matt
Matt Jabss last blog post..Are You Paying Yourself?
@WhyDoWork:
Here is a link to a screenshot of my WP 2.7 Admin Interface showing no Admin link for WhyDoWork, and showing that I do have the proper version of the plugin activated.
Matt
Matt Jabss last blog post..Are You Paying Yourself?
should read “Whydowork Adsense” in the Settings area.
***Update***
I just deactivated ALL my plugins EXCEPT WhyDoWork, and it STILL didn’t show up under the ‘Settings’ menu.
Any ideas?
Thanks,
Matt
Matt Jabss last blog post..Are You Paying Yourself?
hmmm not sure..send an email using the contact form at the bottom of this page and someone will help you out. Include your site address when writing.
Very very very impressive plugin.. and so im paying few cents by cpc
Hamads last blog post..1
I just cannot get this to wrap
it always puts the ad inbetween theparagraphs
am I doing something wrong
I am using WP2.7
janes last blog post..HONEY AND ME
I’m having troubles with every adsense plugin screwing up the layout in IE… Firefox it’s fine but in IE the “top left” ad shows up floating in the middle of the content… any ideas?
Golf GPSs last blog post..Golf GPS Rangefinder Using Technology to Improve your Golf Game
at first glance looks like you have a p tag around the whole area. Try using the Firebug plugin in Firefox to inspect.