Project:OpenX
Version:7.x-1.2
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active

Issue Summary

Followed the steps after installing and did the setup accordingly. However I don't have an ad showing in the ad-block. Did I miss something or where to find more detailed documentation?

Comments

#1

Most important is that you get your invocation path right.
If that's not the case, you can see an error for a call to a non-existent page in your webserver logs.

Furthermore, the documentation for this project appears to be outdated. For example, if your are using function calls in a PHP block, the functions with the prefix openads_... no longer exist. In the slipstream of the Openads name change they have been renamed to openx_... (so much for the coders providing backward compatibility)

Today I put up an installation description for this module:
http://portalbuilders.pro/PBblog/?p=523

#2

My configuration is exactly as yours and my ad is not showing up. If I take a look in the source I noticed the following:

<script type='text/javascript'><!--// <![CDATA[
    OA_show('Adzone');
// ]]> --></script>

It seems that the module isn't providing all Javascript that is needed to let the ad show up.

#3

I think your problem is with the CDATA statement, causing the function not to be called at all: you have commented out the whole statement on top of the CDATA opening and closing tags.

#4

That is the way OpenX implemented it into the file. I haven't changed a thing in there. The invocation code in OpenX is set up the same way. I expect that OpenX module would provide valid/ correct code to display the ad.

#5

Your snippet above is similar to mine that works (including comments).

You don't by any chance have ad blocking turned on in your browser?

#6

I don't have any ad blocking set up. And if that would have been the case the source code still would be loaded in the browser.

I notice that the module is waiting a long time for the ads.mysite.com url, while on the live site (same invocation code) it works like a charm.

My head tag is as follows:

<script type="text/javascript">  var OA_zones = {
    'Adzone' : 11
  }</script>
<script type="text/javascript" src="https://ads.mysite.com/www/delivery/spcjs.php"></script>

#7

Component:User interface» Code
Priority:normal» critical

The generated code seems to be generated incorrectly. If I follow the guide from http://www.openx.com/docs/2.8/userguide/single+page+call and I add the generated 'invocation head' tag into the source code, than my ad is showing. If I however follow the given blog or the steps according to the module no ad is being displayed.

This generated head tag from OpenX is as follows:

<!-- Generated by OpenX 2.8.7 -->
<script type='text/javascript' src='http://ads.mysite.com/www/delivery/spcjs.php?id=3'></script>

My OpenX invocation code generated by OpenX is as follows:

<script type='text/javascript'><!--// <![CDATA[
    /* [id11] Adzone */
    OA_show(11);
// ]]> --></script><noscript><a target='_blank' href='http://ads.mysite.com/www/delivery/ck.php?n=44b25c9'><img border='0' alt='' src='http://ads.mysite.com/www/delivery/avw.php?zoneid=11&amp;n=44b25c9' /></a></noscript>

Which is totally different from the code that the Drupal module is putting into the source code. These invocation codes do show the ad on my website, but the module generated code isn't doing so...

#8

Category:support request» bug report

The solutions is to have the affiliate ID within the head tag. If I add that to the generated module code the ad does show up. However the module doesn't provide the possibility to set an affiliate ID and the generated code should NOT be between ", but use a single quote: '

#9

New update too get things going. ;-)

I was able to pass through the affiliate ID by setting this as a variable "ID". Though now I need to get a code that isn't https, because I don't have an https connection and waiting for the time-out takes ages.

#10

Firebug is reporting:

'OA_show is not defined'

- I have not modified OpenX module at all.

tneo, how did you get it working?

#11

NM - Delivery URL was wrong. Now that is corrected, but the ad still does not show up. I just see invocation code.

#12

I did not need an affiliate ID to make the ad show.. weird.

However the tutorial misses the part about creating a Website, creating Campaigns, creating Banners, creating Zones, and interlinking all of those together.

Also, if the image you uploaded does not explicitly match the Zone size, the option to link a zone to a banner will not appear in its options whatsoever.

#13

My ad blocks were ok once and then disapeared. I saw that it was a cache problem and disabled it on admin/config/development/performance.
But I guess it has to be set up on the openx blocks by default. Like "BLOCK_NO_CACHE" or something like it.