Can you explain how to add a plugin? for example adsense?

I would appreciate if someone explains that.

Comments

  • seancarmodyseancarmody
    Use the addPlugin function in config.php, for example

    addPlugin('MobileProfile');

    I haven't tried AdSense, but I imagine

    addPlugin('Adsense');

    would work.
  • FranciscoFrancisco
    thanks sean, I have another question, where do I edit the Adsense.php with my adsense editor ID?
  • seancarmodyseancarmody
    Actually, looking in the code, what you need to do is invoke the plugin in config.php like this:

    addPlugin('Adsense', array('client' => 'Your client ID', 'rectangle' => 'slot'));


  • aricaric
    Oh there should be a readme for addsense.

    adding to my todo.
  • FranciscoFrancisco
    I still cannot have my ads in the microblog, could someone be more specific please?
  • aricaric
    addPlugin('Adsense', array('client' => 'pub-xxxxxxxxxxxxx', 'rectangle' => 'xxxxxxxxxxxxxxxxx'));

    so this is in your config.php?

    your google account will provide the details of ClientID and rectangle.
  • chris10chris10
    I added this line on config.php then I find my pub code

    what do you put on rectangle ? I put the google_ad_slot is that right ?

    Then do I have to change the template ?
  • aricaric
    @chris10 I don't have a google ad words account. So i dunno, Just try plugging some stuff it should be straightforward.

    looks like rectangle translates to size or somthing...
    https://www.google.com/adsense/static/en_US/AdFormats.html
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID