/zones/stats
	Get web statistic data
	Parameters
	
	
	
		
	
		| object | 
		 { | 
		
			
			
			
		 | 
	
		
			
				
					
						  
							
	
	
		
	
		| boolean | 
		byDevice | 
		
			(optional)
			Group data by device (can't combine with bySource)
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| boolean | 
		bySource | 
		
			(optional)
			Group data by source (can't combine with byDevice)
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| string | 
		dateFrom | 
		
			
			Restrict data from this date, ISO format YYYY-MM-DD (eg 2017-07-16)
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| string | 
		dateTo | 
		
			
			Restrict data from this date, ISO format YYYY-MM-DD (eg 2017-07-16)
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| enum | 
		granularity | 
		
			(optional)
			Time granularity (group data by time interval)
			
				
				
					- 
						
daily
					 
				
					- 
						
weekly
					 
				
					- 
						
monthly
					 
				
					- 
						
quarterly
					 
				
					- 
						
yearly
					 
				
					- 
						
total
					 
				
				 
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| string | 
		session | 
		
			
			Session token obtained by one of login methods
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| array | 
		webIds [ | 
		
			(optional)
			Restrict data by list of web IDs
			
		 | 
	 
		
			| 
				
			 | 
		 
		
	
		 | 
		] | 
		
			
			
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| array | 
		zoneIds [ | 
		
			(optional)
			Restrict data by list of zone IDs
			
		 | 
	 
		
			| 
				
			 | 
		 
		
	
		 | 
		] | 
		
			
			
			
		 | 
	 
	
	
						
					 
				 
			 | 
		
		
	
		 | 
		} | 
		
			
			
			
		 | 
	
	
	
	Response
	
		
	
	
		
	
		| object | 
		 { | 
		
			
			
			
		 | 
	
		
			
				
					
						  
							
	
	
		
	
		| integer | 
		count | 
		
			
			Number of returned items
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| array | 
		stats [ | 
		
			
			
			
		 | 
	 
		
			
				
					
	
	
		
	
		| object | 
		 { | 
		
			
			
			
		 | 
	 
		
			
				
					
						  
							
	
	
		
	
		| integer | 
		clicks | 
		
			
			Number of clicks at creative (only for Sklik)
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| number | 
		commission | 
		
			
			Number of commission money (clickMoney+impressionMoney)
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| string | 
		date | 
		
			(optional)
			Date of the first day in the time granule defined by granularity parameter. ISO format YYYY-MM-DD (eg 2017-07-16)
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| string | 
		device | 
		
			(optional)
			Device identifier. NULL when the appropriate value is not set in segmentation variable in the request.
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| object | 
		dimension { | 
		
			(optional)
			Zone size/dimensions
			
		 | 
	 
		
			
				
					
						  
							
	
	
		
	
		| integer | 
		height | 
		
			
			
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| integer | 
		width | 
		
			
			
			
		 | 
	 
	
	
						
					 
				 
			 | 
		 
		
	
		 | 
		} | 
		
			
			
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| integer | 
		impressions | 
		
			
			Number of impressions
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| string | 
		source | 
		
			(optional)
			Source identifier. NULL when the appropriate value is not set in segmentation variable in the request.
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| integer | 
		webId | 
		
			
			Web ID
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| string | 
		webName | 
		
			
			Web name of web the zone belongs to
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| integer | 
		zoneId | 
		
			
			Zone ID
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| string | 
		zoneName | 
		
			
			Zone name
			
		 | 
	 
	
	
						
					 
				 
			 | 
		 
		
	
		 | 
		} | 
		
			
			
			
		 | 
	 
	
	 
				 
			 | 
		 
		
	
		 | 
		] | 
		
			
			
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| integer | 
		status | 
		
			
			Status code
			
		 | 
	 
	
	
						  
							
	
	
		
	
		| string | 
		statusMessage | 
		
			
			Textual status description
			
		 | 
	 
	
	
						
					 
				 
			 | 
		
		
	
		 | 
		} | 
		
			
			
			
		 | 
	
	
	
	 
	Response status codes
	List of possible response status codes:
	
	
		200: OK 
	
		400: Bad request 
	
		401: Authentication failed 
	
		429: Too much requests in time