1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

CJ webservice problem

Discussion in 'Commission Junction' started by sethupnr, Feb 24, 2011.

  1. #1
    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
     
    sethupnr, Feb 24, 2011 IP
  2. michaeliqbal121

    michaeliqbal121 Peon

    Messages:
    175
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What things you want to figure out
     
    michaeliqbal121, Mar 2, 2011 IP
  3. sethupnr

    sethupnr Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    any problem with above code?
     
    sethupnr, Mar 2, 2011 IP
  4. pdfmania

    pdfmania Peon

    Messages:
    213
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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 = '',....
     
    Last edited: Mar 4, 2011
    pdfmania, Mar 4, 2011 IP
  5. cool_ali121

    cool_ali121 Banned

    Messages:
    733
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    what you are thinkings ???
     
    cool_ali121, Mar 5, 2011 IP
  6. sethupnr

    sethupnr Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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.
     
    sethupnr, Mar 6, 2011 IP