How to load statistics data
If you want to get statistical data that is used in the Traffic stats widget or in reports (Quick, Trends), you can use class Pap_Merchants_Reports_TrafficStatsData.
In case you wish to load the data for a particular affiliate, then you can log in as an affiliate via api (https://support.qualityunit.com/367540-Logging-in-the-merchant-and-affiliate) or use 'userid' filter:
$filters[] = array("userid", Gpf_Data_Filter::EQUALS, '11111111');
Loading traffic stats data:
<?ph...