onad Posted September 8, 2014 Report Share Posted September 8, 2014 Using the 3.0.5 and the api v1 - and have problem getting the getZoneListByPublisherId to work now that I updgraded from 2.8.5. Is the api v1 suppose to work now that the chainedZoneId was added to the software? Someone posted this - not sure if it's related https://github.com/revive-adserver/revive-adserver/issues/274 Quote Link to comment Share on other sites More sharing options...
onad Posted September 9, 2014 Author Report Share Posted September 9, 2014 http://forum.revive-adserver.com/topic/342-revive-adserver-v303-released/ It says that "API now supports setting chainedZoneId." - now is this referring to both v1 and v2? Quote Link to comment Share on other sites More sharing options...
onad Posted September 11, 2014 Author Report Share Posted September 11, 2014 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"? Quote Link to comment Share on other sites More sharing options...
onad Posted September 11, 2014 Author Report Share Posted September 11, 2014 Using the v1 API on openx 3.0.5 works when doing forexample "addZone" and "linkCampaing", but fails when I try to "getZoneListByPublisherId". Quote Link to comment Share on other sites More sharing options...
onad Posted September 11, 2014 Author Report Share Posted September 11, 2014 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; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.