Title: Randomize ad serving
Last modified: August 20, 2016

---

# Randomize ad serving

 *  [hookedonwinter](https://wordpress.org/support/users/hookedonwinter/)
 * (@hookedonwinter)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/randomize-ad-serving/)
 * I currently have 6 ads and two sidebar places. The ads always show up like this:
 * Spot 1: Ad 1
    Spot 2: Ad 2
 * Spot 1: Ad 3
    Spot 2: Ad 4
 * Spot 1: Ad 5
    Spot 2: Ad 6
 * I’d like for the ads to rotate more randomly, so that one page load might see
   something like
 * Spot 1: Ad 3
    Spot 2: Ad 6
 * and then later
 * Spot 1: Ad 5
    Spot 2: Ad 1
 * Is there a setting for this?
 * [http://wordpress.org/extend/plugins/simple-ads-manager/](http://wordpress.org/extend/plugins/simple-ads-manager/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [pabloseidel](https://wordpress.org/support/users/pabloseidel/)
 * (@pabloseidel)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/randomize-ad-serving/#post-3481874)
 * Hi. I’m also trying to find out how to do it.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/randomize-ad-serving/#post-3481875)
 * [@pabloseidel](https://wordpress.org/support/users/pabloseidel/)
 * per [forum guidelines](http://codex.wordpress.org/Forum_Welcome#Where_To_Post),
   please start your own topic;
 * this makes it easier to track the problem.
 *  [pabloseidel](https://wordpress.org/support/users/pabloseidel/)
 * (@pabloseidel)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/randomize-ad-serving/#post-3481876)
 * Thank you [@alchymyth](https://wordpress.org/support/users/alchymyth/), but I
   already started my own topic 2 months ago ([http://wordpress.org/support/topic/how-to-rotate-ads-block-items](http://wordpress.org/support/topic/how-to-rotate-ads-block-items)).
 * And now I saw that hookedowinter started that topic which has pretty much the
   same question I asked before, with no answer so far. So I left my message here
   because I’d like to be notified of possible solutions.
 * But thank you anyway.
 *  [pabloseidel](https://wordpress.org/support/users/pabloseidel/)
 * (@pabloseidel)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/randomize-ad-serving/#post-3481877)
 * Hi friends. I think I found a solution.
 * File: ad.class.php
    Line: 456 Change from: ORDER BY ad_cycle Change to: ORDER
   BY ad_cycle, rand()
 * I didn’t check if it’s going to mess up with other things, but looks like it’s
   working on my website now.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Randomize ad serving’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-ads-manager_73687f.svg)
 * [Simple Ads Manager](https://wordpress.org/plugins/simple-ads-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-ads-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-ads-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-ads-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-ads-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-ads-manager/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [pabloseidel](https://wordpress.org/support/users/pabloseidel/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/randomize-ad-serving/#post-3481877)
 * Status: not resolved