I am re-designing about 13 websites (different domains) that have adsense code on them. I was thinking of using PHP insert so that all 13 websites are calling from the same file for the adsense display. That way if I need to change from adsense to some other PPC program, I would just have to change 1-3 files and not 20-30. Am I allowed to do this as far as the adsense TOS? I read it, but I couldn't tell if I was "altering" code. Thanks for your input.
sure, the code is output as it was hardcoded in the html its no difference you can even pull the code via javascript, with document.write if you are fit with that. would be even more economic than letting php do the work all the time
Yes, you can do this. Millions of site do that every day. Make sure when you output your html from php, they are the same as google supplied. The important thing is the when adsense crawler crawls you site, it should be able to see the exact code without modification. You can make sure but viewing the source from the browser.
Its allowed.. If you are not altering any code in the main file (the one where you will put the code), its okay.