| 8:28 am on Nov 11, 2003 (gmt 0)|
Here is the thread you are remembering [webmasterworld.com]
The difference is that you are splitting the AdSense code between your page and the js, and you are not permitted to alter the code in any way at all. The "http://pagead2.googlesyndication.com/pagead/show_ads.js" has to be together with the rest of the AdSense code.
The link above shows you how to do it correctly, which is Google approved, or at least approved as of a month ago.
| 10:03 am on Nov 11, 2003 (gmt 0)|
google_ad_client = "XXX";
google_alternate_ad_url = "http://www.XXX.com/gfx/sp/gif";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_color_border = "B4D0DC";
google_color_bg = "ECF8FF";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "6F6F6F";
| 10:35 am on Nov 11, 2003 (gmt 0)|
If it is any help I too tried and tried with the code on the earlier thread and could not get it to work....
If anyone comes up with how to do it. It would make a great addition to the Adsense FAQ's thread
| 8:16 am on Nov 12, 2003 (gmt 0)|
Sort of glad it's not just me :)
My site's built in straight html and rank well in the engines so I really don't want to have to change my file extensions or structure too much in order to get an include to work for these ads.
Any ideas here would be much appreciated. :)
| 6:31 pm on Nov 13, 2003 (gmt 0)|
google_ad_client = \"XXX\";\
google_alternate_ad_url = \"XXX\";\
google_ad_width = 728;\
google_ad_height = 90;\
google_ad_format = \"728x90_as\";\
| 6:41 pm on Nov 13, 2003 (gmt 0)|
daugava, did you run that past the Google AdSense team? They are extremely strict that they don't want their AdSense code altered whatsoever (as per the FAQ). I am pretty sure someone had said a month or two ago that doing something similar to this was vetoed by Google.
| 6:56 pm on Nov 13, 2003 (gmt 0)|
I guess I'd better do that, huh?
The code they provide doesn't run from external JS,
so the only change I made is making it to work.
(They have that weird mismatched /script tag which seems
to mess things up. Plus, the variables end up being
I was worried about this, but then I saw the other thread
about running from external JS and I figured that whoever got it working, did exactly the same thing I did, and got approved.
| 7:01 pm on Nov 13, 2003 (gmt 0)|
You can contact the tech support team directly at firstname.lastname@example.org Let us know if that script is Google approved ;)
| 7:49 pm on Nov 13, 2003 (gmt 0)|
google_ad_client = "XXX";
google_alternate_ad_url = "XXX";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
I've emailed Google to ask if they approve.
If yes, we'll be able to use it, yay!
| 8:50 pm on Nov 13, 2003 (gmt 0)|
Dang, got a reply, which says "code cannot be altered in any way".
Therefore, it seems like an external JS will not work at all - unless the people who got approval for their version of the code post it here, so we can use that one.
| 9:43 pm on Nov 13, 2003 (gmt 0)|
I have since changed my site back to the exact code embedded in the html.
In an email I intricately described how and why I made the edits to the code, and then asked if there was an approved method of embedding the code through an external js file. To that I recieved a stock reply thanking me for changing my code back to stock... oh well, I was probably just having a nice conversation with their mailbot the whole time. LOL :D
| 3:18 am on Nov 14, 2003 (gmt 0)|
-- Owner edited because while explanatory, was actually mostly a duplicate of above. --