hi, i'm using cj web service for searching products using php soap. using advertiserid 2288710(TicketNetwork).Already created relationship with this advertiser. While using this php code i'm getting total result=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. I also tried with 'joined' keyword, for that also i'm getting no result. please anyone help me to figure out whats going on. thanks
You should use an advertiser id to retrieve results from the advertiser. Limits the results to a set of particular advertisers (CIDs) using one of the following four values. Here are from CJ webservice *CIDs: You may provide list of one or more advertiser CIDs, separated by commas, to limit the results to a specific sub-set of merchants. *Empty String: You may provide an empty string to remove any advertiser-specific restrictions on the search. *joined: This special value (joined) restricts the search to advertisers with which you have a relationship. *notjoined: This special value (not-joined) restricts the search to advertisers with which you do not have a relationship. $results = $oClient->search( $developerKey = 'my_developer_key', $websiteId = 'my_website_id', $advertiserIds = 'a_specific_advertiser_id', $keywords = "keywords", $serviceableArea = '',....
hi , i tried every thing to work this code. Still not getting exact result. In my cj member area its visible tht, this particular advertiser (2288710,TicketNetwork) is enable with my account. Please any one help me.