The
XML-RPC Tag is similar to a local-mode tag but can be used for ads stored on a remote server. An
XML-RPC Tags can be written in any language to read and print the data returned by OpenX. XML-RPC is simply a protocol which uses XML to encode the calls and HTTP as a transport mechanism (
http://en.wikipedia.org/wiki/XML-RPC).
The XML-RPC tags generated by OpenX contains a comment above it with tips on placing the tag on your website. An example of PHP script for OpenX XML-RPC tag (with the comment block removed) is shown below:
<?php
//ini_set('include_path', '.:/usr/local/lib');
require 'openads-xmlrpc.inc.php';
if (!isset($OA_context)) $OA_context = array();
$oaXmlRpc = new OA_XmlRpc('localhost', '/openads/www/delivery/axmlrpc.php', 0, false, 15);
$adArray = $oaXmlRpc->view('zone:5', 0, '', '', 0, $OA_context);
echo $adArray['html'];
?>