I approved a DigitalPoint Ads campaign for a site that is mostly built on frames. In order to get the ad maximum exposure (and because it is about twelve years overdue), I began converting the articles to a non-frame layout. Frames: http://www.findadeath.com/ No frames: http://www.findadeath.com/Deceased/b/John%20Belushi/john_belushi.htm Let's concentrate on the 160x600 ad, since it is on both pages. For some reason, the ad works as it should in the old layout, but not in the new. In the new layout (as in the John Belushi article, above), it stretches the table cell but shows nothing but a blank space. (Yeah, I know: tables. But this just a Band-Aid before a complete redesign.) When I inspect the ad further, I get the following code: <div id="dp_ad_1" style="display:inline-block;padding:0;margin:0;border:0;width:468px;height:60px;"><div style="position: relative; width: 468px; height: 60px; opacity: 1; top: 0px; left: 0px; display: block; "></div></div> <div style="position: relative; width: 468px; height: 60px; opacity: 1; top: 0px; left: 0px; display: block; "></div> HTML: 1) Why doesn't the DigitalPoint Ad realize what the correct size is? It's forcing a 468x60 space. 2) If there is no DigitalPoint Ad to display, why isn't my backup ad served? Any insight into what is causing the problem would be very much appreciated.
It must have something to do with the line breaks not being preserved in the new layout. I kept the content of each page the same but changed how the navigation and header are handled. I see that the content preserved its line breaks but the stuff I added didn't. I'm not sure why that makes a difference, but that must be it.
I think it has to do with 468x60 being the default size, which leads me to believe it's not able to understand the JavaScript parameters for size (maybe other things as well). A quick look at the page source shows the JavaScript all run together like so... <script type="text/javascript"><!--dp_ad_width = 160;dp_ad_height = 600;dp_ad_font = "Verdana, Geneva, Arial, Tahoma, Calibri, sans-serif";dp_ad_color_title = "#66b5ff";dp_ad_color_desc = "#cccccc";dp_ad_color_background = "#000000";dp_ad_color_border = "#888888";dp_ad_fallback = "http://www.findadeath.com/revenue/ad-160x600.html";//--></script> Code (javascript): While ugly, it still would *mostly* be okay... except the first part. You have no space or carriage return before the first parameter, so it's seeing a JS variable named: <!--dp_ad_width instead of dp_ad_width You probably should just use normal carriage returns, but at the very least use spaces. BTW - just FYI a similar issue with your Google Analytics JS code... you have a space in "google- analytics.com", which isn't going to work.
That's exactly it, and thanks so much for pointing out that error with Google Analytics. You might have saved me some future grief.