Example usage for com.google.gwt.gdata.client.analytics AnalyticsService newInstance

List of usage examples for com.google.gwt.gdata.client.analytics AnalyticsService newInstance

Introduction

In this page you can find the example usage for com.google.gwt.gdata.client.analytics AnalyticsService newInstance.

Prototype

public static native AnalyticsService newInstance(String applicationName) ;

Source Link

Document

Constructs an analytics service.

Usage

From source file:com.google.gwt.gdata.sample.hellogdata.client.AnalyticsBounceRateDemo.java

License:Apache License

/**
 * Starts this demo./*w  w w  .j  a  va 2s .  c o  m*/
 */
private void startDemo() {
    service = AnalyticsService.newInstance("HelloGData_Analytics_BounceRateDemo_v2.0");
    if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) {
        getAccounts("https://www.google.com/analytics/feeds/accounts/default");
    } else {
        showStatus("You are not logged on to Google Analytics.", true);
    }
}

From source file:com.google.gwt.gdata.sample.hellogdata.client.AnalyticsLanguagesDemo.java

License:Apache License

/**
 * Starts this demo.//from   ww  w.  j ava2s .  c o  m
 */
private void startDemo() {
    service = AnalyticsService.newInstance("HelloGData_Analytics_LanguagesDemo_v2.0");
    if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) {
        getAccounts("https://www.google.com/analytics/feeds/accounts/" + "default?max-results=50");
    } else {
        showStatus("You are not logged on to Google Analytics.", true);
    }
}

From source file:com.google.gwt.gdata.sample.hellogdata.client.AnalyticsTopPagesDemo.java

License:Apache License

/**
 * Starts this demo.//from   ww  w .ja v a 2 s  .c o  m
 */
private void startDemo() {
    service = AnalyticsService.newInstance("HelloGData_Analytics_TopPagesDemo_v2.0");
    if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) {
        getAccounts("https://www.google.com/analytics/feeds/accounts/" + "default?max-results=50");
    } else {
        showStatus("You are not logged on to Google Analytics.", true);
    }
}

From source file:com.google.gwt.gdata.sample.hellogdata.client.AnalyticsTopSearchesDemo.java

License:Apache License

/**
 * Starts this demo.//from   w  w  w  . j a  v  a2 s  . c  o  m
 */
private void startDemo() {
    service = AnalyticsService.newInstance("HelloGData_Analytics_TopSearchesDemo_v2.0");
    if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) {
        getAccounts("https://www.google.com/analytics/feeds/accounts/" + "default?max-results=50");
    } else {
        showStatus("You are not logged on to Google Analytics.", true);
    }
}

From source file:com.google.gwt.gdata.sample.hellogdata.client.AnalyticsVisitsDemo.java

License:Apache License

/**
 * Starts this demo./*from w  w  w. j  ava2 s.  co m*/
 */
private void startDemo() {
    service = AnalyticsService.newInstance("HelloGData_Analytics_VisitsDemo_v2.0");
    if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) {
        getAccounts("https://www.google.com/analytics/feeds/accounts/" + "default?max-results=50");
    } else {
        showStatus("You are not logged on to Google Analytics.", true);
    }
}

From source file:com.google.gwt.gdata.sample.hellogdata.client.AnalyticsYourAccountsDemo.java

License:Apache License

/**
 * Starts this demo.//from  www  . j av a2  s. c  om
 */
private void startDemo() {
    service = AnalyticsService.newInstance("HelloGData_Analytics_YourAccountsDemo_v2.0");
    if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) {
        getAccounts("https://www.google.com/analytics/feeds/accounts/" + "default?max-results=50");
    } else {
        showStatus("You are not logged on to Google Analytics.", true);
    }
}