0

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

使用advertisingrid 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”=> '',它将返回整个结果,但我只需要该广告商的结果。我也尝试使用“joined”关键字,因为我也没有得到任何结果。

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

谢谢

4

1 回答 1

0

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

于 2011-03-02T15:10:19.867 回答