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.

Question about adsense and PHP

Discussion in 'Placement / Reviews / Examples' started by fatabbot, Jul 8, 2006.

  1. #1
    Hello,


    I'm new here. Hi everyone :)
    I want to use google adsense on dynamic php pages... But all text on those pages comes from a database. For example the page viewpoet.php

    viewpoet.php?id=8

    page title: Blue flowers
    text on page contains words like: blue flowers, roses, violets, etx...

    viewpoet.php?id=10

    page title: Fast Ferrari cars
    text on page contains words like: cars, red cars, fast ferrarri's, etc...


    And so on...

    Can google adsense handle this kind of pages in a way that it shows relevant ads on each php page? Like flower ads on the viewpoet.php?id=8 page and car adds on the viewpoet.php?id=10 page ?


    Thanks in advance
     
    fatabbot, Jul 8, 2006 IP
  2. KLB

    KLB Peon

    Messages:
    1,167
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Google AdSense really doesn't care how pages are generated, as long as the same URL usually genarates the same general content, AdSense will be able to display relevant ads.
     
    KLB, Jul 8, 2006 IP
  3. shamess

    shamess Well-Known Member

    Messages:
    1,127
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    185
    #3
    If there is a link to viewpoet.php?id=10 then google bot will follow it and make the Adsense that way. If there's no link to it, you'll just get ads general to your website or PSA.
     
    shamess, Jul 8, 2006 IP
  4. AndyG

    AndyG Peon

    Messages:
    275
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    For displaying ads, Google doesn't care what the URL looks like. It checks whatever content it can find (place those keywords!) on the page at hand and finds ads relevant to that. Doesn't matter if it's index.php?c=1 or index.php?c=2176 or whatever.
     
    AndyG, Jul 8, 2006 IP
  5. fatabbot

    fatabbot Well-Known Member

    Messages:
    559
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    138
    #5
    Hi,

    Thanx for the replies.
    So google actually scans each generated php page all the time? I have 100 different id's under poet.php. All with completely different subjects. Each poet is about a different subject. Also new ones are added all the time...
    This is not a problem for google ?
     
    fatabbot, Jul 8, 2006 IP
  6. shamess

    shamess Well-Known Member

    Messages:
    1,127
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    185
    #6
    Nope, it isn't ^^;;
     
    shamess, Jul 8, 2006 IP
  7. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hi,
    You can make your site more search engine friendly using Apache mod_reqrite techniques. Then you can use URLs lile /poet/10 instead of
    viewpoet?id=10 . You will ned to know some stuff about regular expressions to do this. See following URLs:

    http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
    http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
    http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html

    Google for mod_rewrite or url rewriting to get more info on this.

    Hope that was helpful,
    Thomas
     
    coderlinks, Jul 9, 2006 IP