I would like to display multiple banners from the same Open X zone on my site. In current openx module implementation, I must create a block for each banner, and point that block to the appropriate openx zone.

If the number of banners is small, then the same banner will often appear on more than one block.

Is it possible to point multiple openx blocks to the same zone, but avoid displaying the same banner multiple times? Banner duplication will likely prompt complaints from advertisers.

CommentFileSizeAuthor
#10 opex_vars.png31.96 KBbloke_zero

Comments

westbywest’s picture

Also, my apologies for not mentioning this in the initial feature request, but thank you for writing this module! I was able to integrate it into a site in about an hour, including theming.

srobert72’s picture

I think this option is available directly in OpenX server.
For your specific zone, specify you avoid duplicate ads.

Rapid exemple : http://www.openxtips.com/tag/zone-tags/

westbywest’s picture

Thanks for the response. The link you pointed to appears to just generate a different version of the JS invocation code, in particular with this line when "Don't show the banner again on the same page" is checked No.
document.write ("?zoneid=XX");
...and this when "Don't show the banner again on the same page" is checked Yes.
document.write ("?zoneid=XX&block=1");

However, this is not a persistent setting that is stored with the zone in the Openx server. You must copy the JS generated into whatever site is pulling ads for that zone. Since the Openx drupal module generates its own JS invocation code, if I understand correctly, this option in the Openx server is not relevant.

craigmc’s picture

This is one of several features I will be looking to roll out for the OpenX module in the coming weeks. Please keep tuned.

Thanks for the feedback.

bessone’s picture

Any news?

thanks!

craigmc’s picture

I've been away from this for a long time. Will need to look at the latest dev branch and create a patch against that.. will try to get to this in the next few days

craigmc’s picture

Wrapped up in other life/work tasks. Sorry. Would be great if someone else can take this on.

bannik’s picture

Smae problem for me.
But it com from openx and not from this plugin.
This plugin ask the javascript's code to openx (http://your/server/openx/www/delivery/spcjs.php)
This php script generate a script whithout "&block=1"

So the solution for me is to modify "spcjs.php":

  • Line 3169 {$varprefix}spc+=\"&source=\"+escape({$varprefix}source)+\"&r=\"+{$varprefix}r;" .
    Replace whith {$varprefix}spc+=\"&block=1&source=\"+escape({$varprefix}source)+\"&r=\"+{$varprefix}r;" .
  • line 3206 {$varprefix}pop+=\"&source=\"+escape({$varprefix}source)+\"&r=\"+{$varprefix}r;" .
    replace whith {$varprefix}pop+=\"&block=1&source=\"+escape({$varprefix}source)+\"&r=\"+{$varprefix}r;" .

Work for me with OpenX v2.8 and openX module 7.x-1.2 on drupal 7.12

I think that the only solution fot this module is to add the possibility to add the invocation code directly in the block.

bloke_zero’s picture

I think that the only solution fot this module is to add the possibility to add the invocation code directly in the block.

Which sort of defeats the purpose of the module - you might as well just create your own blocks with the invocation code in them.

But I agree, there is a case for having a collapsed fieldset with an alternative invocation field in it for advanced settings if you need it.

bloke_zero’s picture

StatusFileSize
new31.96 KB

Hang on, this module can already do this! Just add variables on the Open X config page:

block = 1 to prevent duplication of ads on a page
blockcampaign = 1 to prevent ads from the same campaign on the same page.

My vars settings are:
Openx vars img

And give:
<script type='text/javascript' src='http://openx.local/www/delivery/spcjs.php?path=front-page-holder&block=1&blockcampaign=1'></script>

Which means I get the path (using the global token) for creating Targeting Channels (in my case I'm separating the front page and the rest of the site), that ads aren't to be repeated on a page (the block = 1 var) and that ads from the same campaign don't get repeated (blockcampaign = 1).