Call us Toll-Free:
1-800-218-1525
Email us

 Sponsors

How to download Azoogle conversions report

Mike Peters, 01-29-2009
AzoogleAds is a performance marketing affiliate network, focusing on consumer offers.

Azoogle offers a great SOAP API that allows you to download your stats and access information about new offers as soon as they become available.

The script below connects to AzoogleAds and downloads the conversions report:


include ("nusoap.php");

// EDIT
$loginid  ='YOUR_LOGIN';
$password ='YOUR_PASSWORD';
$affid  ='YOUR_AFFILIATEID';
// End EDIT

$date=date("Y-m-d");

$login_info = array
(
 
"AZOOGLE" => array ( 'login' => "$loginid", 'password' => "$password", 'ID' => "$affid"), // confirmed
);
$params = $login_info['AZOOGLE'];

$host = "https://home.azoogleads.com/soap/azads2_server.php";
$soapclient = new soapclientNusoap($host,true);

if (!(
$hash = $soapclient->call('authenticate',
  array (
   
"affil_id" => $params['ID'],
   
"login"  => $params['login'],
   
"passhash" => $params['password'],
  )
)))
{     
  die(
'no connection to Azoogle');
}

// Download report
$hits = $soapclient->call('getSubHits',
  array (
   
"login_hash" => $hash,
   
"affiliate_id" => $params['ID'],
   
"offer_id" => ALL,
   
"start_date" => $date,
   
"end_date" => $date,
   
"traffic_type_id" => "",
   
"sales_only" => true
 
)
);

// Debug
print_r($hits);
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

 Comments
Post your comments












Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.



About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions