Adsense for Mobile using PHP

2 replies
  • SEO
  • |
I've tried to use Google Adsense for Mobile Content using server-side technology PHP in order to serve ads to all mobile devices.
However, my web host has blocked google.com and all google services including pagead2.googlesyndication.com .
I wrote them and they created a firewall exception for that domain. Still, the 'allow_url_fopen' in my php adsense code still doesn't connect to pagead2.googlesyndication.com .

My host says google uses various IP addresses for that url and that i should find them out. With that, they could create a firewall exception for such IP addresses.
I really don't have an idea of how to figure out google ip addresses for thet domain. How do i go about it?

Or better still, has anyone experienced such issue?

i need you help and suggestions. i'm losing revenue!
#adsense #mobile #php
  • Profile picture of the author retsek
    Time to change your host.
    {{ DiscussionBoard.errors[7437465].message }}
  • Profile picture of the author paulgl
    PHP has nothing to do with any of that, not even
    sure why you mention it.

    You might use to place google's code,
    but it sure aint serving up ads from google.

    Google's script does that.

    But I digress.

    Jobs in Nigeria might be like Unicorn Hunting in Alaska.

    Both are dang near impossible.

    But I further digress.

    It sounds as if you have no clue as to what php
    actually is or does. Again, it aint serving up google ads.

    Of course I could make a joke like, um, use plain html
    to place the code instead...that'll show 'em!

    The only way your host could block google ads,
    was making it impossible for you write raw html
    in modern fashion. That is, you are not allowed
    to specify what version of html, xhtml, etc.
    AND you actually needed to.

    I have yet to come across such a ridiculous
    scenario. Sure, a lot of these WYSIWYG things
    probably do that, but a real webmaster would
    not be using any such thing. And that's not
    a server problem, that's a laziness problem.

    Well, I got one site on a new host last year,
    and they would not allow you to create an htaccess file.
    I ditched that in a heart beat. So anything is possible.

    Paul
    Signature

    If you were disappointed in your results today, lower your standards tomorrow.

    {{ DiscussionBoard.errors[10673141].message }}

Trending Topics