Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense in closeable div?

         

mlduclos

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

10+ Year Member



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]

dibbern2

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

WebmasterWorld Senior Member 10+ Year Member



I do it all the time. abs pos div, that is.

mlduclos

10:27 pm on Jul 29, 2006 (gmt 0)

10+ Year Member



Thanks, but this do not answer my question. Anybody else?

Rodney

10:47 pm on Jul 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

jomaxx

12:55 am on Jul 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've never seen this and I can't quite fathom why you want to do it. Best to ask G.

TonysDesigns

5:18 am on Jul 30, 2006 (gmt 0)

10+ Year Member



Can you regale the group on what this does exactly?

leadegroot

5:31 am on Jul 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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!

jomaxx

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

WebmasterWorld Senior Member 10+ Year Member



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.