Customize Google Adsense Ads

How to customize google adsense lay out - font face, size, color, numb

Page 1 of 1

3 Replies - 4598 Views - Last Post: 17 October 2007 - 12:48 PM

#1 abhijitkd   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 22-September 07

Customize Google Adsense Ads

Posted 22 September 2007 - 10:27 AM

How to customize google adsense lay out - font face, size, color, number of ads, etc. for example www.about.com, www.cricketnext.com. This is legal. I also attached show_ads.js here. Plz help me to do the same.I tried same on my web page but not working. any questions regarding the same welome. Any help for html, web designing, blogging, sources for codes, wordpress, shopping cart installation, i will help you just mail me. I like this website.------------------------------------------------------------------------------

<script language=Javascript>
 						function google_ad_request_done(google_ads)
 						{
 							var s = '';
 							var i;
 
 							if (google_ads.length == 0) 
 							{
 								return;
 							} 
 						
 							if (google_ads[0].type == "image") 
 							{
 								s += '<a href="' + google_ads[0].url +
 								'" target="_top" title="go to ' + google_ads[0].visible_url +
 								'"><img style="border:none;" src="' + google_ads[0].image_url +
 								'"width="' + google_ads[0].image_width +
 								'"height="' + google_ads[0].image_height + '"/></a>';
 							}
 							else
 							{
 								if (google_ads.length == 1) 
 								{
 									/*
 									* Partners should adjust text sizes
 									* so ads occupy the majority of ad space.
 									*/
 									s += '<td align=center><a href="' + google_ads[0].url + '" ' +
 															'onmouseout="window.status=\'\'" ' +
 															'onmouseover="window.status=\'go to ' +
 															google_ads[0].visible_url + '\'" ' +
 															' class="red-11" style="font-size:10px">'+
 															google_ads[0].line1 + '</a><br>' +
 															'<a href="' + google_ads[0].url + '" ' +
 															'onmouseout="window.status=\'\'" ' +
 															'onmouseover="window.status=\'go to ' +
 															google_ads[0].visible_url + '\'" ' +
 															' class="grey11" ><font style="text-decoration:none;"><font class=ash11><font color=black>' +
 															google_ads[0].line2 + ' ' +
 															google_ads[0].line3 + '</font></a></td>';
 								}
 								else if (google_ads.length > 1) 
 								{
 									/*
 									* For text ads, append each ad to the string.
 									*/
 									for(i=0; i < google_ads.length; ++i) 
 									{
 										
										s += '<td width=250px valign=top><a href="' + google_ads[i].url + '" ' +
 																  'onmouseout="window.status=\'\'" ' +
 																  'onmouseover="window.status=\'go to ' +
 																  google_ads[i].visible_url + '\'" ' +
 																  ' class="red-11" style="font-size:14px">' +
 																  '<font class=ash11 color=#0099ff><b>' + google_ads[i].line1 + '</b></a><br>' +
 																  '<a href="' + google_ads[i].url + '" ' +
 															'onmouseout="window.status=\'\'" ' +
 															'onmouseover="window.status=\'go to ' +
 															google_ads[i].visible_url + '\'" ' +
 															' class="grey11" style="text-decoration:none;"><font style="text-decoration:none;"><font class=ash11 color=black>' +
 																  google_ads[i].line2 + ' ' +
 																  google_ads[i].line3 + '</font></a></td>';

									
 										if(i<1)
 										{
 											s +='<td width=30px></td>';
 										}
 									}
 								}
 							}
 							document.write(s);
 							return;
 						}
 						google_ad_client = 'pub-2242539371574078'; 
						//2007-09-20: blog
						google_ad_channel = "6442827050";
 						google_ad_output = 'js';
 						google_max_num_ads = '4';
						google_targeting = 'content';
 						google_ad_type='text';
 						google_feedback = 'on';
 						google_language = 'en';
 						google_encoding = 'utf8';
 						google_ad_section = 'default';
 					</SCRIPT>

		  <script language=Javascript 
		  src="./show_ads.js">
 					</SCRIPT>



[Mod Edit] Use the code tags. :angry:

Attached File(s)



Is This A Good Question/Topic? 0
  • +

Replies To: Customize Google Adsense Ads

#2 skyhawk133   User is offline

  • Head DIC Head
  • member icon

Reputation: 1967
  • View blog
  • Posts: 20,425
  • Joined: 17-March 01

Re: Customize Google Adsense Ads

Posted 09 October 2007 - 04:37 PM

This is not legal, you can not customize google ads. It's a violation of the TOS. The sites you listed are part of the premium publisher program for sites with over 5,000,000 page views monthly.

If you touch your adsense code, you will be thrown out of the adsense program forever.
Was This Post Helpful? 0
  • +
  • -

#3 Fygar   User is offline

  • I liek milk!!1
  • member icon

Reputation: 6
  • View blog
  • Posts: 4,361
  • Joined: 28-March 02

Re: Customize Google Adsense Ads

Posted 10 October 2007 - 06:32 AM

Posted Image

For-ever... For-ever... For-ever...
Was This Post Helpful? 0
  • +
  • -

#4 axel   User is offline

  • Bug Juice Doesn't Come in a Jar
  • member icon

Reputation: 2
  • View blog
  • Posts: 1,944
  • Joined: 31-December 06

Re: Customize Google Adsense Ads

Posted 17 October 2007 - 12:48 PM

Fygar, you are amazing.


and yeah dude, that is not a good idea at ALL. Leave it alone.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1