I want to conditionally display ads based on other ads
-
I think your plugin is great and it’s been working pretty well on my site (though the impressions counter seems to be having issues… but that’s not what this question is about).
I have multiple areas for ads on my site. For example, I have 3 sidebar button ad slots. The appear as 300×250 images stacked on top of each other in the sidebar. I can put multiple ads into these 3 ad locations without issue by associating each location with a group. When they page loads, each location is filled with an ad associated with that group at random. This all works as expected.
What I would like to do is guarantee that the same ad doesn’t appear in more than 1 of the 3 locations even if it is part of all 3 groups.
If my sidebar has 3 images like this…
|——|
| G1 |
|——|
|——|
| G2 |
|——|
|——|
| G3 |
|——|G1 = A, B, C
G2 = A, B, D
G3 = B, C, EWhere G1 is “group 1” is and A is ad “A”, I don’t want A, B, C, D or E to show up multiple times in these three locations. If A is randomly placed in the G1 location I don’t want it to be an available ad for G2 or G3.
I realize this probably isn’t a feature you are looking to add to the plugin, so I was wondering if you could point me in the right direction so that I can do it myself. I’m competent in php and sql, so where should I look in the plugin files to start something like this. Do you have any general recommendations?
Thanks
- The topic ‘I want to conditionally display ads based on other ads’ is closed to new replies.