Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense Javascript Implementation

Has anyone tried this?

         

Musicarl

5:49 am on Jul 2, 2005 (gmt 0)

10+ Year Member



The nice people at Google have enabled Javascript implementation for our Adsense ads. In theory, this will allow us to better integrate Adsense into our site.

I'm trying to figure out if there is much of an advantage to going with the Javascript. It looks like you can change fonts, but I'm not sure what else you can do. Then again, I know very little about Javascript.

If anyone is using Javascript implementation or can think of a good use for it, please share.

ann

10:37 am on Jul 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



where does it give you a choice? I have never seen but one way to get adsense code and it is googles choice not mine.

Maybe I missed something?

Ann

vincevincevince

10:41 am on Jul 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't quite understand what you are saying. All Adsense units are deployed via Javascript.

Musicarl

5:53 pm on Jul 2, 2005 (gmt 0)

10+ Year Member



The ads are served in an HTML Iframe, but apparently Google will allow certain publishers to use Javascript instead, which could allow more customized formatting.

huwnet

6:17 pm on Jul 2, 2005 (gmt 0)

10+ Year Member



Are you a premium adsense customer or beta tester or did they enable this just because you asked?

sirkei

6:18 pm on Jul 2, 2005 (gmt 0)

10+ Year Member



I also don't get this thread. I thought the ads are called via a javascript trick served from google's server.

Or am i wrong?

Bluepixel

6:20 pm on Jul 2, 2005 (gmt 0)

10+ Year Member



How did you get the javascript option?

Musicarl

10:48 pm on Jul 3, 2005 (gmt 0)

10+ Year Member



Google contacted us with suggestions and included some instructions on the Javascript formating. If we do use the Javascript, they have to approve it. As far as I can tell, this is a beta test - apparently a fairly new one.

mafew

12:06 am on Jul 4, 2005 (gmt 0)

10+ Year Member



The ads are served in an HTML Iframe, but apparently Google will allow certain publishers to use Javascript instead, which could allow more customized formatting.

The javascript that we all include in our HTML pages output an HTML Iframe by something along the lines of:

document.write("<iframe ....");

So we're all already using javascript to show our ads.

Maybe Google offered you some more variables that will change the display of the ads.

freeflight2

12:34 am on Jul 4, 2005 (gmt 0)

10+ Year Member



you should discuss this with your account rep directly, they need to approve whatever you are doing anyways

Ratbert

1:38 am on Jul 4, 2005 (gmt 0)

10+ Year Member



It could be XHTML compatible JavaScript implementation that doesn't document.write iframe but instead creates the ad containing table structures on the fly with DOM methods .createElement/.appendChild etc.

Another bonus for this method would be that such way generated ads could slip through ad blocking software.

It would be great to those pages that are valid XHTML 1.0/1.1 and being served as
Content-Type: application/xhtml+xml

mafew

1:52 am on Jul 4, 2005 (gmt 0)

10+ Year Member



Wouldn't ad blocking software just block the external javascript file that the code accesses?

Alioc

2:43 am on Jul 4, 2005 (gmt 0)

10+ Year Member



Which ad blocking software, it's external anyway.
If it's blocked, that regular one gets blocked too.

src="http://pagead2.googlesyndication.com/pagead/show_ads.js"

mafew

2:54 am on Jul 4, 2005 (gmt 0)

10+ Year Member



Yes, firefox's ad blocking plugin just blocks that external file. I think as long as Google gives us an external file to include we will always have problems with ad blocking software.

For now I think we're lucky that the majority of users don't use ad blocking software. But as soon as it's included in browsers we'll be in trouble!

Alioc

5:50 pm on Jul 4, 2005 (gmt 0)

10+ Year Member



You're correct. I hope Google works on a much better syndication method.

incrediBILL

6:07 pm on Jul 4, 2005 (gmt 0)

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



firefox's ad blocking plugin just blocks that external file

BTW, it would be relatively trivial to just include javascript on the web page that can detect if the ads were loaded or not and redirect the visitor to a "DISABLE YOUR AD BLOCKING TO USE THIS SITE" sort of thing.

I think we, as publishers, should start deploying such tactics before our ad revenues are blocked 100%, but it would take most publishers doing it before people would take a hint that their banner blocking days were over.

thedealmaker

1:00 am on Jul 13, 2005 (gmt 0)

10+ Year Member



That's pretty stupid for people to think that adblock and disable javascript will make ad revenue decline in any major way unless IE or Firefox(if it beats IE in future) includes something like adblock as the DEFAULT feature.

You technical people always forget that majority people in the world don't even know what javascript is, let alone adblock. For every 10 people disabling javascript or adblock, there are millions of other people who don't even care to find any way to block the ads. They just don't know how to block ads unless it's a feature that's installed in default.

markus007

2:02 am on Jul 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I use it, works great on a few pages were i want to display a single adsense ad on a single line. Other then that it really isn't helpful.

incrediBILL

3:33 pm on Jul 13, 2005 (gmt 0)

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



You technical people always forget that majority people in the world don't even know what javascript is, let alone adblock

Nice theory but it doesn't hold water.

My little old gray haired mom didn't know she was blocking ads, Norton Firewall was doing it for her.