All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.analytics.Analytics.Data.Get.html Maven / Gradle / Ivy







Analytics.Data.Get (Google Analytics API v2.4-rev20180622-1.29.2)












com.google.api.services.analytics

Class Analytics.Data.Get

    • Constructor Detail

      • Get

        protected Get(String ids,
                      String startDate,
                      String endDate,
                      String metrics)
        Returns Analytics report data for a view (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.

        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 report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (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:sessions,ga:pageviews'. At least one metric must be specified to retrieve a valid Analytics report.
        Since:
        1.13
    • Method Detail

      • getIds

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

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

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

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

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

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

        public String getMetrics()
        A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified to retrieve a valid Analytics report.
      • setMetrics

        public Analytics.Data.Get setMetrics(String metrics)
        A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified to retrieve a valid Analytics report.
      • getDimensions

        public String getDimensions()
        A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
      • setDimensions

        public Analytics.Data.Get setDimensions(String dimensions)
        A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
      • getFilters

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

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

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

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

        public String getSegment()
        An Analytics advanced segment to be applied to the report data.
      • setSegment

        public Analytics.Data.Get setSegment(String segment)
        An Analytics advanced segment to be applied to the report data.
      • getSort

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

        public Analytics.Data.Get setSort(String sort)
        A comma-separated list of dimensions or metrics that determine the sort order for the report data.
      • 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.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.

Copyright © 2011–2019 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy