PDA

View Full Version : getMerchantReturn are there really only 278 merchants


Talis
12-06-07, 14:09
Hi,
I am new to using this api and am not sure if I am doing something wrong. What I think I am doing is retrieving a full list of all merchants signed up to the Shop Window toolset. However, only 278 merchants are retrieved, yet in the intro information about shop window toolset it mentions "Affiliate Window's database of over 3.5 million products from over 700 retailer ...". Could anyone confirm if I am using this call correctly

Many thanks

PHP code below
-------------------------------------------------

<?php
// DETERMINE SYSTEM SETTINGS, depending on OS
if (!defined('HOME_PATH')) {
$sPath= dirname(__FILE__).DIRECTORY_SEPARATOR;
define('HOME_PATH', $sPath);
}

// USER DETAILS
define('USER_ID', 'xxxxx');
define('USER_PASS', 'yyyyyyyyyyyyyyyyyyyyyyyyyyy');

// LOAD CLASSES
require_once('includes'.DIRECTORY_SEPARATOR.'class es'.DIRECTORY_SEPARATOR.'class.api_client.php');

//new client
$oClient = new api_client();

//make the SOAP call
$oMerchants = $oClient->call('getMerchant' );

//get the products array
$aMerchants = $oMerchants->getMerchantReturn;

//print each product name to the page
$i=1;
foreach ($aMerchants as $oProduct) {
print $i++."\n";
print $oProduct->iId."\n";
print $oProduct->sName."\n";
print $oProduct->sLogoUrl."\n";
print $oProduct->sDisplayUrl."\n";
print $oProduct->sClickThroughUrl."\n";
print "--------------------------------------------------------------------\n\n\n";
}
?>

amarath
12-06-07, 22:25
Hi Talin,

Im not sure of how many merchants are included in ShopWindow (not all merchants have datafeeds).

Ill get this checked in the morning and update this thread for you.

Thanks

Amo

Ajax2000
27-06-07, 11:27
Not all merchants are in the datafeed PLUS there are some you have to agree T&Cs with or SignUp specifically to... This can be done within AW Merchant manager