AdSense for Mobile: Broken

I'm not sure if this is a problem affecting everyone, but it's definitely hitting me and Miker. Mobile AdSense ads from Google are hanging because of some server side problem on their end.

Here's an example error:

Warning:  fopen( [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request
 in on line 61

Because I was using their code to automatically insert their mobile ads on pages that contained the regular AdSense, this problem wacked a large number of sites, causing those pages to hang. I've replaced the original Google-supplied PHP which used fopen with some basic curl functions instead, so that I can add a timeout - if the pages die or don't return, the page will still display.

This is a pretty big screw up, and I don't know how long it's been going on, but I suspect a few days, actually. I wonder what these guys are thinking? First, the way they want you to include a page hosted on their site is an insane security hole - see that show_ads.php page in the above error? That's what I'm talking about - that's a page on their server (which is the one throwing the error), it's nutty. I downloaded the PHP they want you to include manually instead so I wouldn't have to require() a page outside of my own server. Secondly, the fopen stuff is just DUMB - since there's no timeout, if it hangs, your page hangs as well, or barfs up some sort of nasty error. I can understand that Google wants to make the code as portable as possible, so they don't want to require Curl libs, but it's just a stupid, lazy, lowest-common-denominator solution that's more dangerous than helpful.

These guys need to get their act together. Taking down pages on my site is annoying.


< Previous         Next >