Forum Moderators: martinibuster

Message Too Old, No Replies

PHP and Adsense

Question about PHP and Adsense

         

photocroatia

12:54 pm on Nov 4, 2004 (gmt 0)

10+ Year Member



Hi All,

I am a novice compared to most of you, I have a question about php and Adsense.

At the moment I have static html pages about locations, I have in the last 2 months been adding Adsense code to these pages, all works well and I have location based ads being displayed.

This all makes sense to me, but I was planning on changing my location based html to php and have a single php script called google.php for example and all of my now php location scripts include the google.php script.

include ("google.php");

Does this make sense.

I tried this on a test page and it still returns the appropriate location based adds, I am confused if its reading the old page data or the new one.

Whe I renanmed my page from .htm to .php It seemed to deliver the appropriate add straight away, I heard the update takes 1-2 days to deliver appropriate adds.

The question is if I change all of my pages to php will adsense still deliver the appropriate location based ads considering that these pages are dynamic.

All of these pages are deep in my site, I created a site mape which references these pages.

Is there anything else I need to do?

Thank you for your help.

jurii

1:02 pm on Nov 4, 2004 (gmt 0)

10+ Year Member



Well I've done the same. No problem. And I have a google.php included with the adsense code in it.

Google doesn't see the php code so it don't care for it. The delivered page code stays the same.

The only thing you shouldn't do is to use session-ids. Search engines have major problems with them.

photocroatia

1:14 pm on Nov 4, 2004 (gmt 0)

10+ Year Member



Thank you very much.

"google.php included with the adsense code in it." Yes that is what I ment.

So this way I have the google code once and just include it, it also means I can turn adsense off If I wanted for soem reason or replace the add with something else.

But the main advantage is only one google code, so I can easily change the colours etc.

Thank you again, you have put my minds at rest.

conroy

1:29 pm on Nov 4, 2004 (gmt 0)

10+ Year Member



Yes this is not a problem. Most people use some type of include to insert the Adsense across their pages. You are right - it allows for easy testing.