Car Insurance - Mortgage Calculator - Montana Music - Libro de autoayuda - Car Insurance

PDA

View Full Version : Adsense PHP problem


macdesign
Oct 17th 2004, 2:16 pm
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

minstrel
Oct 17th 2004, 3:22 pm
I see Google ads for anima and Japan, etc., on that php page

dejaone
Oct 17th 2004, 4:46 pm
I saw the same ads on both pages

macdesign
Oct 17th 2004, 6:42 pm
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.

minstrel
Oct 17th 2004, 10:39 pm
Check your logs for the MediaPartners Googlebot...

aenigma
Oct 18th 2004, 1:52 am
Have you thought to use mod-rewrite?

minstrel
Oct 18th 2004, 6:44 am
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.

hurricane_sh
Oct 18th 2004, 9:20 am
I saw the same ads on both pages.

debunked
Oct 18th 2004, 9:26 am
anime on html page and cowboy ads on the PHP page. Pretty weird...

macdesign
Oct 18th 2004, 5:28 pm
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

minstrel
Oct 18th 2004, 6:56 pm
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
That seems like an odd construction... could it be that's the problem rather than the fact that it's a php page?

macdesign
Oct 18th 2004, 7:18 pm
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]

minstrel
Oct 18th 2004, 7:38 pm
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 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...

minstrel
Oct 18th 2004, 7:39 pm
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...

macdesign
Oct 19th 2004, 10:54 pm
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%C3%A1lis/Gy%C5%91r-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.

minstrel
Oct 19th 2004, 10:59 pm
That's been my experience with AdSense. Sometimes, with a lot of new posts in my forum, MediaPartners is the single most active bot...