Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anyone successfully using Commission Junction API?

Is anyone successfully using the CJ web services? I just keep getting java.lang.NullPointerExceptions even though my app is .net (clearly their errors). CJ support doesn't even know what a web service is. I googled and found many people getting this or other errors. Question is: is it a temporary problem or am I doomed to parse manually downloaded reports for eternity?

The specific API I'm trying to use is the daily publisher commission service. Here is the WSDL.

Links:

  • CJ web services home
  • API Reference
like image 861
Mauricio Scheffer Avatar asked Dec 07 '25 04:12

Mauricio Scheffer


1 Answers

After a spending many days, this code is working for me.

$client = new SoapClient($cjCommissionUrl,

    array('trace' => 1,
    'soap_version' => SOAP_1_1,
    'style' => SOAP_DOCUMENT,
    'encoding' => SOAP_LITERAL
    ));


$date = '06/23/2010';
    $results = $client->findPublisherCommissions(array(
    "developerKey" => $cjDeveloperKey,
    "date" => $date,
    "dateType" => 'posting',
    "countries" => 'all',
));
like image 171
Surjit Avatar answered Dec 11 '25 00:12

Surjit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!