Looking for some thing very basic, I want to randomly rotate 5 of my own image banner ads along with AdSense, all the same size 468x60, on the same website. Anything out there that can do this?
I use something like this for one of my sites... $ads = rand(1,5); switch ( $ads ) { case "1": //code for first ad break; case "2": //code for 2nd add break; case "3": //code for 3rd ad break; case "5": //code for 4th ad break; case "4": //code for 5th ad break; default: break; }
I love it but it's not a "simple solution" - I use it for my "default ads" in my directories though probably overkill, but hey...
This is a free script you can use for placing images next to your ads and to rotate them with each page load/refresh. You can even ad title and alt tags with it And is very easy to install on html pages. I'm not familiar with integrating this with content management systems but for html it is great in my opinion.
can we save the ads code to some other files and call it using some command rather than pasting it directly into our index file or template?? it is better protection for us, i guess, by not showing our real pub-id, for adsense and ypn, or is it against the tos ??
This is going a bit off-topic here but i think this can be done with PHP by using the echo fucntion. I'm not sure about this but it's worth looking into it if you are really want to take this route.