1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Adsense PHP problem

Discussion in 'Placement / Reviews / Examples' started by macdesign, Oct 17, 2004.

  1. #1
    I have a site that I started creating as static htm pages, I added Adsense to them, and immediately Google was putting in targetted ads. E.g. I'd create a page and upload it, so Goog;e had never crawled it, on the first or second display I would get the right ads 99% of the time.

    I'm in the midst of converting that site to PHP, and I'm not getting any targetted ads, it's seems to target the URL only. Eg. I'm getting ads for the word Project

    e.g

    Compare static html code
    http://www.cool-sites-project.com/html/Arts/Animation/Anime/index.html

    and PHP generated

    http://www.cool-sites-project.com/makepage.php?Arts/Animation/Anime
     
    macdesign, Oct 17, 2004 IP
  2. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #2
    I see Google ads for anima and Japan, etc., on that php page
     
    minstrel, Oct 17, 2004 IP
  3. dejaone

    dejaone Well-Known Member

    Messages:
    992
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    143
    #3
    I saw the same ads on both pages
     
    dejaone, Oct 17, 2004 IP
  4. macdesign

    macdesign Peon

    Messages:
    568
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Weird - I see ads on that page now also. But on almost all other pages I'm getting ads for "Project Financial" "Ask Jeeves" Mama.com "Sofitel Capital" etc.


    Either Google is slow today on analyzing pages, or php pages are slower to index, but this is definintely much slower to recognize page content than when I put the static pages up two weeks ago.
     
    macdesign, Oct 17, 2004 IP
  5. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #5
    Check your logs for the MediaPartners Googlebot...
     
    minstrel, Oct 17, 2004 IP
  6. aenigma

    aenigma Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Have you thought to use mod-rewrite?
     
    aenigma, Oct 18, 2004 IP
  7. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #7
    You really don't need to do that... look at the pages of this forum or any other one that uses AdSense... the ads work just fine.
     
    minstrel, Oct 18, 2004 IP
  8. hurricane_sh

    hurricane_sh Well-Known Member

    Messages:
    940
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    140
    #8
    I saw the same ads on both pages.
     
    hurricane_sh, Oct 18, 2004 IP
  9. debunked

    debunked Prominent Member

    Messages:
    7,298
    Likes Received:
    416
    Best Answers:
    0
    Trophy Points:
    310
    #9
    anime on html page and cowboy ads on the PHP page. Pretty weird...
     
    debunked, Oct 18, 2004 IP
  10. macdesign

    macdesign Peon

    Messages:
    568
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #10
    In the last two hours I learnt how to use mod-rewrite.

    I am 100% positive that it makes a difference to AdSense

    Without it, Adsense takes much longer to index a page for ad content

    For example, I have no page beginning http://www.cool-sites-project.com/html/Computers - but I have set up mod-rewrit to make that into http://www.cool-sites-project.com/makepage.php?Computers ...

    E.g If I display

    http://www.cool-sites-project.com/html/Computers/Software/Workflow/Research/People

    which no one has ever looked ever looked at [since I just uploaded the content yesterday] - I get two computer oriented ads.

    If I then display [which is exacty the same] the PHP page directly
    http://www.cool-sites-project.com/makepage.php?Computers/Software/Workflow/Research/People

    I get an ad for Momma.com and Project Financing

    I have tried this on a number of pages, and consistently get the same results
     
    macdesign, Oct 18, 2004 IP
  11. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #11
    If you say so... however, I'd point out again that there are hundreds of pages on this forum site alone that have no trouble with AdSense -- I've had the same expreience on my forum.

    The other thing that I wonder about is your URLs... what is this and why is it constructed this way?
    http://www.cool-sites-project.com/makepage.php?Computers/Software/Workflow/Research/People
    Code (markup):
    That seems like an odd construction... could it be that's the problem rather than the fact that it's a php page?
     
    minstrel, Oct 18, 2004 IP
  12. macdesign

    macdesign Peon

    Messages:
    568
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Google has in fact managed to index some of the pages using that PHP construction, as noted earlier on the Animation pages, it just seems to take it's time - maybe a day, so it might be depenedant on a robot visit. With the mod - rewrite it seems to scan the page when it is loaded in most cases, therefore it 's not depending on a robot visit

    As far as the construct, if anything is wrong with it let me know. I'm just making this up as I go along, I taught myself PHP two weeks ago, mySQL to PHP interfacing last week and mod rewrite today, so I'm not exactly the expert ;) [Though I've probably been programming longer than any one else around here]
     
    macdesign, Oct 18, 2004 IP
  13. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #13
    Yes, I understand that AdSense is eventually figuring it out but it seems to me that it's trying to find content for this page
    http://www.cool-sites-project.com/makepage.php
    Code (markup):
    with a few paramaters tagged on the end.

    I'm no PHP expert either but it looks a tad odd to me and may be cofusing poor old AdSense -- because AdSense doesn't seem to have the slightest problem figuring out what to do with pages like
    http://forums.digitalpoint.com/showthread.php?p=44015#post44015
    Code (markup):
    ...
     
    minstrel, Oct 18, 2004 IP
  14. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #14
    Okay... this page is a bad example because half an hour ago it didn't exist... come back in a few hours and look at it though...
     
    minstrel, Oct 18, 2004 IP
  15. macdesign

    macdesign Peon

    Messages:
    568
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I'm totally floored, I just loaded up some Hungarian pages, and the first time I looked at them Google dispayed ads in Hungarian.

    e.g. http://www.cool-sites-project.com/html/World/Magyar/Regionális/Győr-Moson-Sopron_megye/

    No way anyone even knew they were there, since there is no link to them from the rest of the site. So Google is scanning, figuring out the language is Hungarian, analyzing and displaying the ads in real time. Amazing.

    Sometimes it displays a mix of Hungarian and English ads - all related to Hungary.
     
    macdesign, Oct 19, 2004 IP
  16. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #16
    That's been my experience with AdSense. Sometimes, with a lot of new posts in my forum, MediaPartners is the single most active bot...
     
    minstrel, Oct 19, 2004 IP