Forum Moderators: martinibuster
I have stayed away from performing these tests on my AdSense pages since I recall reading something in the AdSense TOS about dynamically generating the ad code being against policy (though this isn't really dynamically generating the code). I can't seem to find this anywhere in the AdSense policy now and I was just wondering what the consensus was here, and how others are doing A/B testing with AdSense. Because I'm displaying competing products (though not at the same time as AdSense) I don't think it would be appropriate for me to ask the Google team about what is acceptable.
Any thoughts?
As long as the code is remaining the same after the randomizer script runs I think you'll be fine. I use some php include statements so I can modify one file and change the type of ads I show. The code inserted is exactly how it would be if I hand coded it, so when the page source is viewed, it looks exactly how it should.
Am I getting what you're asking correct?
I don't think they could restrict you from doing that, much less could they figure it out. They will just think you get half the page views you actually receive.