Call us Toll-Free:
1-800-218-1525
Live ChatEmail us

 Sponsors

Integrating with the Pepperjam Network (@pjamnetwork)

Dawn Rossi, 02-27-2009
Pepperjam Network (PJN) is a performance marketing affiliate network, focusing on consumer offers.

PJN offers an easy-to-use RESTful interface, available via simple HTTP GET calls, that allows you to download your stats and transactions in real time.

The SID report includes offer name, SID, EPC, impressions, clicks, commission and creative ID. I wish the date field would have included time as well (for hourly optimizations). On the other hand, it's great that they are including impressions and clicks data (no other network provides this info).

The script below connects to PJN and downloads the SID conversions report:


// EDIT
$loginid ='LOGINID';
$password ='PASSWORD';
$startDate=date("Y-m-d");
$endDate =date("Y-m-d");
// End EDIT

$host = "https://webservices.pepperjamnetwork.com/".
"?target=reports.transaction&startDate=$startDate&endDate=$endDate".
"&username=$loginid&password=$password&format=csv";

// initialize
$ch = curl_init();

// set url and curl options
curl_setopt($ch,CURLOPT_URL, $host);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

// execute
$hits = curl_exec($ch);

// close
curl_close($ch);

// Debug
print_r($hits);
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

 Comments
Post your comments












Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.



About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions