简体   繁体   English

CJ Web服务问题

[英]CJ webservice problem

i'm using cj web service for searching products using php soap. 我正在使用cj网络服务来搜索使用php soap的产品。

using advertiserid 2288710(TicketNetwork).Already created relationship with this advertiser. 使用的广告客户ID为2288710(TicketNetwork)。已与此广告客户建立了联系。 While using this php code i'm getting total result=0 使用此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);

if suppose i'm using "advertiserIds" => '', it will return whole result, but i need only result from that advertiser. 如果假设我正在使用“ advertiserIds” =>”,它将返回整个结果,但我只需要该广告商的结果。 I also tried with 'joined' keyword, for that also i'm getting no result. 我也尝试了'joined'关键字,因为那也没有结果。

please anyone help me to figure out whats going on. 请任何人帮我弄清楚发生了什么。

thanks 谢谢

It looks like your request matches their documentation example. 看来您的要求与他们的文件范例相符。 The only thing I can think is are you sure your accepted into the program, and not just "pending" acceptance? 我唯一能想到的是您确定已接受该程序,而不仅仅是“待定”接受吗? http://help.cj.com/en/web_services/web_services.htm#product_catalog_search_service_rest.htm http://help.cj.com/en/web_services/web_services.htm#product_catalog_search_service_rest.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM