CJ网络服务问题

时间:2011-03-02 13:58:42

标签: php web-services cj

我正在使用cj web服务使用php soap搜索产品。

使用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”=&gt; '',它将返回整个结果,但我只需要该广告客户的结果。我也尝试使用'加入'关键字,因为我也没有结果。

请有人帮我弄清楚发生了什么。

感谢

1 个答案:

答案 0 :(得分:0)

看起来您的请求与其文档示例相符。我唯一能想到的是你确定你接受了这个计划,而不仅仅是“等待”接受? http://help.cj.com/en/web_services/web_services.htm#product_catalog_search_service_rest.htm

相关问题