Adsense Code problem

Discussion in 'PHP' started by asd, Jul 15, 2008.

  1. #1
    I have plugin for community builder for joomla. And that plugin allow me to show users adsense on their page.
    I looked at that script code and I found this

    <script type="text/javascript">
    google_ad_client = \"". $user->cb_publisherid ."\"; 
    google_ad_slot = \"". $user->cb_googleadslot ."\"; 
    google_ad_width = 468; 
    google_ad_height = 60; 
    
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    
    PHP:
    But this doesnt work. Can you help me?
     
    asd, Jul 15, 2008 IP
  2. revvi

    revvi Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    make sure you put the correct user publisher id and ad slot in your plugin config. Because it is expecting the value of those. Otherwise, just copy and paste your adsense code directly into your template.
     
    revvi, Jul 16, 2008 IP