AdRotator is a WordPress plugin which you can used to randomly rotate your ads (including but not limited to AdSense, Yahoo Publisher Network, Clicksor, Chitika etc.) on WordPress blogs. It allows you to display an advertisement (which is randomly selected from a group of advertisements specified in a text file) at your chosen location. The most frequent question I get is how you can use it to display AdSense ads, with an example.

AdRotator plugin can be used to easily rotate between AdSense, Yahoo Publisher Network ads and any other javascript based ad codes in combination and in a single file. There is however a small trick to it. You need to compress the ad code in a single line. Let me illustrate with an AdSense example.

Suppose your adsense ad is as follows:



Then you need to reformat it as below:

Note: The above code is in a single line. Place as many as such ad codes in a single file and you can rotate between them.

This idea can be used with Yahoo ads and any other javascript based ad codes. If you face problems then you have most likely messed up your ad code somewhere.

Here is another example for other types of ads. You can refer to the AdRotator user manual for further details.

BTW: I am planning to release AdRotator Pro version in about a couple of weeks. It will make it much much simpler to manage your ad-strips, no tricks like above and no need to change your ad code, will allow placing multiple ads from the same file on the same page, without duplication, allow rotating between say Google & Yahoo ads without conflict and tons of advanced options for beginners and pro alike and lots more.