Recent Posts

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);
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);
|

Subscribe Now to receive new posts via Email as soon as they come out.
Comments
Post your comments