Topics
Support
Get Offer Report
Get Offer Report
Description
This function is intended to provides you ability to get offer report.
API function Information
| Info |
|---|
| API Function Name: get_offer_report |
| API Function Call: http://[your_system_domain_name]/api/get_offer_report/ |
POST Parameters
| Parameter | Option | Value Type | Example | Description |
|---|---|---|---|---|
| User_ID | required | string | 1 | User ID. |
| API_Key | required | string | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | API key. |
| date_from |
required | string | 01/01/01 | Date from. |
| date_to |
required | string | 01/01/01 | Date to. |
| offers |
optional | string | 1, 2, 3 | Offers list. If Breakdown=32, this field is required. |
| breakdown | required | numeric | 1 | Possible values |
Request example
<?php
// API Function URL
$api_function_call = 'http://[your_system_domain_name]/api/advetisers_get_all/';
// API Parameters
$post_params = array(
'User_ID' => '0000000000',
'API_Key' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'date_from' => '01/01/2011',
'date_to' => '08/11/2011',
'breakdown' => 0
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api_function_call);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_params);
$aResult = curl_exec($ch);
curl_close($ch);
print_r( $aResult );
?>
Response example (breakdown 30)
<?xml version="1.0" encoding="UTF-8"?>
68
68
6
0
<p>0</p>
1
<payout>21</payout>
30
9
212
3797
2
01/01/2011
08/11/2011
9
0.30882352941176
Consumer Incentive Promotions - $250 Grocery Gift Card - ZIP SUBMIT
3791
Advertiser
Response example (breakdown 31)
<?xml version="1.0" encoding="UTF-8"?>
1
1
1
0
<p>0</p>
0
<payout>21</payout>
0.71
0.2
209
3792
2
1
1
1
0
<p>0</p>
0
<payout>21</payout>
0.71
0.2
209
3792
2
01/01/2011
08/11/2011
100
0.51
Affiliate
01/01/2011
08/11/2011
100
0.51
UK Prizes - Win a pair of UGG Boots
3791
Advertiser
Response example (breakdown 32)
<?xml version="1.0" encoding="UTF-8"?>
212
01/01/2011
08/11/2011
0
67
6
0
<p>0</p>
1
<payout>21</payout>
30
9
1
2
9
0.3134328358209
Consumer Incentive Promotions - $250 Grocery Gift Card - ZIP SUBMIT
3791
Advertiser
0
52
1
0
<p>0</p>
1
<payout>21</payout>
5
1.5
212
1
2
01/01/2011
08/11/2011
2
0.067307692307692
RevenueStreet
Response example (breakdown 33)
<?xml version="1.0" encoding="UTF-8"?>
212
01/01/2011
08/11/2011
68
68
6
0
<p>0</p>
1
<payout>21</payout>
30
9
2011-04-20
3792
2
9
0.30882352941176
Consumer Incentive Promotions - $250 Grocery Gift Card - ZIP SUBMIT
3791
Advertiser
2011-01-01
5
5
1
0
<p>0</p>
0
<payout>21</payout>
5
1.5
212
3792
2
2011-01-01
2011-01-01
20
0.7
Response example (breakdown 60)
<?xml version="1.0" encoding="UTF-8"?>
212
01/01/2011
08/11/2011
0
67
6
0
<p>0</p>
1
<payout>21</payout>
30
9
1
2
9
0.3134328358209
Consumer Incentive Promotions - $250 Grocery Gift Card - ZIP SUBMIT
3791
Advertiser
0
56
4
0
<p>0</p>
1
<payout>21</payout>
20
6
212
1
2
01/01/2011
08/11/2011
7
0.25
RevenueStreet