<?php
$api_username = '*******';
$api_subscription = '*******';
$api_start_date = ''; // replace with start date
$api_end_date = ''; // replace with end date
$api_merchant_id = 0; // replace with your network id
$api_referrer = ''; // return report for this referrer only
$api_client_ip = ''; // return the report for this client ip only
try
{
$client = new SoapClient('https://synced.io/api/v2?wsdl');
$report = $client->get_impressions_report($api_username, $api_subscription, $api_start_date, $api_end_date, $api_referrer, $api_client_ip);
}
catch(Exception $e)
{
echo $e->getMessage();
}
if(!empty($report))
{
print_r($report);
}
?>