i searching for Php code to make Rotation of ads between the two accounts in Adsense something give 50% or 60% to one of these accounts .. so .. can any one help me ..
php has a built in random function step 1 - on every page load use php to generate a random number between 1 and 100 then use an if then statement to specify when one ad group is shown (example show ad space 1 when var1 < 51 etc.,,) does that help?
simple: if (rand(1,2)==1) { echo "ad code 1" ; } else { echo "ad code 2"; } it's the easiest for 50/50
if (rand(1,10)<=7) { echo "ad code 1" ; } else { echo "ad code 2"; } code 1 will display 7 times out of 10, code 2 3 times out of 10