When I try to put an google ad in a banner, I've got this error: google_ad_width is undefined. (Drupal 4.5.0)

The ad appear in the banner config but not in the page...

Any ideas ?

Thanks!

GG

Comments

jeremy’s picture

Google ads are displayed with javascript, as are banner.module ads. I do not know any way to display a google ad within a banner.module ad. I recommend instead you either ad the add to a custom box, or directly to your theme.

ggalopin’s picture

Thanks for the answer.

The problem is when I put ads directly in the theme, I've got a conflict with HTMLarea when trying to edit a theme. The popups (image, links) don't work.

GG

jeremy’s picture

Project: Banner » Htmlarea
Component: Banner Ads » Code

I'm moving this issue to the htmlarea module, as you're more likely to get help there. Odds are someone has run into this before. Good luck.

gordon’s picture

I have added adsence to my web page and I have no problems with htmlarea. Can you please give an url so I can test this. Also setting up a demo page much like what I have on my web site will allow me to access and test htmlarea and see if it is a problem.

gordon’s picture

Are you sure that you have added the code to you theme correctly. esp the google_ad_width var which is within the code.

I am 99.99% sure that it is not a problem with htmlarea, or the variable name space.

gordon’s picture

There seems to be an issue with htmlarea and IFRAMES which can cause some errors. I have been getting this error as described here http://www.htmlarea.com/forum/htmlArea_3_(beta)_C4/htmlArea_v3.0_-_Beta_Release_F14/Setup_help%3B_Popup_(link,image,etc)_errors_P27428/

I solved this problem by not displaying google ad's on pages where htmlarea is used.