Welcome to WebmasterWorld Guest from 54.90.204.233

Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense Javascript Implementation

Has anyone tried this?

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

Full Member

10+ Year Member

joined:May 3, 2004
posts:302
votes: 0


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 July 2, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 25, 2002
posts:2605
votes: 0


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

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

Senior Member from MY 

WebmasterWorld Senior Member vincevincevince is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 1, 2003
posts:4847
votes: 0


I don't quite understand what you are saying. All Adsense units are deployed via Javascript.
5:53 pm on July 2, 2005 (gmt 0)

Full Member

10+ Year Member

joined:May 3, 2004
posts:302
votes: 0


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.
6:17 pm on July 2, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 8, 2005
posts:58
votes: 0


Are you a premium adsense customer or beta tester or did they enable this just because you asked?
6:18 pm on July 2, 2005 (gmt 0)

Full Member

10+ Year Member

joined:June 29, 2004
posts:306
votes: 0


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?

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

Full Member

10+ Year Member

joined:Mar 5, 2004
posts:215
votes: 0


How did you get the javascript option?
10:48 pm on July 3, 2005 (gmt 0)

Full Member

10+ Year Member

joined:May 3, 2004
posts:302
votes: 0


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.
12:06 am on July 4, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 23, 2004
posts:89
votes: 0


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.

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

Preferred Member

10+ Year Member

joined:Nov 16, 2003
posts:522
votes: 0


you should discuss this with your account rep directly, they need to approve whatever you are doing anyways
1:38 am on July 4, 2005 (gmt 0)

New User

10+ Year Member

joined:July 4, 2005
posts:7
votes: 0


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

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

Junior Member

10+ Year Member

joined:Nov 23, 2004
posts:89
votes: 0


Wouldn't ad blocking software just block the external javascript file that the code accesses?
2:43 am on July 4, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:June 14, 2005
posts:400
votes: 0


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"

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

Junior Member

10+ Year Member

joined:Nov 23, 2004
posts:89
votes: 0


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!

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

Preferred Member

10+ Year Member

joined:June 14, 2005
posts:400
votes: 0


You're correct. I hope Google works on a much better syndication method.
6:07 pm on July 4, 2005 (gmt 0)

System Operator from US 

incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 25, 2005
posts:14664
votes: 99


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.

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

New User

10+ Year Member

joined:June 24, 2005
posts:21
votes: 0


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.

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 24, 2003
posts:814
votes: 0


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.
3:33 pm on July 13, 2005 (gmt 0)

System Operator from US 

incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 25, 2005
posts:14664
votes: 99


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.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members