[Seaside] Google Adsense

Ching de la Serna ching.dls at gmail.com
Fri Aug 10 07:15:55 UTC 2007


Thanks a lot folks, for the life of me I cannot understand what has
happened. Ads were suddenly being served and I have absolutely no idea how.
To further muddle/clarify the situation, I did as suggested by the article
by Stu Nicholls:

 http://www.cssplay.co.uk/menu/adsense.html

I did get something served on the little frame where the ads were supposed
to go but it was a small version of my website (wierd!)

On reading Philippe's message, I decided to implement the suggestion at:

http://keystonewebsites.com/articles/adsense.php

I got some wierd characters (which were part of the Php tags. On cleaning up
those php scrpts, lo and behold! ads were served as they should. It gets
wierder because when I tried changing the other ad units, I could not
replicate it (ads being served on some units but not on the other ad units).


On closer examination, I realized that nothing had really been changed from
my original code.

On 8/10/07, Philippe Marschall <philippe.marschall at gmail.com> wrote:
>
> 2007/8/10, Ching de la Serna <ching.dls at gmail.com>:
> > Thanks Ramon,
> >
> > I got this from one of the Google Tech Guys:
> >
> >  After reviewing http://chings-world.com/, I noticed the site was
> created
> >  using XHTML. Unfortunately, our code is not currently XHTML compatible.
> >  However, you may find helpful tips on how to fix this by visiting
> >  http://keystonewebsites.com/articles/adsense.php . You can
> > also find
> >  additional advice on making the code XHTML compatible by searching
> Google
> >  for "AdSense XHTML."
> >
> > Any thoughts on this matter?
>
> The article is pretty straight. The problem is that document.write()
> doesn't work in XML mode (Google's fault here). Fortunately most
> people use HTML mode for XHTML because browser support is crap.  The
> soultion is simple: serve as 'text/html' (which is the default) and
> not as 'application/xhtml+xml'.
>
> Cheeers
> Philippe
>
> > Ching
> >
> >
> > On 8/10/07, Ramon Leon <ramon.leon at allresnet.com > wrote:
> > > > -----Original Message-----
> > > > From: seaside-bounces at lists.squeakfoundation.org
> > > > [mailto:seaside-bounces at lists.squeakfoundation.org] On
> > Behalf
> > > > Of Ching de la Serna
> > > > Sent: Thursday, August 09, 2007 4:32 PM
> > > > To: Seaside at lists.squeakfoundation.org
> > > > Subject: [Seaside] Google Adsense
> > > >
> > > > Does Seaside work with Google Adsense? Has anyone done this
> > > > on a site? Many Thanks.
> > > >
> > > > Ching
> > >
> > > Adsense is a client side JavaScript technology, it will work with any
> web
> > > framework, what you use on the server to generate said html and
> JavaScript
> > > isn't relevant.
> > >
> > > Ramon Leon
> > > http://onsmalltalk.com
> > >
> > > _______________________________________________
> > > Seaside mailing list
> > > Seaside at lists.squeakfoundation.org
> > >
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > >
> >
> >
> > _______________________________________________
> > Seaside mailing list
> > Seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20070810/f9b90b27/attachment.htm


More information about the seaside mailing list