public class

DataQuery

extends Query
java.lang.Object
   ↳ com.google.gdata.client.Query
     ↳ com.google.gdata.client.analytics.DataQuery

Class Overview

Describes a query for the arbitrary data from an Analytics profile.

Summary

[Expand]
Inherited Constants
From class com.google.gdata.client.Query
Fields
private String dimensions Comma separated list of row keys.
private String endDate Last day for which to retrieve data in form YYYY-MM-DD.
private String filters Dimension and metric filters.
private String ids Google Analytics profile ID, prefixed by 'ga:'.
private String metrics Comma separated list of numeric value fields.
private String segment Segment to be applied.
private String sort Comma separated list of sort parameters in order of importance.
private String startDate First day for which to retrieve data in form YYYY-MM-DD.
[Expand]
Inherited Fields
From class com.google.gdata.client.Query
Public Constructors
DataQuery(URL feedUrl)
Constructs a new query object that targets a feed.
Public Methods
String getDimensions()
Returns the comma separated list of row keys.
String getEndDate()
Returns the last day for which to retrieve data in form YYYY-MM-DD.
String getFilters()
Returns the dimension and metric filters.
String getIds()
Returns the Google Analytics profile ID, prefixed by 'ga:'.
String getMetrics()
Returns the comma separated list of numeric value fields.
String getSegment()
Returns the segment to be applied.
String getSort()
Returns the comma separated list of sort parameters in order of importance.
String getStartDate()
Returns the first day for which to retrieve data in form YYYY-MM-DD.
void setDimensions(String dimensions)
Sets the comma separated list of row keys.
void setEndDate(String endDate)
Sets the last day for which to retrieve data in form YYYY-MM-DD.
void setFilters(String filters)
Sets the dimension and metric filters.
void setIds(String ids)
Sets the Google Analytics profile ID, prefixed by 'ga:'.
void setMetrics(String metrics)
Sets the comma separated list of numeric value fields.
void setSegment(String segment)
Sets the segment to be applied.
void setSort(String sort)
Sets the comma separated list of sort parameters in order of importance.
void setStartDate(String startDate)
Sets the first day for which to retrieve data in form YYYY-MM-DD.
[Expand]
Inherited Methods
From class com.google.gdata.client.Query
From class java.lang.Object

Fields

private String dimensions

Comma separated list of row keys.

private String endDate

Last day for which to retrieve data in form YYYY-MM-DD.

private String filters

Dimension and metric filters.

private String ids

Google Analytics profile ID, prefixed by 'ga:'.

private String metrics

Comma separated list of numeric value fields.

private String segment

Segment to be applied.

private String sort

Comma separated list of sort parameters in order of importance.

private String startDate

First day for which to retrieve data in form YYYY-MM-DD.

Public Constructors

public DataQuery (URL feedUrl)

Constructs a new query object that targets a feed. The initial state of the query contains no parameters, meaning all entries in the feed would be returned if the query was executed immediately after construction.

Parameters
feedUrl The URL of the feed against which queries will be executed.

Public Methods

public String getDimensions ()

Returns the comma separated list of row keys.

Returns
  • comma separated list of row keys or null to indicate that the parameter is not set.

public String getEndDate ()

Returns the last day for which to retrieve data in form YYYY-MM-DD.

Returns
  • last day for which to retrieve data in form YYYY-MM-DD or null to indicate that the parameter is not set.

public String getFilters ()

Returns the dimension and metric filters.

Returns
  • dimension and metric filters or null to indicate that the parameter is not set.

public String getIds ()

Returns the Google Analytics profile ID, prefixed by 'ga:'.

Returns
  • Google Analytics profile ID, prefixed by 'ga:' or null to indicate that the parameter is not set.

public String getMetrics ()

Returns the comma separated list of numeric value fields.

Returns
  • comma separated list of numeric value fields or null to indicate that the parameter is not set.

public String getSegment ()

Returns the segment to be applied.

Returns
  • segment to be applied or null to indicate that the parameter is not set.

public String getSort ()

Returns the comma separated list of sort parameters in order of importance.

Returns
  • comma separated list of sort parameters in order of importance or null to indicate that the parameter is not set.

public String getStartDate ()

Returns the first day for which to retrieve data in form YYYY-MM-DD.

Returns
  • first day for which to retrieve data in form YYYY-MM-DD or null to indicate that the parameter is not set.

public void setDimensions (String dimensions)

Sets the comma separated list of row keys.

Parameters
dimensions Comma separated list of row keys or null to remove this parameter if set.

public void setEndDate (String endDate)

Sets the last day for which to retrieve data in form YYYY-MM-DD.

Parameters
endDate Last day for which to retrieve data in form YYYY-MM-DD or null to remove this parameter if set.

public void setFilters (String filters)

Sets the dimension and metric filters.

Parameters
filters Dimension and metric filters or null to remove this parameter if set.

public void setIds (String ids)

Sets the Google Analytics profile ID, prefixed by 'ga:'.

Parameters
ids Google Analytics profile ID, prefixed by 'ga:' or null to remove this parameter if set.

public void setMetrics (String metrics)

Sets the comma separated list of numeric value fields.

Parameters
metrics Comma separated list of numeric value fields or null to remove this parameter if set.

public void setSegment (String segment)

Sets the segment to be applied.

Parameters
segment Segment to be applied or null to remove this parameter if set.

public void setSort (String sort)

Sets the comma separated list of sort parameters in order of importance.

Parameters
sort Comma separated list of sort parameters in order of importance or null to remove this parameter if set.

public void setStartDate (String startDate)

Sets the first day for which to retrieve data in form YYYY-MM-DD.

Parameters
startDate First day for which to retrieve data in form YYYY-MM-DD or null to remove this parameter if set.