Active
Project:
OpenX
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2009 at 15:51 UTC
Updated:
21 Sep 2010 at 05:36 UTC
Maybe this is not an issue that can be fixed in the module, but it's something that has a lot to do with it.
Is there a way to hide Openx banner blocks when there are no active campaigns assigned to that block/zone? It would save me a lot of time managing Drupal Blocks.
Comments
Comment #1
GuerillaGraphix commentedSame here!
Comment #2
craigmc commentedIf OpenX doesn't return any banners for the given zone, then the ad block will be completely empty, and nothing will display to the end-user. I don't see any particular benefit to adding an extra call to OpenX to check if the block has content, then additional logic to suppress the block if the zone has no banners associated.
Can you explain your use case more, and maybe we can check to see if it makes sense to build this functionality in?
Thx.
Comment #3
craigmc commentedComment #4
gordon commentedActually knowing if a ad zone is not going to have any ads present means that we can change the layout of the page to not include a zone at all.
One example I had is that use to have a pull down ad zone that would be displayed by js if the user choose to click on the area, or x% of the time it would display automatically. Also when we last used the zone it will only being used for UK users.
Being able to determine the if a zone has something it it would be a great help, and make it so we can be more creative with ads.
Comment #5
craigmc commentedThis can only really be handled effectively in JavaScript. After the page loads you could have a $.ready function to check if there is content inside of the given ad block and adjust the page layout at that time. Otherwise you would add significant overhead to the page load by effectively making up to 2 calls per ad zone to check if there is an ad for a given zone.