我正在使用 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”关键字,因为我也没有得到任何结果。
请任何人帮我弄清楚发生了什么。
谢谢