Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 01-19-2011, 06:20 PM   #1
Elite Warrior
 
Join Date: Oct 2009
Location: New York, NY U.S.A.
Posts: 348
Thanks: 39
Thanked 0 Times in 0 Posts
Default Google Adsense Ad Units

Hi, How to I go about defining the first ad unit in the html code of my website, if I am using a WordPress theme like Thesis? I want to be able to define the ad units number in the order I choose. Please show me how to do this someone.
Terrence Taitt is offline   Reply With Quote
Old 01-19-2011, 06:32 PM   #2
AdSense Realist
War Room Member
 
JoshuaG's Avatar
 
Join Date: May 2009
Location: Canada
Posts: 751
Thanks: 93
Thanked 99 Times in 76 Posts
Default Re: Google Adsense Ad Units

Sorry you'll have to be more clear.

JoshuaG is offline   Reply With Quote
Old 01-19-2011, 07:06 PM   #3
Plundering the Web
War Room Member
 
paulgl's Avatar
 
Join Date: Feb 2007
Location: , , .
Posts: 4,849
Thanks: 804
Thanked 1,199 Times in 886 Posts
Default Re: Google Adsense Ad Units

However your page looks to a human, google will in most cases abide.

But the point is moot. Just place your ad blocks, load the page, and whichever
one is furthermost on top, that's the one. I don't know of anywhere that google
lets you decide which one is the "first," except by ad placement. There is
no defining the top ad block. You could "define" it, but if google thinks another
one is on top, well, you would never know.

If you look at a sample page using whatever theme you have, and it has
set places for adsense, you would know which one is on top.

But again, saying an ad is the top one is moot if google does not think so.

I actually use 2 ad blocks above the fold, right side, left side. Both are
on equal level. Google probably "decides" the left one is "top." I would
not know. I do know the bottom block is indeed the bottom.

If your theme does not have easy adsense placement, then sifting
through a mass of CSS, DIV's is a bear. It may take a few tries to
get it right.

To be certain of a "top" ad, put the ad just below the <body> tag,
first line, paying attention to the alignment. Center probably works best.
provided you can locate this exact spot. Since sifting through can be rough,
Load the page, then view the html source. This is the way it looks to
your browser. Now locate the <body> tag and see what is there just below
it. Then you can find that by looking at the pages you edit. It's a good
way to determine other things too like class of tables, fonts, etc.

Likewise, to be sure of a bottom ad, put it right before the </body>

I learned a long time ago to not try and handcode some themes. Just
pick ones that have set editable places for ad blocks.

The top ad is not necessarily the first ad in the raw source.

Peruse themes that have adsense blocks. Choose one that has
adsense in places you like.

Paul

How to Make Money off Facebook: Login to your account. Deactivate your account. Get your butt to work.
paulgl is offline   Reply With Quote
Old 01-19-2011, 07:41 PM   #4
Advanced Warrior
War Room Member
 
Join Date: Oct 2010
Location: USA
Posts: 981
Thanks: 337
Thanked 54 Times in 41 Posts
Default Re: Google Adsense Ad Units

yes there are several plugins you can get with wordpress that will let you select where the ads go with thesis..I use thesis...I it's a good theme....just do a search in plugins for adsense
Isaiah is offline   Reply With Quote
Old 01-19-2011, 09:15 PM   #5
Troy Steele
War Room Member
 
Fraggler's Avatar
 
Join Date: Jul 2009
Location: Brisbane, Australia
Posts: 1,763
Thanks: 723
Thanked 499 Times in 319 Posts
Social Networking View Member's Twitter Profile 
Default Re: Google Adsense Ad Units

In Thesis 1.5 you jsut had to define a function for each of your AdSense blocks in the custom_fucntions.php and then insert the function above or below the hook where you want it to appear.

For Example - this will add an adunit towards the top and bottom of the page:
Quote:
<?php

function customAdsenseTop380() {
?>
<div id="google-380">
ADSENSE CODE GOES HERE
</div>
<?php
}
function customAdsenseBottom380() {
?>
<div id="google-380">
ADSENSE CODE GOES HERE
</div>
<?php
}
add_action('thesis_hook_before_post_box', 'customAdsenseTop380');
add_action('thesis_hook_after_post_box', 'customAdsenseBottom380');
Thesis Hook Reference List -> Thesis Hooks to find the different spots to find where you can place them.

Fraggler is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum

Tags
adsense, google, units

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 02:08 AM.