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



Bubs responded on 11 Sep 2007 at 8:44 pm #
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
Alexandru responded on 11 Sep 2007 at 8:53 pm #
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
Bubs responded on 11 Sep 2007 at 9:26 pm #
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.
Alexandru responded on 11 Sep 2007 at 10:08 pm #
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.
Patrix responded on 17 Sep 2007 at 12:54 am #
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.
Alexandru responded on 17 Sep 2007 at 4:26 am #
Patrix, thanks for the suggestion. I’ll see what can be done, but the next version is still a few weeks away.
Contest Time: Time to Test Your Luck | ShanKri-la responded on 20 Sep 2007 at 6:27 am #
[...] 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 [...]
Adsense Plugin | Ortis - blog 'bout blogging responded on 22 Sep 2007 at 7:56 pm #
[...] of difficult to configure and I need some time to figure it out. Lucky me, Alexandru has also a tutorial, [...]
John Place responded on 03 Oct 2007 at 5:57 pm #
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.
Alexandru responded on 03 Oct 2007 at 6:01 pm #
Great to hear that John. Thanks for the comment
Alfred responded on 19 Oct 2007 at 5:23 am #
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
Alexandru responded on 19 Oct 2007 at 8:12 am #
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.
Shylock AdSense: anuncios AdSense automatizados en rubendomfer responded on 23 Oct 2007 at 11:22 am #
[...] Nota: No hacer clics en la vista previa, ya que es el código original Adsense. Web: Shylock Adsense Plugin / Tutorial: shylockblogging.com [...]
ovidiu responded on 24 Nov 2007 at 3:14 pm #
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.
ovidiu responded on 26 Nov 2007 at 2:39 pm #
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?
Alexandru responded on 26 Nov 2007 at 11:18 pm #
Ovidiu, single page means a normal post, and page means pages like About and Contact.
Introduce Shylock Adsense Wordpress Plugin | Planet Lowyat responded on 24 Dec 2007 at 6:04 pm #
[...] Download here and full tutorial here! [...]
Planet Lowyat responded on 27 Dec 2007 at 7:08 pm #
Can I request for add COMMENT page for next release?
José Martins responded on 07 Jan 2008 at 11:53 pm #
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.
Mr Lifelesson responded on 01 Feb 2008 at 6:23 am #
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.
jason responded on 08 Apr 2008 at 11:29 pm #
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
Tom responded on 09 Apr 2008 at 6:37 am #
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.
Alexandru responded on 09 Apr 2008 at 12:28 pm #
Paste the Adsense code in that box Tom.
Nevis1 responded on 22 May 2008 at 4:42 pm #
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
WhyDoWork responded on 23 May 2008 at 7:12 am #
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?
Nevis1 responded on 28 May 2008 at 6:58 pm #
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
WhyDoWork responded on 29 May 2008 at 7:03 am #
@ 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.
Wolf Nibori responded on 01 Jun 2008 at 7:54 am #
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
WhyDoWork responded on 01 Jun 2008 at 7:56 pm #
@ 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
JBiggs responded on 23 Jun 2008 at 4:53 am #
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
turker responded on 03 Jul 2008 at 5:29 am #
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
BTGNow.net responded on 31 Jul 2008 at 6:11 am #
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!
Vladan responded on 17 Aug 2008 at 11:53 pm #
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
El responded on 08 Sep 2008 at 4:17 pm #
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
ray responded on 19 Sep 2008 at 10:07 pm #
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.
Crafty Josie responded on 22 Sep 2008 at 1:16 pm #
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