For your information: (I've added this to http://en.wikipedia.org/wiki/AdSense )
----- Original Message ----- From: "Google AdSense" adsense-tech@google.com To: "Sterling D. Allan" sterlingda@greaterthings.com Sent: Monday, August 16, 2004 12:02 PM Subject: Re: [#13322665] placing AdSense code in a wiki
Hello Sterling,
Thank you for your email. Please note that our ad code is JavaScript code. Unfortunately, wikis do not support JavaScript code. Additionally, at this time, we do not offer an alternative method of generating ads. Please do not change or alter the ad code in any way, as this is against our program policies.
We are always working to improve the AdSense program and I have forwarded your feedback about wikis to our team.
Please feel free to reply to this email if you have additional technical questions or concerns. For general program or account questions, please email adsense-support@google.com.
Sincerely,
Leslie The Google Team
On Mon, Aug 16, 2004 at 06:40:03PM -0600, Sterling D. Allan wrote:
----- Original Message ----- From: "Google AdSense" adsense-tech@google.com To: "Sterling D. Allan" sterlingda@greaterthings.com Sent: Monday, August 16, 2004 12:02 PM Subject: Re: [#13322665] placing AdSense code in a wiki
Hello Sterling,
Thank you for your email. Please note that our ad code is JavaScript code. Unfortunately, wikis do not support JavaScript code.
Can't you as a sysop place javascript into a template as rawhtml, protect that template and then have your users inlcude it into pages they want ads on?
Can't you also just hack mediawiki slightly to have the javascript displayed on all pages?
On Tue, Aug 17, 2004 at 12:44:46AM +0000, Andy Smith wrote:
On Mon, Aug 16, 2004 at 06:40:03PM -0600, Sterling D. Allan wrote:
----- Original Message ----- From: "Google AdSense" adsense-tech@google.com To: "Sterling D. Allan" sterlingda@greaterthings.com Sent: Monday, August 16, 2004 12:02 PM Subject: Re: [#13322665] placing AdSense code in a wiki
Hello Sterling,
Thank you for your email. Please note that our ad code is JavaScript code. Unfortunately, wikis do not support JavaScript code.
Can't you as a sysop place javascript into a template as rawhtml, protect that template and then have your users inlcude it into pages they want ads on?
Can't you also just hack mediawiki slightly to have the javascript displayed on all pages?
I've done that for my bonsaiwiki.de Edit /templates/xhtml_slim.pt like this patch: You can use CSS to hide it either by default or per user: #p-advertisement { display:none; }
*** xhtml_slim.pt.~10~ 2004-08-02 09:59:30.000000000 +0200 --- xhtml_slim.pt 2004-08-13 13:20:18.000000000 +0200 *************** *** 130,135 **** --- 130,153 ---- </ul> </div> </div> + <div id="p-advertisement" class="portlet"> + <h5>Advertisement</h5> + <div class="pBody"> + <script type="text/javascript"><!-- + google_ad_client = "pub-4568250687956376"; + google_ad_width = 120; + google_ad_height = 240; + google_ad_format = "120x240_as"; + google_ad_channel ="6400898876"; + google_ad_type = "text_image"; + //--></script> + <script type="text/javascript" + src="http://pagead2.googlesyndication.com/pagead/show_ads.js%22%3E + </script> + </div> + </div> </div><!-- end of the left (by default at least) column --> <div class="visualClear"></div> <div id="footer">
Sterling D. Allan wrote:
For your information: (I've added this to http://en.wikipedia.org/wiki/AdSense )
I have removed this false, misleading, and irrelevant information from the article.
Hello Sterling,
Thank you for your email. Please note that our ad code is JavaScript code. Unfortunately, wikis do not support JavaScript code.
This is completely and patently false. You can put whatever you want in the output code (in Skin.php) or MonoBook template (xhtml_slim.pt) of your wiki. _End users_ cannot write arbitrary JavaScript _in wiki pages_.
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org