Google Analytics API v3 (revision 41)



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

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.googleapis.services.AbstractGoogleClientRequest<T>
              extended by com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
                  extended by com.google.api.services.analytics.AnalyticsRequest<McfData>
                      extended by com.google.api.services.analytics.Analytics.Data.Mcf.Get
All Implemented Interfaces:
Cloneable, Map<String,Object>
Enclosing class:
Analytics.Data.Mcf

public class Analytics.Data.Mcf.Get
extends AnalyticsRequest<McfData>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
protected Analytics.Data.Mcf.Get(String ids, String startDate, String endDate, String metrics)
          Returns Analytics Multi-Channel Funnels data for a profile.
 
Method Summary
 HttpRequest buildHttpRequestUsingHead()
           
 HttpResponse executeUsingHead()
           
 String getDimensions()
          A comma-separated list of Multi-Channel Funnels dimensions.
 String getEndDate()
          End date for fetching Analytics data.
 String getFilters()
          A comma-separated list of dimension or metric filters to be applied to the Analytics data.
 String getIds()
          Unique table ID for retrieving Analytics data.
 Integer getMaxResults()
          The maximum number of entries to include in this feed.
 String getMetrics()
          A comma-separated list of Multi-Channel Funnels metrics.
 String getSort()
          A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.
 String getStartDate()
          Start date for fetching Analytics data.
 Integer getStartIndex()
          An index of the first entity to retrieve.
 Analytics.Data.Mcf.Get set(String parameterName, Object value)
           
 Analytics.Data.Mcf.Get setAlt(String alt)
          Data format for the response.
 Analytics.Data.Mcf.Get setDimensions(String dimensions)
          A comma-separated list of Multi-Channel Funnels dimensions.
 Analytics.Data.Mcf.Get setEndDate(String endDate)
          End date for fetching Analytics data.
 Analytics.Data.Mcf.Get setFields(String fields)
          Selector specifying which fields to include in a partial response.
 Analytics.Data.Mcf.Get setFilters(String filters)
          A comma-separated list of dimension or metric filters to be applied to the Analytics data.
 Analytics.Data.Mcf.Get setIds(String ids)
          Unique table ID for retrieving Analytics data.
 Analytics.Data.Mcf.Get setKey(String key)
          API key.
 Analytics.Data.Mcf.Get setMaxResults(Integer maxResults)
          The maximum number of entries to include in this feed.
 Analytics.Data.Mcf.Get setMetrics(String metrics)
          A comma-separated list of Multi-Channel Funnels metrics.
 Analytics.Data.Mcf.Get setOauthToken(String oauthToken)
          OAuth 2.0 token for the current user.
 Analytics.Data.Mcf.Get setPrettyPrint(Boolean prettyPrint)
          Returns response with indentations and line breaks.
 Analytics.Data.Mcf.Get setQuotaUser(String quotaUser)
          Available to use for quota purposes for server-side applications.
 Analytics.Data.Mcf.Get setSort(String sort)
          A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.
 Analytics.Data.Mcf.Get setStartDate(String startDate)
          Start date for fetching Analytics data.
 Analytics.Data.Mcf.Get setStartIndex(Integer startIndex)
          An index of the first entity to retrieve.
 Analytics.Data.Mcf.Get setUserIp(String userIp)
          IP address of the site where the request originates.
 
Methods inherited from class com.google.api.services.analytics.AnalyticsRequest
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
 
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest
getJsonContent, newExceptionOnError, queue
 
Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClientRequest
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
 
Methods inherited from class com.google.api.client.util.GenericData
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Analytics.Data.Mcf.Get

protected Analytics.Data.Mcf.Get(String ids,
                                 String startDate,
                                 String endDate,
                                 String metrics)
Returns Analytics Multi-Channel Funnels data for a profile. Create a request for the method "mcf.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.

Analytics.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

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 Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.
Since:
1.13
Method Detail

executeUsingHead

public HttpResponse executeUsingHead()
                              throws IOException
Overrides:
executeUsingHead in class AbstractGoogleClientRequest<McfData>
Throws:
IOException

buildHttpRequestUsingHead

public HttpRequest buildHttpRequestUsingHead()
                                      throws IOException
Overrides:
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<McfData>
Throws:
IOException

setAlt

public Analytics.Data.Mcf.Get setAlt(String alt)
Description copied from class: AnalyticsRequest
Data format for the response.

Overrides:
setAlt in class AnalyticsRequest<McfData>

setFields

public Analytics.Data.Mcf.Get setFields(String fields)
Description copied from class: AnalyticsRequest
Selector specifying which fields to include in a partial response.

Overrides:
setFields in class AnalyticsRequest<McfData>

setKey

public Analytics.Data.Mcf.Get setKey(String key)
Description copied from class: AnalyticsRequest
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

Overrides:
setKey in class AnalyticsRequest<McfData>

setOauthToken

public Analytics.Data.Mcf.Get setOauthToken(String oauthToken)
Description copied from class: AnalyticsRequest
OAuth 2.0 token for the current user.

Overrides:
setOauthToken in class AnalyticsRequest<McfData>

setPrettyPrint

public Analytics.Data.Mcf.Get setPrettyPrint(Boolean prettyPrint)
Description copied from class: AnalyticsRequest
Returns response with indentations and line breaks.

Overrides:
setPrettyPrint in class AnalyticsRequest<McfData>

setQuotaUser

public Analytics.Data.Mcf.Get setQuotaUser(String quotaUser)
Description copied from class: AnalyticsRequest
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

Overrides:
setQuotaUser in class AnalyticsRequest<McfData>

setUserIp

public Analytics.Data.Mcf.Get setUserIp(String userIp)
Description copied from class: AnalyticsRequest
IP address of the site where the request originates. Use this if you want to enforce per-user limits.

Overrides:
setUserIp in class AnalyticsRequest<McfData>

getIds

public String getIds()
Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics profile ID.


setIds

public Analytics.Data.Mcf.Get setIds(String ids)
Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics profile ID.


getStartDate

public String getStartDate()
Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY- MM-DD.


setStartDate

public Analytics.Data.Mcf.Get setStartDate(String startDate)
Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.


getEndDate

public String getEndDate()
End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM- DD.


setEndDate

public Analytics.Data.Mcf.Get setEndDate(String endDate)
End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.


getMetrics

public String getMetrics()
A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.


setMetrics

public Analytics.Data.Mcf.Get setMetrics(String metrics)
A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.


getMaxResults

public Integer getMaxResults()
The maximum number of entries to include in this feed.


setMaxResults

public Analytics.Data.Mcf.Get setMaxResults(Integer maxResults)
The maximum number of entries to include in this feed.


getSort

public String getSort()
A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.


setSort

public Analytics.Data.Mcf.Get setSort(String sort)
A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.


getDimensions

public String getDimensions()
A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.


setDimensions

public Analytics.Data.Mcf.Get setDimensions(String dimensions)
A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.


getStartIndex

public Integer getStartIndex()
An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. [minimum: 1]


setStartIndex

public Analytics.Data.Mcf.Get setStartIndex(Integer startIndex)
An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.


getFilters

public String getFilters()
A comma-separated list of dimension or metric filters to be applied to the Analytics data.


setFilters

public Analytics.Data.Mcf.Get setFilters(String filters)
A comma-separated list of dimension or metric filters to be applied to the Analytics data.


set

public Analytics.Data.Mcf.Get set(String parameterName,
                                  Object value)
Overrides:
set in class AnalyticsRequest<McfData>