Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Adsense Widget

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 5399 Views
  • Ryan
    Avatar
    Community Member
    11 Posts

    Adsense Widget Link to this post

    Hey.

    I have developed an Adsense Widget as part of the Google Highly Open Participation contest.

    The Adsense Widget will allow the integration of Google Adsense adverts into your site.

    I have got the code to output into the website correctly, but I can't seem to get the advert to appear.

    Does anybody know why this is?

    Thank You.

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Adsense Widget Link to this post

    ( I've asked Will Scott who worked with Google APIs on SilverStripe before, to respond, although given xmas, its reasonable to expect he may be unable to respond )

    Perhaps if you put up a live working copy somewhere, you could ask on a google adwords mailing list; is it just some javascript to show the ads?

  • Ryan
    Avatar
    Community Member
    11 Posts

    Re: Adsense Widget Link to this post

    yes, Its just some Javascript which displays the advert.

    Thank you.

  • laktek
    Avatar
    Google Summer of Code Hacker
    76 Posts

    Re: Adsense Widget Link to this post

    As far as I know, Adsense only displays ads on live sites (which means publicly accessed and approved by Google). Were you testing this on a live site or on your local copy ?

  • Ryan
    Avatar
    Community Member
    11 Posts

    Re: Adsense Widget Link to this post

    That is probably what it wrong I was testing it locally.

    Thank You.

  • Ryan
    Avatar
    Community Member
    11 Posts

    Re: Adsense Widget Link to this post

    Could someone please try using this widget on a live server.

    Thanks.

  • Ryan
    Avatar
    Community Member
    11 Posts

    Re: Adsense Widget Link to this post

    I have found the problem, since SilverStripe outputs as xml

    <?xml version="1.0" encoding="UTF-8"?>

    Firefox will treat it as its xml and will not understand the write() function.

    I am going to use CDATA to try for a work around, otherwise It will not work in firefox.

    5399 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.