Google Analytics API v2.4 (revision 33)



com.google.api.services.analytics
Class Analytics.Data

java.lang.Object
  extended by com.google.api.services.analytics.Analytics.Data
Enclosing class:
Analytics

public class Analytics.Data
extends Object

The "data" collection of methods.


Nested Class Summary
 class Analytics.Data.Get
           
 
Constructor Summary
Analytics.Data()
           
 
Method Summary
 Analytics.Data.Get get(String ids, String startDate, String endDate, String metrics)
          Returns Analytics report data for a profile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Analytics.Data

public Analytics.Data()
Method Detail

get

public Analytics.Data.Get get(String ids,
                              String startDate,
                              String endDate,
                              String metrics)
                       throws IOException
Returns Analytics report data for a profile. Create a request for the method "data.get". This request holds the parameters needed by the the analytics server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
ids - Unique table ID for retrieving report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics profile ID.
startDate - Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM- DD.
endDate - End date for fetching report data. All requests should specify an end date formatted as YYYY-MM-DD.
metrics - A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric must be specified to retrieve a valid Analytics report.
Returns:
the request
Throws:
IOException