Jump to content

onad

Approved members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by onad

  1. Super!

     

     

    Got the "getZoneListByPublisherId" working (or at least displayed) again with API v1 by adding else to the to file ....

     

    lib/OA/Dll/Zone.php

        function _setZoneDataFromArray(&$oZone, $zoneData)
        {
            $zoneData['publisherId']    = $zoneData['affiliateid'];
            $zoneData['zoneId']         = $zoneData['zoneid'];
            $zoneData['type']           = $zoneData['delivery'];
            $zoneData['zoneName']       = $zoneData['zonename'];
            $zoneData['sessionCapping'] = $zoneData['session_capping'];
            $zoneData['block']          = $zoneData['block'];
    
            if (preg_match('/^zone:(\d+)$/D', $zoneData['chain'], $m)) {
                $zoneData['chainedZoneId'] = (int)$m[1];
            }
    	else{
                $zoneData['chainedZoneId'] = 0;
    	    }
    
            $oZone->readDataFromArray($zoneData);
            return  true;
        }
    
  2. Was able to find the below regarding this matter ...

     

    https://www.openhub.net/p/openx-source/commits/350631737

      www/api/v2/xmlrpc/ZoneXmlRpcService.php

      lib/xmlrpc/php/ZoneInfo.php

     

    https://www.openhub.net/p/openx-source/commits/350631736

      lib/OA/Dll/tests/unit/Zone.dll.test.php

      lib/OA/Dll/ZoneInfo.php

      lib/OA/Dll/Zone.php

     

     

    So does it mean that the v1 version was not updated with the chainedZoneId like the v2 - and now v1 doesn't work when doing the "getZoneListByPublisherId"?

×
×
  • Create New...