Results 1 to 2 of 2
  1. #1
    Newbie
    Join Date
    January 25th, 2009
    Posts
    2
    Unhappy CJ API retrieve merchants in a category
    Hey,

    funny thing: CJ gives a lookup of advertisers per category. The category argument is a string. However if you look at the categories in the CJ control panel, you will see e.g. Accessories in two places (as a main category and under automotive). My question is how can I distinguish between these. If I just put 'Accessories' I always get the same result. The same goes for Business-To-Business which is in two sub categories (one under Business and once under marketing). These categories have different ids but the id cannot be used in the query!

    Code:
    $url = "https://api.cj.com/wsdl/version2/advertiserSearchServiceV2.wsdl";
    $ini = ini_set("soap.wsdl_cache_enabled", 0);
    $soapClient = new SoapClient($url, $this->soapOptions);
    $options = array(
    'developerKey' => $this->token,
    'category' => $category,
    'linkType' => '',
    'language' => '',
    'serviceableArea' => '',
    'startAt' => '0',
    'sortBy' => 'advertiserName',
    'maxResults' => $this->MAX_RESULTS);
    $results = $soapClient->search($options);

    of course the question is: how do I get these advertisers per category?

  2. #2
    Newbie
    Join Date
    January 25th, 2009
    Posts
    2
    Apparently when doing a query for 'Accessories' all of the items matching 'Accessories' are returned, containing an ID field, that can then be referenced back to a parent category. Problem solved.

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Featured: Dear merchants (category datafeed rant)
    By Convergence in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: May 14th, 2013, 06:46 PM
  2. List of API Merchants? Where?
    By wwind in forum Commission Junction - CJ
    Replies: 0
    Last Post: October 27th, 2009, 01:38 PM
  3. Replies: 0
    Last Post: February 25th, 2009, 02:51 PM
  4. API, limit search to store & category
    By virap in forum Commission Junction - CJ
    Replies: 0
    Last Post: June 4th, 2008, 05:40 PM
  5. Merchants, do you have an API?
    By cardfrog in forum Programming / Datafeeds / Tools
    Replies: 5
    Last Post: December 25th, 2005, 03:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •