Erik’s Blog: Board Shorts and Business Suits

Building Bussiness Systems from the Shores of Waikiki

Entries Comments



Adding Goggle Adsense to WordPress - the dumbed down easy way

14 November, 2005 (20:22) | Wordpress Tips | By: Erik

09-05-07 UPDATE: I just wrote a new post about inserting adsense between multiple paragraphs in a wordpress blog post. Check it out for the best way to add adsense within a post without using a plugin!

Follow this link if you aren’t using wordpress and want to wrap text around adsense in you html code content.

I have been able to add Google Adsense to my wordpress designed blog pretty easily and make the text wrap around the ads.

However in order to do that I searched and searched unable to find any easy dumbed down version for those of us with little wordpress experience. So with that I will give everyone out there a quick and easy way to get up and going and then just link to this post in the wordpress forums about adding Google Adsense to your blogs.

First off, I am using the Google Adsense-Deluxe plugin provided by the guy running the acme tech website. There is another Google Adsense plugin for WordPress out there but this guy seemed to give a compelling argument that he upgraded Phil Hords Adsense plugin. My method will probably work for both but I spent a lot of time figuring this one out (which turns out should take about 5 minutes) so I may or may not try the other. Either way this should work for both. So here goes:

FOLLOW THESE WELL DESCRIBED STEPS: DON’T WORRY ITS QUICK I’M JUST DESCRIPTIVE

1. First you must go and get the Google Adsense-Deluxe plugin from the guys website who made it. To get it click
here
.

2. In the middle of the page you will find the download button right above the Make a Donation button. Click it then follow the windos info boxes to save it somewhere (desktop works) and then unzip it and save the unzipped folder. There are several ways to do this, just make sure the files are saved to your computer and easily accessable.

3. Log on to your WordPress Blog manage page, where you write posts and edit settings. Click on the Options tab on the top (it’s between Users and Upload), then click on the Miscellaneous tab

This is where I was stumped for a bit having no plugin experience.

4. Once in Miscellaneous make sure the box right under the words Micellaneous Options in the upper left has a green check mark in it. It should say “Allow file Uploads” next to the box. If it isn’t checked click on the box to make the green check mark appear. Then within the Misc Options, the first option down, Destination Directory, in the text box make sure that whatever is currently in there ends the following way mine has www/nfblog/wp-content/plugins. I had to change mine by erasing the last portion (for the picture directory) then just having it end wp-content/plugins. Next the fourth option down should say “Allowed File Extensions” with a text box next to that with words like jpg and gif in it (Maybe it has none, mine had some extensions (words) in it already). Click within this text box after the last word (extension) and put a space with the space bar after it and type php. Just those three letters php (note it doesn’t have to be bold).

To finish updating the Miscellaneous Options there should be a button in the bottom right of the Miscellaneous Options box that says Update Options. Click that button.

5. Now you must upload the Adsense-Deluxe plugin that you just downloaded to your computer. First you must click the Upload Tab which on mine is located directly to the right of the Options tab.

6. Then click on the browse tab to browse your computer for the folder containing the Google Adsense-Deluxe files. The main folder that you downloaded should be called something like adsense-deluxe_wp_plugin. Within that folder go to the folder labeled adsense-deluxe_wp_plugin_v0.5. Within that folder there should be a file labeled adsense-deluxe.php. Click on this and then click open to add the file to the text box next to the browse button on the upload page in WordPress.

7. I didn’t put a description in the text box so you can or leave it blank, and then the thumbnail thing is up to you not sure where it puts a thumbnail but I said no thanks. Then all you have to do is click the button that reads Upload File at the bottom of the Upload box (should be next option after the thumbnail radial buttons).

There now its ready to use.

8. To use it you now have to go back to the tab labeled Options that you were first in. Once you click it you should see that there is another tab next to the last Options tab (for me it was next to the Miscellaneous tab) named AdsenseDeluxe. Click on that tab. If you don’t see it you might have uploaded the wrong file or didn’t type in the php part correctly, make sure to do this in step 4.

9. Once in the AdsenseDeluxe tab you can now paste your code. Open your Google Adsense account from Google preferably in a new window or tab, and pick all the options you want, then copy the code. Go back to your opened AdsenseDeluxe tab within WrodPress and scroll to the middle of the page in the place where it says New Adsense Block. Once here paste your code into the box labeled Adsense Code.

You can also add a name, keep it to letters and numbers and use underscore for spaces, as well as a description and you can make any of them default. Names will allow you to put in different code for different add setups and store them in your Adsense Deluxe Plugin to call them in you posts at anytime.

To test it out I marker it as default and didn’t give it a name or description.

10. Finally click the Add Adsense Block button in the lower right hand corner. This will add your code block to the plugin.

Now to use your code in a post and get the text to wrap around the code. I had some trouble at first getting the text to wrap around the code but just looked through somone elses code who had something similar and searched for a good way to do it. Here’s how:

11. First go to the Write Tab on WordPress or click on the manage tab to edit a current post. Either way open up a post to edit. Put your title in, and excerpt if you want, and then start writing your post. Keep writint, blah, blah,blah, and then when you know where you want to add your post all you have to do is go to the far right drop down box in the row that is labeled quicktags. Click on the arrow to access the drop down menu and it should have your adsense code in there looking like adsense or it might be have a name after the adsense part if you gave it a name back in step 9.

12. Click on the one you want or the only one there is there. and then in the text where the cursor was there should be this <!–adsense–>, and in the post preview part you should see that same text but as a green block with black words. However, if you were to publish the post your adsense would show up in your published post.

ALMOST DONE!

Now to get the text to wrap around the Google Adsense in wordpress. If you aren’t still in the write post part or edit post part then get there. Once there:

13. Add this code to your post just before the <!–adsense–> part, <div style=”display:block;float:right;margin: 0px 10px 0px 0px;”> and then add </div> after the <!–adsense–> part. This will allow the text to wrap around the Google Adsense. The portion call margin: with all the px’s after it allows you to add a margin to the Google Adsense so the text doesn’t merge. It goes top bottom left right. Play around with that or set them all to 0. See what works for you.

The final inserted code should look like this.
<div style=”display:block;float:right;margin: 0px 10px 0px 0px;”><!–adsense–></div>

YOU ARE DONE!!!!!!!!

Once you have the code in your post you can move it around quickly by copying (or cutting) and pasting it to new places in your text. Also REMEMBER that google doesn’t allow more than three ad blocks per page so remember to delete the code from old posts if you keep more than one on any page and have code elsewhere. Otherwise you can use the code in up to three posts.

I hope that wasn’t too long winded. I just didn’t find a good source for how to do this and had to do a lot of searching and nothing I typed into google, yahoo, or msn came back with anything for Getting text to wrap around google adsense in wordpress (or word press, or google adsense deluxe). Nothing. So in order to save others headaches my buddy told me to write this post. I hope you found it helpful.

Good luck!

Comments

Trackback from WordPress Info And Tips
Time: November 17, 2005, 8:01 am

Tutorial: Adding Goggle Adsense to WordPress

? Are you new to WordPress and have problem using the AdSense-Deluxe plugin I told you about yesterday?
Then, you should read the nice tutorial Erik Vossman wrote about how to get your blog text to wrap around the ads.

Comment from Jeff Walters
Time: November 30, 2005, 2:03 am

I put the tag wrappers around the Adsense code - in the plugin’s Options page.
That way if I want to move all my Adsense ads of a particular type from “float:left(or right)”
to say centering them with a “text-align:center; width: 100%”, I only have to do this in one
place for all my ads of a similar type to behave in the same way.

Comment from Secure Steve
Time: December 3, 2005, 4:55 am

Awesome tutorial! When I first tried the plugin it wasnt working, but this helped a lot! Thanks again!

Comment from Scott
Time: December 30, 2005, 1:40 pm

Thank you very much for the tips. Exactly what I was looking for to implement on my webblog posts.

Comment from newuser
Time: January 1, 2006, 7:37 am

Does this work with the new version of Wordpress?

Answer from Erik: YES :)

Comment from Lucky Balaraman
Time: January 6, 2006, 10:27 pm

Fabulous, tutorial, Erik, thanks a ton!

I would like to update it by appending the following info to Step 7:

———————–

Now go to your WP Admin main menu. In line with the ‘Dashboard’ tab you will see a ‘Plugins’ tab. Click on that. You will find yourself on a ‘Plugin Management’ page.

There will be a table there with headings ‘Plugin’, ‘Version’, ‘Author’, ‘Description’ and ‘Action’.

In the first row below the headings you will see ‘Adsense-Deluxe’ in the first column. You will see ‘Activate’ in the last column of the same row. Click on ‘Activate’.

———————–

Erik, feel free to add this to your instructions, you have master reprint rights on it.

Thanks

Lucky

—————-

Comment from SuzyQ
Time: January 12, 2006, 8:55 am

Great post. Nice job.

Comment from guv
Time: January 12, 2006, 6:01 pm

Two nights I have spent trying to wrap text round ads. You have solved the puzzle for me. Thanks for taking the time to publish this

Comment from make money on the Internet
Time: January 25, 2006, 7:23 am

Hi! What a great blog! Great job! thanks again for the info! I’ll be back again to visit and read some more in a few days! :-)

Comment from informatica etl
Time: January 26, 2006, 6:48 am

I was searching the web and found your entry. I really like your site and found it worth while reading through the posts. I am looking to publish a comprehensive site reviewing many different articles and blog. Please feel free to take a look at my blog at etl tools and add anything your want.

Comment from Jimmie
Time: May 5, 2006, 5:27 pm

Thanks Erik for the help with wrapping my text around my ads. What an absolutely great tutorial you’ve provided.

Success!

Comment from Administrator
Time: May 5, 2006, 10:22 pm

No problem Jimmie. Glad I could help. Great site. I was just watching the re-run of the Clevand game and followed your link. Oops.

Saw the score, must finish up good, OT baby.

Comment from Franck
Time: May 26, 2006, 7:20 am

thabnks a lot mate, your post is number one.

I will put a link on my blog rigth now.

I add you to my feed reader ASAP.

Comment from CKDumont
Time: November 21, 2006, 5:05 am

I have downloaded the plugin and activated it…no problem. BUT…when I go to the miscellaneous tab…it’s not all set up the way you describe it. I did a print screen of my misc. tab but can’t seem to be able to paste it here. The plugin is activated and uploaded but I don’t have a adsense tab anywhere in my wordpress admin panel…can anyone help please?

Thanks

Comment from Erik
Time: November 21, 2006, 7:06 am

I would maybe check out the version of wordpress you’re using and the version that the plugin says it’s compatible with. Let me know if there is any conflict there.

Comment from freeinfoz
Time: December 15, 2006, 1:24 pm

When i tried to wrap the adsense, it worked. However, the text only floats to the left and when the part where adsense finishes, the text does not go below it. Please help me.

Comment from Arnold
Time: April 21, 2007, 9:58 am

If you’re all dead lazy like me, I’ve run up a little WP plugin to add the ads throughout a site automatically.

http://www.foreignperspectives.com/wp

Comment from Erik
Time: May 13, 2007, 3:58 pm

Hey Arnold, nice, it’s always better to make things easier and easier.

Aloha!

Comment from paul
Time: June 25, 2007, 2:18 pm

i had the adsense plug-in already so it was real easy. thanks for the post it was a real time saver. if you like baseball stop by the website and click your favorite team!!!

Comment from Gavin
Time: July 14, 2007, 5:01 am

Amazing, I’ve just spent the last hour following other people’s advice and failed to have the text wrap around the ads.

5 minutes after using your advice it is now working. Thanks for easing my pain. :-)

Comment from Rahul
Time: August 27, 2007, 1:22 pm

THANKS SO MUCH! I’ve been looking for a dumbed down version of this for months!

Comment from Rahul
Time: August 27, 2007, 1:28 pm

Also, is there any way to add more space between the text and the ad? Please e-mail me and let me know. Thanks!

Comment from Exploring The Internet
Time: March 28, 2008, 7:05 pm

I referred your post here as one of resourceful sites on my blog. One question about margin: 5px 5px 5px 5px; I still confused what these numbers stand for. You said they are white space for top, bottom, left, and right respectively. I tested them. It doesn’t seem to be right. Other website said they are white space for top, right, bottom and left respectively. What do you say about that?

Lanna

Comment from Chelle
Time: February 22, 2009, 3:57 am

Thanks! I just tried this and it worked like a charm. Awesome. I am going to see if it helps boost my revenue at all :)

Comment from George Pennells
Time: June 17, 2009, 7:13 pm

Great stuff! I was trying to put the 160×200 skyscraper in my new site using Advertising manager plugin. Couldn’t figure out how to do the wrap around though.I was so frustrated. That is till I stumble upon your site and got the code. Thanks a lot it was a great help.

Comment from Rai
Time: January 24, 2010, 10:03 pm

I am so glad I found your site! I have been searching around looking for a way to position Adsense beside paragraphs and had a hard time finding relevant information until I found your post. Thank you, thank you! Now, I can customize the placements of my ad better.

Comment from bestsellers book
Time: February 18, 2010, 2:02 am

phew .. now it all looks so much easier .. i was starting to get frustrated about this.

Write a comment