Download & Extend

Hide block/zone when there are no active banners

Project:OpenX
Version:6.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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

#1

Category:support request» feature request

Same here!

#2

Assigned to:Anonymous» craigmc

If 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.

#3

Assigned to:craigmc» Anonymous

#4

Actually 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.

#5

This 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.

nobody click here