I have a PHP website with mobile version and google ads are displayed there. I have received google code from my client for the header and the footer, respectively, and they are not always displaying. I receive a lot of warnings in the automatic error reports looking like this:
fopen(http://pagead2.googlesyndication.com/pagead/ads?...): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
After the question mark in the URL there are some parameters with private information, so I decided to write ... instead of them. I have asked my client to regenerate the codes and he has done so, I have pasted the new code for the header and the footer too, however, when we thought the error is gone we decided to call it a day and after 16 hours I have received 4352 error reports, 95% of them was with google ads, the error being the same, namely: failed to open stream. I wonder why do we see sometimes the ads and why are they not showing up in other cases. Question: When you guys have this errors, what are the steps to get rid of them and show the ads? (Of course I can take out the ads, but then my client would be unhappy, LOL)
EDIT: This is part of the code (confidential information was taken out from it and replaced with 'secret'). I hope that the question makes more sense now.
$GLOBALS['google']['client']='secret';
$GLOBALS['google']['https']=read_global('HTTPS');
$GLOBALS['google']['ip']=read_global('REMOTE_ADDR');
$GLOBALS['google']['markup']='xhtml';
$GLOBALS['google']['output']='xhtml';
$GLOBALS['google']['ref']=read_global('HTTP_REFERER');
$GLOBALS['google']['slotname']='secret';
$GLOBALS['google']['url']=read_global('HTTP_HOST') . read_global('REQUEST_URI');
$GLOBALS['google']['useragent']=read_global('HTTP_USER_AGENT');