Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense and PHP

how to include adsense

         

dauction

12:28 am on Sep 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



h**p://example.viewtemplate.php? where the viewtemplate.php is just a PHP page that holds different content depending on what the visitor clicks on..

My question is.. can I just place adsense on this viewtemplate.php page and will adsense adjust the ads it serves depending on what content is pulled up?

dmorison

5:29 pm on Sep 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I assume you mean that your page has a parameter that identifies the content to display, for example:

/viewtemplate.php?id=1234

/viewtemplate.php?id=5678

Pass. I think you'll just have to try it and see.

Mediapartners-Googlebot may ignore anything after the? and just serve ads against whatever content was displayed on the most recent retrieval. If you find that this is the case then you need to investigate using a re-write mechanism (mod_rewrite on Apache) to create static URLs for your dynamic pages. The above could then become something like...

/content/1234.html

/content/5678.html

... which would be no problem with AdSense.

cubic

10:09 am on Sep 11, 2004 (gmt 0)

10+ Year Member



Actually it's not true. Our web site is heavily depends on MySQL and PHP, and most of the URLs we display AdSense on, are in the format of /URL.php?id=

I asked Google regarding such pages, and they say nothing but that it takes up to 30 minutes for their bot to find the page and display related ads. From our experience, we never had the same ads on different pages, so you don't need to worry about PHP pages.