I've installed and have been testing Managing News on www.allNFCnews.com. For some reason I can't get Google Adsense ads to show up. I have the block set for full HTML, the block handles other banner ads, but not the javascript from Google.

Any ideas?

Comments

tmcw’s picture

There's something wrong in your Google Ads code. The javascript is being loaded and the element (iframe) is created for the ads to display, but the format parameter is not set. The URL that you're loading in the iframe is

http://googleads.g.doubleclick.net/pagead/ads?format=undefinedxundefined&output=html&lmt=1259447964&ea=0&flash=10.0.32&url=http%3A%2F%2Fwww.allnfcnews.com%2F&dt=1259447970862&correlator=1259447970866&frm=0&ga_vid=399837697.1259447971&ga_sid=1259447971&ga_hid=360837270&ga_fc=0&u_tz=-300&u_his=1&u_java=1&u_h=800&u_w=1280&u_ah=774&u_aw=1280&u_cd=24&u_nplug=9&u_nmime=95&biw=1280&bih=694&ref=http%3A%2F%2Fdrupal.org%2Fnode%2F640164&fu=0&ifi=1&dtd=98

Which is blank. I'm assuming format=undefinedxundefined is the problem here?

generix’s picture

Thanks, after changing code and playing around for a while, it actually was the HTML corrector setting in the Input Formats for Full HTML. I unchecked it and it is working.

tmcw’s picture

Status: Active » Fixed

Cool, marking as fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mustafa.ata’s picture

Note that I am using drupal 7.

The solution which worked for me is that I used the adsense tags format and then used this format to show ads on the site. Actually I was getting Ads disabled for admin and for other users i was getting the empty ad with space occupied on page but nothing shown. After different tweaks and experiments I got the following code working for me

[adsense:336x280:XXXXXXXXXX]

2nd parameter is width x height
3rd parameter: XXXXXXXXXX denotes the google ad slot/id.

I hope this will help others.

Ata ul Mustafa