Forum Moderators: martinibuster

Message Too Old, No Replies

Can I remove the new lines?

On Adsense Code

         

roycerus

7:37 pm on Jun 11, 2005 (gmt 0)

10+ Year Member



Hi,
I was just wondering if I can remove the new lines from the adsense code:

<script type="text/javascript"><!--
google_ad_client = "Not that dumb that I would leave this here";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Becomes:

<script type="text/javascript"><!--
google_ad_client = "Not that dumb that I would leave this here";google_ad_width = 250;google_ad_height = 250;google_ad_format = "250x250_as";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

Just to make the code smaller. Cause with two unit and loads of additions like color / alternate url etc etc it becomes high. And say if I have two of these and an adlink and placed at the top it makes the content code go real low.

Any ideas?

Regards,
R

kodaks

7:48 pm on Jun 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thats a tough questions. The Adsense policies says:

Any AdSense ad code or search box code must be pasted directly into Web pages without modification. AdSense participants are not allowed to alter any portion of the ad code or change the layout, behaviour, or delivery of ads for any reason.

I am not sure if taking away the lines is considered altering. You probably won't run into any trouble, but I suggest you contact Adsense Support just to be sure.

roycerus

7:56 pm on Jun 11, 2005 (gmt 0)

10+ Year Member



I've sent the question to Adsense support. Lets say what they say. But i am wondering if it will actually have any effect. I am changing the display on one of my sites, changing the ad layouts and adding two different ad layouts and an adlink. Which is like 61 lines which is now pushing the content that much lower in the page.

What do you think?

Regards,
R

sirkei

8:06 pm on Jun 11, 2005 (gmt 0)

10+ Year Member



use a table trick or div to push your content to the top.

jomaxx

9:50 pm on Jun 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just don't touch the code. It's a trivial number of bytes and it's doubtful that eliminating linefeeds will have any detectable effect on any ranking algorithm anyways.

cagey1

3:14 am on Jun 12, 2005 (gmt 0)

10+ Year Member



As Will Rogers once said,

'Some people want to lock the Golden Goose in the barn, and others just want to give her a "little trim" with a hedge clippers.

'My advice is to leave her alone so she can lay some eggs.

OK, Will Rogers never actually said that, but I bet he wishes he did.

roycerus

3:22 am on Jun 12, 2005 (gmt 0)

10+ Year Member



:-) Yeah.. I'm taking that advice. Leaving it to one ad only [untouched]. Thanks for the advice. Appretiated.

Regards,
R

jetteroheller

9:46 am on Jun 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Even with 1 million ad impressions, this makes only 10 MB.

At bandwith costs at $1 per GB,
thats about 1 cent.

There are much more at other parts of the html

Use a CMS removing all CR, each line instead of CR/LF only LF
Most " are unnecessary in HTML
In Tables are </tr> </td> unnecessary

All this can reduce a large HTML page by several KB.