Topics
Support
Get Advertiser Report
Get Advertiser Report
Description
This function is intended to provides you ability to get advertiser report.
API function Information
iser
| Info |
|---|
| API Function Name: get_advertiser_report |
| API Function Call: http://[your_system_domain_name]/api/get_advertiser_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. |
| amanager |
optional | numeric | 1 | New password. |
| vmanager | optional | numeric | 1 | Password confirm. |
| breakdown | required | numeric | 1 | Possible values |
| advertisers | optional | string | 1, 2, 3 | Advertisers list. |
Request example
<?php
// API Function URL
$api_function_call = 'http://[your_system_domain_name]/api/get_advertiser_report/';
// 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 20)
<?xml version="1.0" encoding="UTF-8"?>
79
79
8
0
<p>0</p>
1
<payout>26.51</payout>
40.71
14.2
224
3801
3
01/01/2011
08/11/2011
10
0.33556962025316
3791
Advertiser
Response example (breakdown 21)
<?xml version="1.0" encoding="UTF-8"?>
79
79
8
0
<p>0</p>
1
<payout>26.51</payout>
40.71
14.2
224
1
3
1
1
1
0
<p>0</p>
0
<payout>26.51</payout>
0.71
0.2
209
3792
2
01/01/2011
08/11/2011
100
0.51
UK Prizes - Win a pair of UGG Boots
01/01/2011
08/11/2011
10
0.33556962025316
3791
Advertiser
Response example (breakdown 22)
<?xml version="1.0" encoding="UTF-8"?>
79
79
8
0
<p>0</p>
1
<payout>26.51</payout>
40.71
14.2
224
3801
3
54
54
0
0
<p>0</p>
1
<payout>26.51</payout>
0
0
215
1
3
01/01/2011
08/11/2011
0
0
RevenueStreet
01/01/2011
08/11/2011
10
0.33556962025316
3791
Advertiser
Response example (breakdown 23)
<?xml version="1.0" encoding="UTF-8"?>
2011-04-20
79
79
8
0
<p>0</p>
1
<payout>26.51</payout>
40.71
14.2
212
3792
2
2011-01-01
5
5
1
0
<p>0</p>
0
<payout>26.51</payout>
5
1.5
212
3792
2
2011-01-01
2011-01-01
20
0.7
01/01/2011
08/11/2011
10
0.33556962025316
3791
Advertiser