Forum Moderators: martinibuster
/pagead/imp.gif
I can't find anything in my code that matches this, and I don't use an imp.gif
These show up for a wide range of my pages that have adsense on them, and not for any pages that don't have adsense on them. That's why I'm wondering if it's an Adsense thing.
Any ideas? Anyone else seeing this in your logs?
The link to it is actually held in show_ads.js which is called to show the adsense block.
pageads/imp.gif should be under the following directory:
[pagead2.googlesyndication.com...]
Are you programatically adding the Adsense code to your pages?
Have you been losing impressions - suffering funny stats etc?
Maybe adsense bug, cacheing issue? Don't know but probably worth raising with adsense support.
Are you programatically adding the Adsense code to your pages?
The closest I come to this is using the DW search and replace function.
Have you been losing impressions - suffering funny stats etc?
No, nothing that I've noticed. Stats seem fine. Impressions are growing in line with my traffic growth in general.
The number of these 404s is growing much faster. Most of these pages have not been changed in months at least.
What I'm seeing in my logs looks like this...
the 404 >> afolder/anotherfolder/pagead/imp.gif
called from >> mydomain.com/folder/folder/some.htm
Some older browsers choke on relative links if they are in javascript, particularly if they are in external files, and super particularly if they those external javascript files are located on a separate domain name.
The vast majority of browsers will have no problems whatsoever, but older browsers, or browsers which have a hard time with 100% compliance with JavaScript can choke on this.
Essentially, they don't know that "/pagead/imp.gif" is supposed to be relative to pagead2.googlesyndication.com and not yourdomain.com - hence the request is made to your server instead of Google's, thus the 404 errors.
2 solutions exist:
1. Create a transparent image file called imp.gif in a newly created /pagead/ directory on your server. This will just stop the 404's
2. Use a redirect from /pagead/imp.gif on your server to pagead2.googlesyndication.com/pagead/imp.gif - all of the criteria, such as referrer, page requested etc.. should get passed on, so Google probably won't even know that there was a problem, nor your users.
This is all an idea of mine by the way, but it seems implied - I have not done this myself, yet I have noticed these 404's on my site too!
I am showing all of my 404's for that file from Hughes (direct PC proxy?)
ip range is 66.82.9.x where x is 24 to 68
OrgName: Hughes Network Systems
Address: DirecWAY Network Management Center
It's either faulty caching-proxy code on their part (I bet) or an old browser going through their system.
Thanks!
ASA
You mentioned above:
Interestingly enough, the call is actually absolute and not relative
Maybe you've not very good in terms of coding, however this:
var img_url = window.google_ad_url.replace(/pagead\/ads/, 'pagead/imp.gif'); is a line of code from show_ads.js, and that is a RELATIVE call to the imp.gif file and NOT ABSOLUTE, or at least it leaves the potential for it to be.