PDA

View Full Version : Problem with Google AdSense link units


mikeprince
6th of December 2006 (Wed), 22:41
I have been trying to incorporate Google AdSense into my gallery pages. I have no problems with full ad units but I can not get link units to work in IE.

I have put the AdSense code for link units in header.php, and full ad units in default_XHTML_content.php for index.php, as can be seen at http://www.bubo.org/gallery/. The link units only work in Firefox: they show in IE, but not as hyperlinks. If I put full ad units in the header (looks horrible, but a worthwhile test) then they work in both Firefox and IE. So the problem is just with link units.

NB: This is with Firefox 1.5.0.8 and IE6.

Has anyone managed successfully to integrate AdSense into their EE?

Cheers
-- Mike --

Pekka
7th of December 2006 (Thu), 10:38
Must be CSS z-index conflict. Try putting the ads in a DIV and raise the z-index to something very large if needed.

mikeprince
10th of December 2006 (Sun), 22:35
I already have the AdSense code inside a <div align="right">.

Do you mean the z-index value in ...exhibition/embedded/default_XHTML_css.php? If so I've not been able to notice any difference regardless of the value I set it to, or even if I remove it.

Pekka
11th of December 2006 (Mon), 19:01
I'll take a look at in in near future. Usually the best way to try debugging code problems is to minimize: take all CSS off and see what happens. In EE templates you can remove template or CSS file by giving it a false path.

mikeprince
13th of December 2006 (Wed), 04:56
I'd be grateful if you do get a chance to look at it. I've tried a number of things but to no avail. I've removed all CSS (by entering invalid paths in Styles), used a header.php containing only the AdSense code, entered the AdSense code directly in index/default_XHTML_content.php, removed the stylesheet reference in the same file, but still the link units show incorrectly.

I have just tried in IE7 but here I get the well-known MS - Google conflict whereby no AdSense ads show at all in IE7!

Cheers
-- Mike --

rickou812
18th of August 2009 (Tue), 21:34
Has this issue been figured out yet?