Welcome to WebmasterWorld Guest from 54.196.73.22

Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense in closeable div?

     
6:17 pm on Jul 29, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:June 17, 2005
posts:97
votes: 0


Itīs O.K to put adsense code insite an closeable div with absolute position or this is not allowed?

Below the code


<div id="adsense" style="position:absolute; width:310px; height:270px; z-index:6; left: 110px; top: 170px; border: 1px none #000000; visibility: visible">
<div align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" style="border: 2px solid #FAFAFA">
<script type="text/javascript"><!--
Google Code
</script>
</td>
</tr>
<tr>
<td align="center" height="15" valign="middle"><img src="/images/CloseButton.gif" onClick="getElementById('adsense').style.display='none'"></td>
</tr>
</table>
</div>
</div>

Thanks

[edited by: mlduclos at 6:27 pm (utc) on July 29, 2006]

6:26 pm on July 29, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 19, 2005
posts:797
votes: 0


I do it all the time. abs pos div, that is.
10:27 pm on July 29, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:June 17, 2005
posts:97
votes: 0


Thanks, but this do not answer my question. Anybody else?
10:47 pm on July 29, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 24, 2002
posts:1209
votes: 0


100 people could tell you yes, it's OK, but the only answer that matters is going to come from Google Adsense directly (if you're looking for an OK on the TOS).
12:55 am on July 30, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member jomaxx is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 6, 2002
posts:4768
votes: 0


I've never seen this and I can't quite fathom why you want to do it. Best to ask G.
5:18 am on July 30, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 8, 2004
posts:131
votes: 0


Can you regale the group on what this does exactly?
5:31 am on July 30, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 27, 2003
posts:1648
votes: 2


For an authoritative answer you will, of course, need to ask Google - but I'm not sure what your question is Q: "Can I put adsense code inside HTML on a page?" A:"Yes, of course, what else is it for?"
The only question is if the final appearance will meet the TOS.
Are you going to use absolute positioning to put it next to a 'click these ads' instruction? They won't like that. To put the ads next to images that look like they might be for the products advertised? They won't like that.
But generic use of absolute positioing to eg. put the ads last in the markup but first on the page - that is absolutely fine.

Ahhhh! When I read your markup carefully, it appears that you are going to put up a CSS equivalent of a pop over.
I havent read the TOS for this specifically myself, as I don't use such things, but I would look in the TOS for whether placement of adsense in pop ups is allowed at all.
Google won't care what technology you are using to make a popup - if it walks like a duck and it quacks like a duck - its a duck! "No popups allowed" would mean no layouts like this!

5:36 am on July 30, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member jomaxx is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 6, 2002
posts:4768
votes: 0


Oh, okay now I fathom why you want to put the ad block in a closeable DIV. I detest it when sites superimpose ads over a page's content and I surely hope Google says "no" to this idea.