<!-- google_ad_client = "xxxxxxxxxxxxxxxxxxxxx"; google_ad_width = xxxxxxx; google_ad_height = xxxxxxx; google_ad_format = "xxxxxxx"; google_ad_type = "xxxxxxx"; google_ad_channel ="xxxxxxx"; google_color_border = "xxxxxxx"; google_color_bg = "xxxxxxx"; google_color_link = "xxxxxxx"; google_color_url = "xxxxxxx"; google_color_text = "xxxxxxx"; //--> <script type="text/javascript"   src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> " />

Jump to content


- - - - -

4 Ads On A Page - Interesting Code Sample


  • Please log in to reply
No replies to this topic

#1 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 13 September 2005 - 03:56 AM

Hi everyone,

it is against the TOS to have more than 3 Adsense Ads on a page. however I was just pointed to a site that is displaying 4 ads! I found this very interesting. I will show the code here - not because you should do this! DON'T! i just like to keep a record of "interesting stuff" i find on the net.

the page contains 3 ads as per normal and a 4th ad that is displayed via an iframe.

the iframe reference in the main page HTML looks like this -

<IFRAME src="http://www.domain.com/file.htm" width="100%" height="95" scrolling="no" frameborder="0" marginheight="0" marginwidth="0">

and the iframe code in file.htm looks like this -

Quote







<script type="text/javascript"><!--
google_ad_client = "xxxxxxxxxxxxxxxxxxxxx";
google_ad_width = xxxxxxx;
google_ad_height = xxxxxxx;
google_ad_format = "xxxxxxx";
google_ad_type = "xxxxxxx";
google_ad_channel ="xxxxxxx";
google_color_border = "xxxxxxx";
google_color_bg = "xxxxxxx";
google_color_link = "xxxxxxx";
google_color_url = "xxxxxxx";
google_color_text = "xxxxxxx";
//-->
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">








1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users