I believe I'm having a similar issue to this: http://drupal.org/node/260470.

After setting up the Publishers, Zones, and Banner on OpenX, and configuring the Openads module for Drupal 6.2, I still cannot get Ads to appear. I've verified that all my settings are correct and I'm still having trouble.

As a test I pasted the zone invocation code into a block and that seems to work, so I at least know that this isn't an issue with OpenX.

The site can be found here: http://www.fjordnelson.com/, in the right sidebar you should see two blocks, "Advertising" and "Advertising 2". "Advertising" is the block generated by the Openads module, and as you can see, nothing is there.

Comments

bright_dawn’s picture

Priority: Normal » Critical

Okay, in an unusual twist, The banner shows up if I delete the code in the Openads configuration menu.

The source looks like this:

  ... 
    <script type="text/javascript"><!--
      az_adjs(3, '');
    --></script>  
  ...

and the invocation code that I would`ve looked something like:

<script type='text/javascript'>
<!--// <![CDATA[
OA_adjs(3,'ca5a6f0');
// ]]> -->

</script>

if I copy and repaste in the invocation code, or any slight variation thereof, all that will appear under the title Advertising is : '); -->

Does the difference in invocation code have to do with the fact that I want to track click data maybe? I`m assuming that is what the CDATA is in reference too.

Suffice to say that at the very least I am confused. Umm yeah, any ideas?

bright_dawn’s picture

Category: support » bug

Sorry, I meant to change this to a bug report as well, because I've isolated the issue as being something with the Openads module.

jaydub’s picture

When you have the code showing up like this:

    <script type="text/javascript"><!--
      az_adjs(3, '');
    --></script> 

that would indicate that there is a part of your configuration
missing.

If you are using the Javascript method you will have to enter
in the code that OpenX provides you ('ca5a6f0' in your example)
into the zone you are intending to use in the OpenX Drupal configuration
page (admin/settings/openads)

See the attached image to refer to what I am talking about.

bright_dawn’s picture

Category: bug » support
Priority: Critical » Minor

Thank you. I think I got twisted around a bit after it didn't work and everything else I tried took me farther away from the answer,

I guess there are a few minor clarifications I hope you can help with when you have the time:

I thought part of the problem what that the functions called/invoked/whatever were different: OA_adjs(3,'ca5a6f0') vs az_adjs(3, 'ca5a6f0'), why does this not matter? And, is there any material difference between the two?

Thanks again.

jaydub’s picture

The functions being used in the Drupal module are replacements for
OpenX direct calls. The point of this module is to allow for integrating
OpenX with Drupal. You could always use OpenX w/o the openads Drupal
module and copy/paste in invocation codes directly from OpenX into
your blocks.

The module's advantage is that it only requires you to add in the basic
details of your publisher and zones and your OpenX server and from
there you'll get blocks automatically created for you and you can switch
between invocation methods w/o having to manually update blocks.

TecHusky’s picture

Make sure you are NOT USING ADBLOCK (if you are using Firefox), as ads will not show, no matter what you do. I ended up figuring this out after weeks of frustration.

jaydub’s picture

Project: Openads » OpenX
brmassa’s picture

Status: Active » Fixed

Guys,

the current OpenX module already works with the proper JS.

regards,

massa

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.