I have a page with around 30,000 views per month and something like a 0.14% click through rate because I serve a technical audience I suspect. So I decided to rotate the placement of my ads (based on a random number) to try and reduce ad blindness on my website. To do this, I created a simple PHP script that looks something like this:
$rand_no = rand(0, 12);
function place_ad_1($rand_no){
if($rand_no == 1 || $rand_no == 2 || $rand_no == 3){
// google adsense code here
}
}
I have four different functions for four different types of ads. I just include the php script and throughout my page call the functions in the places that I want them to display like this:
<?php place_ad_1($rand_no); ?>
The script works fine but I'm wondering if this is somehow a violation of the Google Adsense TOS or if its just generally a bad idea for some reason?
I have searched through the placement section of the Adsense TOS and can't seem to find anything to suggest that this is not allowed, I also can't think of any consequences to this method. Seeing as I'm a bit of a noob to Adsense I thought I may have overlooked something and wanted to get run it by you guys who have more experience.
Thanks in advance!