• 30 Minute Maintenance Window, Midnight Pacific, Sat May 19. Learn more.

View
 

Statistics API Methods


General Information

All methods receive the same input parameters.

 

Parameters:

  • start_date. Required. The start date in a format like 'Jun  8, 2011'.
  • end_date. Required. The end date in a format like 'Jun  8, 2011'.
  • options. Optional. A hash containing multiple "key: value" options.
    • graph_by. Aggregate results based on 'day', 'week' or 'month'. Defaults to 'day'.
    • campaign_id. Filter results by the campaign id.
    • affiliate_id. For advertisers. Filter results by the affiliate id.
    • tag. For affiliates. Filter results by a certain statistics tag.

 


stats/trend_conversion

Generates the conversion rate table.

 

  GET /stats/trend_conversion  

 

// Code  stats_conversion($start_date, $end_date, $options)


stats/trend_commissions_amount

Generates the commissions amount table.

 

  GET /stats/trend_commissions_amount 

 

// Code  stats_trend_commissions_amount($start_date, $end_date, $options)


stats/trend_clicks

Generates the clicks table.

 

  GET /stats/trend_clicks 

 

// Code  stats_clicks($start_date, $end_date, $options)


stats/trend_visitors

Generates the visitors table.

 

  GET /stats/trend_visitors 

 

// Code  stats_trend_visitors($start_date, $end_date, $options)


stats/trend_actions

Generates the actions table.

 

  GET /stats/trend_actions 

 

// Code  stats_trend_actions($start_date, $end_date, $options)


stats/trend_sales_amount

Generates the sales amount table.

 

  GET /stats/trend_sales_amount 

 

// Code  stats_trend_sales_amount($start_date, $end_date, $options)


stats/trend_epc

Generates the epc table.

 

  GET /stats/trend_epc 

 

// Code  stats_trend_epc($start_date, $end_date, $options)