I am trying to setup Opeads 2.0.11 with Drupal 5.1
In Drupal, under Administer > Site Configuration > Openads Adserver, under Zones, next to "Zone ID", there is a text box labeled "Code". What should this value be and where do I find it? Is it related to the invocationcode in Openads? (But the text box is very small to be meant for php code).
Can anybody please help?
Thank you.

Comments

gerd riesselmann’s picture

Within the adserver navigate to

Inventory > Publisher & Zones > [My Site] > Invocation Code

The invocation code itself is a bunch of JavaScript, however, we just need some peeky information from it: The codes. To find them scroll down to the section Max Media Manager Ad Tag Script(s). Within this section, there's a JavaScript snippet for every Zone. It looks like this:

<script language='JavaScript' type='text/javascript'>
<!--
az_adjs([A Number],'[A Text]');
//-->
</script>

While [A Number] is the zone ID, [A Text] is the code we are looking for.

cookiesunshinex’s picture

when I generate my invocation code, I don't have a section that displays the code..

This is what my invocation code looks like:

<" + "/script>"); //-->

Only local images are allowed.

I've Used: zone ID = 15
and code = a5c7b4ae

but the wrong banners get displayed.

Also, each time I generate the invocation code, a new "code" is generated, it's not a5c7b4ae each time.

cookiesunshinex’s picture

Oops,

My invocation code looks like this:

<script language='JavaScript' type='text/javascript' src='http://www.mydomain.com/adserver/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://www.mydomain.com/adserver/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:15&amp;target=_top");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.mydomain.com/adserver/adclick.php?n=a5c7b4ae' target='_top'><img src='http://www.mydomain.com/adserver/adview.php?what=zone:15&amp;n=a5c7b4ae' border='0' alt=''></a></noscript>

Additionally, I've configured adjs.php as my javascript delivery filename in the open ads configuration section in the drupal admin.

cookiesunshinex’s picture

Actually, I think I found the issue.

This module is for openads 2.3 (Media Manager Max), not the commonly used OpenAds (formerly PhpAdsNew) 2.0.11.

I'm guessing why I don't have the

 <script language='JavaScript' type='text/javascript'>

       <!--

	   az_adjs(52,'siteea111cd');

       //-->

       </script>

doesn't appear in my invocation code.

Noki’s picture

Status: Active » Closed (works as designed)

right... This module supports Openads 2.3 only...

Noki’s picture

Status: Closed (works as designed) » Closed (won't fix)