Examples of Report Metas

Example DateTime Report Meta

{
   "URI_Data" : "https://api.mediamath.com/reporting/v1/std/example_datetime",
   "URI_Meta" : "https://api.mediamath.com/reporting/v1/std/example_datetime/meta",
   "Name" : "Example DateTime Report",
   "Description" : "This is just a report definition with an datetime-typed time_field.",
   "Type" : "Standard",
   "Version" : 1, 
   "time_rollups" : [
      "by_day",
      "by_week",
      "by_month",
      "all"
   ],
   "time_windows" : [
      "yesterday",
      "last_X_days",
      "month_to_date",
      "campaign_to_date",
      "flight_to_date"
   ],
   "structure" : {
      "time_field" : {
         "date" : {
            "name" : "Date",
            "type" : "datetime"
         }
      },
      "dimensions" : {
         "campaign_id" : {
            "access" : true,
            "name" : "Campaign ID",
            "type" : "id",
         },
         "campaign_name" : {
            "name" : "Campaign Name",
            "maxLength" : 256,
            "type" : "string"
         },
         "strategy_id" : {
            "access" : true,
            "name" : "Strategy ID",
            "type" : "id"
         },
         "strategy_name" : {
            "name" : "Strategy Name",
            "maxLength" : 256,
            "type" : "string"
         }
      },
      "metrics" : {
         "clicks" : {
            "name" : "Clicks",
            "type" : "count"
         },
         "impressions" : {
            "name" : "Impressions",
            "type" : "count"
         }
      }
   },
   "default_metrics": [ "clicks", "impressions", "total_ad_cost", "total_ad_cost_cpm" ],
   "data_retention": "last_90_days",
   "timezone": "campaign timezone",
   "time_aggregation": "by_day"
}

Example Interval Report Meta

{
   "URI_Data" : "https://api.mediamath.com/reporting/v1/std/example_interval",
   "URI_Meta" : "https://api.mediamath.com/reporting/v1/std/example_interval/meta",
   "Name" : "Example Interval Report",
   "Description" : "This is just a report definition with an interval-typed time_field.",
   "Type" : "Standard",
   "Version" : 1, 
   "time_rollups" : [
      "all"
   ],
   "time_windows" : [
      "yesterday",
      "last_7_days",
      "last_14_days",
      "last_30_days",
      "month_to_date",
	  "campaign_to_date",
	  "flight_to_date"
   ],
   "structure" : {
      "time_field" : {
         "interval" : {
            "name" : "Interval",
            "type" : "interval"
         }
      },
      "dimensions" : {
         "campaign_id" : {
            "access" : true,
            "name" : "Campaign ID",
            "type" : "id",
         },
         "campaign_name" : {
            "name" : "Campaign Name",
            "maxLength" : 256,
            "type" : "string"
         },
         "strategy_id" : {
            "access" : true,
            "name" : "Strategy ID",
            "type" : "id"
         },
         "strategy_name" : {
            "name" : "Strategy Name",
            "maxLength" : 256,
            "type" : "string"
         }
      },
      "metrics" : {
         "clicks" : {
            "name" : "Clicks",
            "type" : "count"
         },
         "impressions" : {
            "name" : "Impressions",
            "type" : "count"
         }
      }
   },
   "default_metrics": [ "clicks", "impressions", "total_ad_cost", "total_ad_cost_cpm" ],
   "data_retention": "2012-01-01",
   "timezone": "campaign timezone",
   "time_aggregation": "various"
}