Jump to content
2ge

Api Invocation, Get Banners For Multiple Zones In 1 Http Call

Recommended Posts

Hi guys,

 

wondering, if it is possible to get in one XML-RPC call multiple banner results for multiple zones. Currently I am doing this:

if (!isset($OA_context)) $OA_context = array();
$oaXmlRpc = new OA_XmlRpc('ads.myserver', '/www/delivery/axmlrpc.php?variable=value', 80, false, 3);
$adArray = $oaXmlRpc->view('zone:1', 0, '', '', 0, $OA_context, ''); 

but it would be nice to do something like this (still it should be just 1 HTTP request):

if (!isset($OA_context)) $OA_context = array();
$oaXmlRpc = new OA_XmlRpc('ads.myserver', '/www/delivery/axmlrpc.php?variable=value', 80, false, 3);
$zones = array(
	'zone:1', 0, '', '', 0, $OA_context, '',
	'zone:2', 0, '', '', 0, $OA_context, ''
);
$adArray = $oaXmlRpc->view($zones); 

I want to save HTTP calls, so it would be faster.

 

Anybody?

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...