Google Analytics API v3 (revision 41)



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

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

public class Analytics.Data.Ga
extends Object

The "ga" collection of methods.


Nested Class Summary
 class Analytics.Data.Ga.Get
           
 
Constructor Summary
Analytics.Data.Ga()
           
 
Method Summary
 Analytics.Data.Ga.Get get(String ids, String startDate, String endDate, String metrics)
          Returns Analytics 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.Ga

public Analytics.Data.Ga()
Method Detail

get

public Analytics.Data.Ga.Get get(String ids,
                                 String startDate,
                                 String endDate,
                                 String metrics)
                          throws IOException
Returns Analytics data for a profile. Create a request for the method "ga.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 Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics profile ID.
startDate - Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY- MM-DD.
endDate - End date for fetching Analytics 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.
Returns:
the request
Throws:
IOException