2011-03-02 51 views
0

我使用cj web服務搜索使用php soap的產品。CJ webservice問題

using advertiserid 2288710(TicketNetwork)。已與此廣告客戶建立關係。雖然使用這個PHP代碼,我得到總成績= 0

$developerKey = "my developer id here"; 
$websiteId = "my web site id here"; 

$ini = ini_set("soap.wsdl_cache_enabled","0"); 

try { 

$client = new SoapClient("https://product.api.cj.com/wsdl/version2/productSearchServiceV2.wsdl", array('trace'=> true)); 

$results = $client->search(array("developerKey" => $developerKey, 
"websiteId" => $websiteId, 
"advertiserIds" => '2288710', 
"keywords" => 'lady gaga', 
"serviceableArea" => 'US', 
"sortBy" => 'price', 
"sortOrder" => 'asc', 
"maxResults" => 10)); 

// The entire response structure will be printed in the next line 
echo "<pre>"; 
print_r($results); 

如果假設我使用「advertiserIds」 =>「」,它會返回整個結果,但我只需要該客戶的結果。我也嘗試過「加入」關鍵字,因爲這也沒有結果。

請任何人幫我弄清楚發生了什麼事。

謝謝

回答