Package com.google.gdata.data.analytics

Examples of com.google.gdata.data.analytics.DataSource


  * Note: the GA Export API currently has exactly one data source.
  * @param {DataFeed} feed Parameter passed
  *     back from the feed handler.
  */
  public static void outputFeedDataSources(DataFeed feed) {
    DataSource gaDataSource = feed.getDataSources().get(0);
    System.out.println(
      "\nTable Name      = " + gaDataSource.getTableName().getValue() +
      "\nTable ID        = " + gaDataSource.getTableId().getValue() +
      "\nWeb Property Id = " + gaDataSource.getProperty("ga:webPropertyId") +
      "\nProfile Id      = " + gaDataSource.getProperty("ga:profileId") +
      "\nAccount Name    = " + gaDataSource.getProperty("ga:accountName"));
  }
View Full Code Here


  /**
   * Prints the important information about the data sources in the feed.
   * Note: the GA Export API currently has exactly one data source.
   */
  public void printFeedDataSources() {
    DataSource gaDataSource = feed.getDataSources().get(0);
    System.out.println("\n-------- Data Source Information --------");
    System.out.println(
      "\nTable Name      = " + gaDataSource.getTableName().getValue() +
      "\nTable ID        = " + gaDataSource.getTableId().getValue() +
      "\nWeb Property Id = " + gaDataSource.getProperty("ga:webPropertyId") +
      "\nProfile Id      = " + gaDataSource.getProperty("ga:profileId") +
      "\nAccount Name    = " + gaDataSource.getProperty("ga:accountName"));
  }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.analytics.DataSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.