PageRenderTime 327ms CodeModel.GetById 121ms app.highlight 88ms RepoModel.GetById 103ms app.codeStats 1ms

/social_network/GoogleAPI/src/contrib/Google_AnalyticsService.php

https://github.com/dikafryo/sw4u
PHP | 2429 lines | 2105 code | 71 blank | 253 comment | 20 complexity | 1c1b987a22ed153cc4cf64adf1ff4cb9 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1<?php
   2/*
   3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   4 * use this file except in compliance with the License. You may obtain a copy of
   5 * the License at
   6 *
   7 * http://www.apache.org/licenses/LICENSE-2.0
   8 *
   9 * Unless required by applicable law or agreed to in writing, software
  10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12 * License for the specific language governing permissions and limitations under
  13 * the License.
  14 */
  15
  16
  17  /**
  18   * The "management" collection of methods.
  19   * Typical usage is:
  20   *  <code>
  21   *   $analyticsService = new Google_AnalyticsService(...);
  22   *   $management = $analyticsService->management;
  23   *  </code>
  24   */
  25  class Google_ManagementServiceResource extends Google_ServiceResource {
  26
  27
  28  }
  29
  30  /**
  31   * The "dailyUploads" collection of methods.
  32   * Typical usage is:
  33   *  <code>
  34   *   $analyticsService = new Google_AnalyticsService(...);
  35   *   $dailyUploads = $analyticsService->dailyUploads;
  36   *  </code>
  37   */
  38  class Google_ManagementDailyUploadsServiceResource extends Google_ServiceResource {
  39
  40
  41    /**
  42     * List daily uploads to which the user has access. (dailyUploads.list)
  43     *
  44     * @param string $accountId Account Id for the daily uploads to retrieve.
  45     * @param string $webPropertyId Web property Id for the daily uploads to retrieve.
  46     * @param string $customDataSourceId Custom data source Id for daily uploads to retrieve.
  47     * @param string $start_date Start date of the form YYYY-MM-DD.
  48     * @param string $end_date End date of the form YYYY-MM-DD.
  49     * @param array $optParams Optional parameters.
  50     *
  51     * @opt_param int max-results The maximum number of custom data sources to include in this response.
  52     * @opt_param int start-index A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
  53     * @return Google_DailyUploads
  54     */
  55    public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $start_date, $end_date, $optParams = array()) {
  56      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $start_date, 'end-date' => $end_date);
  57      $params = array_merge($params, $optParams);
  58      $data = $this->__call('list', array($params));
  59      if ($this->useObjects()) {
  60        return new Google_DailyUploads($data);
  61      } else {
  62        return $data;
  63      }
  64    }
  65    /**
  66     * Update/Overwrite data for a custom data source. (dailyUploads.upload)
  67     *
  68     * @param string $accountId Account Id associated with daily upload.
  69     * @param string $webPropertyId Web property Id associated with daily upload.
  70     * @param string $customDataSourceId Custom data source Id to which the data being uploaded belongs.
  71     * @param string $date Date for which data is uploaded. Date should be formatted as YYYY-MM-DD.
  72     * @param int $appendNumber Append number for this upload indexed from 1.
  73     * @param string $type Type of data for this upload.
  74     * @param array $optParams Optional parameters.
  75     *
  76     * @opt_param bool reset Reset/Overwrite all previous appends for this date and start over with this file as the first upload.
  77     * @return Google_DailyUploadAppend
  78     */
  79    public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array()) {
  80      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type);
  81      $params = array_merge($params, $optParams);
  82      $data = $this->__call('upload', array($params));
  83      if ($this->useObjects()) {
  84        return new Google_DailyUploadAppend($data);
  85      } else {
  86        return $data;
  87      }
  88    }
  89    /**
  90     * Delete uploaded data for the given date. (dailyUploads.delete)
  91     *
  92     * @param string $accountId Account Id associated with daily upload delete.
  93     * @param string $webPropertyId Web property Id associated with daily upload delete.
  94     * @param string $customDataSourceId Custom data source Id associated with daily upload delete.
  95     * @param string $date Date for which data is to be deleted. Date should be formatted as YYYY-MM-DD.
  96     * @param string $type Type of data for this delete.
  97     * @param array $optParams Optional parameters.
  98     */
  99    public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array()) {
 100      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type);
 101      $params = array_merge($params, $optParams);
 102      $data = $this->__call('delete', array($params));
 103      return $data;
 104    }
 105  }
 106  /**
 107   * The "segments" collection of methods.
 108   * Typical usage is:
 109   *  <code>
 110   *   $analyticsService = new Google_AnalyticsService(...);
 111   *   $segments = $analyticsService->segments;
 112   *  </code>
 113   */
 114  class Google_ManagementSegmentsServiceResource extends Google_ServiceResource {
 115
 116
 117    /**
 118     * Lists advanced segments to which the user has access. (segments.list)
 119     *
 120     * @param array $optParams Optional parameters.
 121     *
 122     * @opt_param int max-results The maximum number of advanced segments to include in this response.
 123     * @opt_param int start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
 124     * @return Google_Segments
 125     */
 126    public function listManagementSegments($optParams = array()) {
 127      $params = array();
 128      $params = array_merge($params, $optParams);
 129      $data = $this->__call('list', array($params));
 130      if ($this->useObjects()) {
 131        return new Google_Segments($data);
 132      } else {
 133        return $data;
 134      }
 135    }
 136  }
 137  /**
 138   * The "profiles" collection of methods.
 139   * Typical usage is:
 140   *  <code>
 141   *   $analyticsService = new Google_AnalyticsService(...);
 142   *   $profiles = $analyticsService->profiles;
 143   *  </code>
 144   */
 145  class Google_ManagementProfilesServiceResource extends Google_ServiceResource {
 146
 147
 148    /**
 149     * Lists profiles to which the user has access. (profiles.list)
 150     *
 151     * @param string $accountId Account ID for the profiles to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.
 152     * @param string $webPropertyId Web property ID for the profiles to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.
 153     * @param array $optParams Optional parameters.
 154     *
 155     * @opt_param int max-results The maximum number of profiles to include in this response.
 156     * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
 157     * @return Google_Profiles
 158     */
 159    public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) {
 160      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
 161      $params = array_merge($params, $optParams);
 162      $data = $this->__call('list', array($params));
 163      if ($this->useObjects()) {
 164        return new Google_Profiles($data);
 165      } else {
 166        return $data;
 167      }
 168    }
 169  }
 170  /**
 171   * The "customDataSources" collection of methods.
 172   * Typical usage is:
 173   *  <code>
 174   *   $analyticsService = new Google_AnalyticsService(...);
 175   *   $customDataSources = $analyticsService->customDataSources;
 176   *  </code>
 177   */
 178  class Google_ManagementCustomDataSourcesServiceResource extends Google_ServiceResource {
 179
 180
 181    /**
 182     * List custom data sources to which the user has access. (customDataSources.list)
 183     *
 184     * @param string $accountId Account Id for the custom data sources to retrieve.
 185     * @param string $webPropertyId Web property Id for the custom data sources to retrieve.
 186     * @param array $optParams Optional parameters.
 187     *
 188     * @opt_param int max-results The maximum number of custom data sources to include in this response.
 189     * @opt_param int start-index A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
 190     * @return Google_CustomDataSources
 191     */
 192    public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array()) {
 193      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
 194      $params = array_merge($params, $optParams);
 195      $data = $this->__call('list', array($params));
 196      if ($this->useObjects()) {
 197        return new Google_CustomDataSources($data);
 198      } else {
 199        return $data;
 200      }
 201    }
 202  }
 203  /**
 204   * The "goals" collection of methods.
 205   * Typical usage is:
 206   *  <code>
 207   *   $analyticsService = new Google_AnalyticsService(...);
 208   *   $goals = $analyticsService->goals;
 209   *  </code>
 210   */
 211  class Google_ManagementGoalsServiceResource extends Google_ServiceResource {
 212
 213
 214    /**
 215     * Lists goals to which the user has access. (goals.list)
 216     *
 217     * @param string $accountId Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
 218     * @param string $webPropertyId Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.
 219     * @param string $profileId Profile ID to retrieve goals for. Can either be a specific profile ID or '~all', which refers to all the profiles that user has access to.
 220     * @param array $optParams Optional parameters.
 221     *
 222     * @opt_param int max-results The maximum number of goals to include in this response.
 223     * @opt_param int start-index An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
 224     * @return Google_Goals
 225     */
 226    public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) {
 227      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
 228      $params = array_merge($params, $optParams);
 229      $data = $this->__call('list', array($params));
 230      if ($this->useObjects()) {
 231        return new Google_Goals($data);
 232      } else {
 233        return $data;
 234      }
 235    }
 236  }
 237  /**
 238   * The "accounts" collection of methods.
 239   * Typical usage is:
 240   *  <code>
 241   *   $analyticsService = new Google_AnalyticsService(...);
 242   *   $accounts = $analyticsService->accounts;
 243   *  </code>
 244   */
 245  class Google_ManagementAccountsServiceResource extends Google_ServiceResource {
 246
 247
 248    /**
 249     * Lists all accounts to which the user has access. (accounts.list)
 250     *
 251     * @param array $optParams Optional parameters.
 252     *
 253     * @opt_param int max-results The maximum number of accounts to include in this response.
 254     * @opt_param int start-index An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
 255     * @return Google_Accounts
 256     */
 257    public function listManagementAccounts($optParams = array()) {
 258      $params = array();
 259      $params = array_merge($params, $optParams);
 260      $data = $this->__call('list', array($params));
 261      if ($this->useObjects()) {
 262        return new Google_Accounts($data);
 263      } else {
 264        return $data;
 265      }
 266    }
 267  }
 268  /**
 269   * The "webproperties" collection of methods.
 270   * Typical usage is:
 271   *  <code>
 272   *   $analyticsService = new Google_AnalyticsService(...);
 273   *   $webproperties = $analyticsService->webproperties;
 274   *  </code>
 275   */
 276  class Google_ManagementWebpropertiesServiceResource extends Google_ServiceResource {
 277
 278
 279    /**
 280     * Lists web properties to which the user has access. (webproperties.list)
 281     *
 282     * @param string $accountId Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
 283     * @param array $optParams Optional parameters.
 284     *
 285     * @opt_param int max-results The maximum number of web properties to include in this response.
 286     * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
 287     * @return Google_Webproperties
 288     */
 289    public function listManagementWebproperties($accountId, $optParams = array()) {
 290      $params = array('accountId' => $accountId);
 291      $params = array_merge($params, $optParams);
 292      $data = $this->__call('list', array($params));
 293      if ($this->useObjects()) {
 294        return new Google_Webproperties($data);
 295      } else {
 296        return $data;
 297      }
 298    }
 299  }
 300
 301  /**
 302   * The "data" collection of methods.
 303   * Typical usage is:
 304   *  <code>
 305   *   $analyticsService = new Google_AnalyticsService(...);
 306   *   $data = $analyticsService->data;
 307   *  </code>
 308   */
 309  class Google_DataServiceResource extends Google_ServiceResource {
 310
 311
 312  }
 313
 314  /**
 315   * The "mcf" collection of methods.
 316   * Typical usage is:
 317   *  <code>
 318   *   $analyticsService = new Google_AnalyticsService(...);
 319   *   $mcf = $analyticsService->mcf;
 320   *  </code>
 321   */
 322  class Google_DataMcfServiceResource extends Google_ServiceResource {
 323
 324
 325    /**
 326     * Returns Analytics Multi-Channel Funnels data for a profile. (mcf.get)
 327     *
 328     * @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics profile ID.
 329     * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
 330     * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
 331     * @param string $metrics A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.
 332     * @param array $optParams Optional parameters.
 333     *
 334     * @opt_param int max-results The maximum number of entries to include in this feed.
 335     * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.
 336     * @opt_param string dimensions A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.
 337     * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
 338     * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to the Analytics data.
 339     * @return Google_McfData
 340     */
 341    public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
 342      $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
 343      $params = array_merge($params, $optParams);
 344      $data = $this->__call('get', array($params));
 345      if ($this->useObjects()) {
 346        return new Google_McfData($data);
 347      } else {
 348        return $data;
 349      }
 350    }
 351  }
 352  /**
 353   * The "ga" collection of methods.
 354   * Typical usage is:
 355   *  <code>
 356   *   $analyticsService = new Google_AnalyticsService(...);
 357   *   $ga = $analyticsService->ga;
 358   *  </code>
 359   */
 360  class Google_DataGaServiceResource extends Google_ServiceResource {
 361
 362
 363    /**
 364     * Returns Analytics data for a profile. (ga.get)
 365     *
 366     * @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics profile ID.
 367     * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
 368     * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
 369     * @param string $metrics A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric must be specified.
 370     * @param array $optParams Optional parameters.
 371     *
 372     * @opt_param int max-results The maximum number of entries to include in this feed.
 373     * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.
 374     * @opt_param string dimensions A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
 375     * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
 376     * @opt_param string segment An Analytics advanced segment to be applied to data.
 377     * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to Analytics data.
 378     * @return Google_GaData
 379     */
 380    public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
 381      $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
 382      $params = array_merge($params, $optParams);
 383      $data = $this->__call('get', array($params));
 384      if ($this->useObjects()) {
 385        return new Google_GaData($data);
 386      } else {
 387        return $data;
 388      }
 389    }
 390  }
 391
 392/**
 393 * Service definition for Google_Analytics (v3).
 394 *
 395 * <p>
 396 * View and manage your Google Analytics data
 397 * </p>
 398 *
 399 * <p>
 400 * For more information about this service, see the
 401 * <a href="https://developers.google.com/analytics/" target="_blank">API Documentation</a>
 402 * </p>
 403 *
 404 * @author Google, Inc.
 405 */
 406class Google_AnalyticsService extends Google_Service {
 407  public $management_dailyUploads;
 408  public $management_segments;
 409  public $management_profiles;
 410  public $management_customDataSources;
 411  public $management_goals;
 412  public $management_accounts;
 413  public $management_webproperties;
 414  public $data_mcf;
 415  public $data_ga;
 416  /**
 417   * Constructs the internal representation of the Analytics service.
 418   *
 419   * @param Google_Client $client
 420   */
 421  public function __construct(Google_Client $client) {
 422    $this->servicePath = 'analytics/v3/';
 423    $this->version = 'v3';
 424    $this->serviceName = 'analytics';
 425
 426    $client->addService($this->serviceName, $this->version);
 427    $this->management_dailyUploads = new Google_ManagementDailyUploadsServiceResource($this, $this->serviceName, 'dailyUploads', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "start-date": {"required": true, "type": "string", "location": "query"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "customDataSourceId": {"required": true, "type": "string", "location": "path"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "end-date": {"required": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.dailyUploads.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads", "response": {"$ref": "DailyUploads"}}, "upload": {"scopes": ["https://www.googleapis.com/auth/analytics"], "parameters": {"reset": {"default": "false", "type": "boolean", "location": "query"}, "customDataSourceId": {"required": true, "type": "string", "location": "path"}, "appendNumber": {"format": "int32", "required": true, "maximum": "20", "minimum": "1", "location": "query", "type": "integer"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "date": {"required": true, "type": "string", "location": "path"}, "type": {"required": true, "type": "string", "location": "query", "enum": ["cost"]}, "accountId": {"required": true, "type": "string", "location": "path"}}, "supportsMediaUpload": true, "mediaUpload": {"maxSize": "5MB", "protocols": {"simple": {"path": "/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads", "multipart": true}, "resumable": {"path": "/resumable/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads", "multipart": true}}, "accept": ["application/octet-stream"]}, "response": {"$ref": "DailyUploadAppend"}, "httpMethod": "POST", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads", "id": "analytics.management.dailyUploads.upload"}, "delete": {"scopes": ["https://www.googleapis.com/auth/analytics"], "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}", "id": "analytics.management.dailyUploads.delete", "parameters": {"date": {"required": true, "type": "string", "location": "path"}, "customDataSourceId": {"required": true, "type": "string", "location": "path"}, "type": {"required": true, "type": "string", "location": "query", "enum": ["cost"]}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
 428    $this->management_segments = new Google_ManagementSegmentsServiceResource($this, $this->serviceName, 'segments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "response": {"$ref": "Segments"}, "httpMethod": "GET", "path": "management/segments", "id": "analytics.management.segments.list"}}}', true));
 429    $this->management_profiles = new Google_ManagementProfilesServiceResource($this, $this->serviceName, 'profiles', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.profiles.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles", "response": {"$ref": "Profiles"}}}}', true));
 430    $this->management_customDataSources = new Google_ManagementCustomDataSourcesServiceResource($this, $this->serviceName, 'customDataSources', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.customDataSources.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources", "response": {"$ref": "CustomDataSources"}}}}', true));
 431    $this->management_goals = new Google_ManagementGoalsServiceResource($this, $this->serviceName, 'goals', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "profileId": {"required": true, "type": "string", "location": "path"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "webPropertyId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.goals.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals", "response": {"$ref": "Goals"}}}}', true));
 432    $this->management_accounts = new Google_ManagementAccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "response": {"$ref": "Accounts"}, "httpMethod": "GET", "path": "management/accounts", "id": "analytics.management.accounts.list"}}}', true));
 433    $this->management_webproperties = new Google_ManagementWebpropertiesServiceResource($this, $this->serviceName, 'webproperties', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "analytics.management.webproperties.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties", "response": {"$ref": "Webproperties"}}}}', true));
 434    $this->data_mcf = new Google_DataMcfServiceResource($this, $this->serviceName, 'mcf', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "sort": {"type": "string", "location": "query"}, "dimensions": {"type": "string", "location": "query"}, "start-date": {"required": true, "type": "string", "location": "query"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "ids": {"required": true, "type": "string", "location": "query"}, "metrics": {"required": true, "type": "string", "location": "query"}, "filters": {"type": "string", "location": "query"}, "end-date": {"required": true, "type": "string", "location": "query"}}, "id": "analytics.data.mcf.get", "httpMethod": "GET", "path": "data/mcf", "response": {"$ref": "McfData"}}}}', true));
 435    $this->data_ga = new Google_DataGaServiceResource($this, $this->serviceName, 'ga', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "int32"}, "sort": {"type": "string", "location": "query"}, "dimensions": {"type": "string", "location": "query"}, "start-date": {"required": true, "type": "string", "location": "query"}, "start-index": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "segment": {"type": "string", "location": "query"}, "ids": {"required": true, "type": "string", "location": "query"}, "metrics": {"required": true, "type": "string", "location": "query"}, "filters": {"type": "string", "location": "query"}, "end-date": {"required": true, "type": "string", "location": "query"}}, "id": "analytics.data.ga.get", "httpMethod": "GET", "path": "data/ga", "response": {"$ref": "GaData"}}}}', true));
 436
 437  }
 438}
 439
 440class Google_Account extends Google_Model {
 441  public $kind;
 442  public $name;
 443  public $created;
 444  public $updated;
 445  protected $__childLinkType = 'Google_AccountChildLink';
 446  protected $__childLinkDataType = '';
 447  public $childLink;
 448  public $id;
 449  public $selfLink;
 450  public function setKind($kind) {
 451    $this->kind = $kind;
 452  }
 453  public function getKind() {
 454    return $this->kind;
 455  }
 456  public function setName($name) {
 457    $this->name = $name;
 458  }
 459  public function getName() {
 460    return $this->name;
 461  }
 462  public function setCreated($created) {
 463    $this->created = $created;
 464  }
 465  public function getCreated() {
 466    return $this->created;
 467  }
 468  public function setUpdated($updated) {
 469    $this->updated = $updated;
 470  }
 471  public function getUpdated() {
 472    return $this->updated;
 473  }
 474  public function setChildLink(Google_AccountChildLink $childLink) {
 475    $this->childLink = $childLink;
 476  }
 477  public function getChildLink() {
 478    return $this->childLink;
 479  }
 480  public function setId($id) {
 481    $this->id = $id;
 482  }
 483  public function getId() {
 484    return $this->id;
 485  }
 486  public function setSelfLink($selfLink) {
 487    $this->selfLink = $selfLink;
 488  }
 489  public function getSelfLink() {
 490    return $this->selfLink;
 491  }
 492}
 493
 494class Google_AccountChildLink extends Google_Model {
 495  public $href;
 496  public $type;
 497  public function setHref($href) {
 498    $this->href = $href;
 499  }
 500  public function getHref() {
 501    return $this->href;
 502  }
 503  public function setType($type) {
 504    $this->type = $type;
 505  }
 506  public function getType() {
 507    return $this->type;
 508  }
 509}
 510
 511class Google_Accounts extends Google_Model {
 512  public $username;
 513  public $kind;
 514  protected $__itemsType = 'Google_Account';
 515  protected $__itemsDataType = 'array';
 516  public $items;
 517  public $itemsPerPage;
 518  public $previousLink;
 519  public $startIndex;
 520  public $nextLink;
 521  public $totalResults;
 522  public function setUsername($username) {
 523    $this->username = $username;
 524  }
 525  public function getUsername() {
 526    return $this->username;
 527  }
 528  public function setKind($kind) {
 529    $this->kind = $kind;
 530  }
 531  public function getKind() {
 532    return $this->kind;
 533  }
 534  public function setItems(/* array(Google_Account) */ $items) {
 535    $this->assertIsArray($items, 'Google_Account', __METHOD__);
 536    $this->items = $items;
 537  }
 538  public function getItems() {
 539    return $this->items;
 540  }
 541  public function setItemsPerPage($itemsPerPage) {
 542    $this->itemsPerPage = $itemsPerPage;
 543  }
 544  public function getItemsPerPage() {
 545    return $this->itemsPerPage;
 546  }
 547  public function setPreviousLink($previousLink) {
 548    $this->previousLink = $previousLink;
 549  }
 550  public function getPreviousLink() {
 551    return $this->previousLink;
 552  }
 553  public function setStartIndex($startIndex) {
 554    $this->startIndex = $startIndex;
 555  }
 556  public function getStartIndex() {
 557    return $this->startIndex;
 558  }
 559  public function setNextLink($nextLink) {
 560    $this->nextLink = $nextLink;
 561  }
 562  public function getNextLink() {
 563    return $this->nextLink;
 564  }
 565  public function setTotalResults($totalResults) {
 566    $this->totalResults = $totalResults;
 567  }
 568  public function getTotalResults() {
 569    return $this->totalResults;
 570  }
 571}
 572
 573class Google_CustomDataSource extends Google_Model {
 574  public $kind;
 575  public $description;
 576  public $created;
 577  public $profilesLinked;
 578  public $updated;
 579  public $name;
 580  protected $__childLinkType = 'Google_CustomDataSourceChildLink';
 581  protected $__childLinkDataType = '';
 582  public $childLink;
 583  public $webPropertyId;
 584  protected $__parentLinkType = 'Google_CustomDataSourceParentLink';
 585  protected $__parentLinkDataType = '';
 586  public $parentLink;
 587  public $id;
 588  public $selfLink;
 589  public $accountId;
 590  public function setKind($kind) {
 591    $this->kind = $kind;
 592  }
 593  public function getKind() {
 594    return $this->kind;
 595  }
 596  public function setDescription($description) {
 597    $this->description = $description;
 598  }
 599  public function getDescription() {
 600    return $this->description;
 601  }
 602  public function setCreated($created) {
 603    $this->created = $created;
 604  }
 605  public function getCreated() {
 606    return $this->created;
 607  }
 608  public function setProfilesLinked($profilesLinked) {
 609    $this->profilesLinked = $profilesLinked;
 610  }
 611  public function getProfilesLinked() {
 612    return $this->profilesLinked;
 613  }
 614  public function setUpdated($updated) {
 615    $this->updated = $updated;
 616  }
 617  public function getUpdated() {
 618    return $this->updated;
 619  }
 620  public function setName($name) {
 621    $this->name = $name;
 622  }
 623  public function getName() {
 624    return $this->name;
 625  }
 626  public function setChildLink(Google_CustomDataSourceChildLink $childLink) {
 627    $this->childLink = $childLink;
 628  }
 629  public function getChildLink() {
 630    return $this->childLink;
 631  }
 632  public function setWebPropertyId($webPropertyId) {
 633    $this->webPropertyId = $webPropertyId;
 634  }
 635  public function getWebPropertyId() {
 636    return $this->webPropertyId;
 637  }
 638  public function setParentLink(Google_CustomDataSourceParentLink $parentLink) {
 639    $this->parentLink = $parentLink;
 640  }
 641  public function getParentLink() {
 642    return $this->parentLink;
 643  }
 644  public function setId($id) {
 645    $this->id = $id;
 646  }
 647  public function getId() {
 648    return $this->id;
 649  }
 650  public function setSelfLink($selfLink) {
 651    $this->selfLink = $selfLink;
 652  }
 653  public function getSelfLink() {
 654    return $this->selfLink;
 655  }
 656  public function setAccountId($accountId) {
 657    $this->accountId = $accountId;
 658  }
 659  public function getAccountId() {
 660    return $this->accountId;
 661  }
 662}
 663
 664class Google_CustomDataSourceChildLink extends Google_Model {
 665  public $href;
 666  public $type;
 667  public function setHref($href) {
 668    $this->href = $href;
 669  }
 670  public function getHref() {
 671    return $this->href;
 672  }
 673  public function setType($type) {
 674    $this->type = $type;
 675  }
 676  public function getType() {
 677    return $this->type;
 678  }
 679}
 680
 681class Google_CustomDataSourceParentLink extends Google_Model {
 682  public $href;
 683  public $type;
 684  public function setHref($href) {
 685    $this->href = $href;
 686  }
 687  public function getHref() {
 688    return $this->href;
 689  }
 690  public function setType($type) {
 691    $this->type = $type;
 692  }
 693  public function getType() {
 694    return $this->type;
 695  }
 696}
 697
 698class Google_CustomDataSources extends Google_Model {
 699  public $username;
 700  public $kind;
 701  protected $__itemsType = 'Google_CustomDataSource';
 702  protected $__itemsDataType = 'array';
 703  public $items;
 704  public $itemsPerPage;
 705  public $previousLink;
 706  public $startIndex;
 707  public $nextLink;
 708  public $totalResults;
 709  public function setUsername($username) {
 710    $this->username = $username;
 711  }
 712  public function getUsername() {
 713    return $this->username;
 714  }
 715  public function setKind($kind) {
 716    $this->kind = $kind;
 717  }
 718  public function getKind() {
 719    return $this->kind;
 720  }
 721  public function setItems(/* array(Google_CustomDataSource) */ $items) {
 722    $this->assertIsArray($items, 'Google_CustomDataSource', __METHOD__);
 723    $this->items = $items;
 724  }
 725  public function getItems() {
 726    return $this->items;
 727  }
 728  public function setItemsPerPage($itemsPerPage) {
 729    $this->itemsPerPage = $itemsPerPage;
 730  }
 731  public function getItemsPerPage() {
 732    return $this->itemsPerPage;
 733  }
 734  public function setPreviousLink($previousLink) {
 735    $this->previousLink = $previousLink;
 736  }
 737  public function getPreviousLink() {
 738    return $this->previousLink;
 739  }
 740  public function setStartIndex($startIndex) {
 741    $this->startIndex = $startIndex;
 742  }
 743  public function getStartIndex() {
 744    return $this->startIndex;
 745  }
 746  public function setNextLink($nextLink) {
 747    $this->nextLink = $nextLink;
 748  }
 749  public function getNextLink() {
 750    return $this->nextLink;
 751  }
 752  public function setTotalResults($totalResults) {
 753    $this->totalResults = $totalResults;
 754  }
 755  public function getTotalResults() {
 756    return $this->totalResults;
 757  }
 758}
 759
 760class Google_DailyUpload extends Google_Model {
 761  protected $__recentChangesType = 'Google_DailyUploadRecentChanges';
 762  protected $__recentChangesDataType = 'array';
 763  public $recentChanges;
 764  public $kind;
 765  public $modifiedTime;
 766  public $appendCount;
 767  public $customDataSourceId;
 768  public $date;
 769  public $webPropertyId;
 770  public $createdTime;
 771  protected $__parentLinkType = 'Google_DailyUploadParentLink';
 772  protected $__parentLinkDataType = '';
 773  public $parentLink;
 774  public $selfLink;
 775  public $accountId;
 776  public function setRecentChanges(/* array(Google_DailyUploadRecentChanges) */ $recentChanges) {
 777    $this->assertIsArray($recentChanges, 'Google_DailyUploadRecentChanges', __METHOD__);
 778    $this->recentChanges = $recentChanges;
 779  }
 780  public function getRecentChanges() {
 781    return $this->recentChanges;
 782  }
 783  public function setKind($kind) {
 784    $this->kind = $kind;
 785  }
 786  public function getKind() {
 787    return $this->kind;
 788  }
 789  public function setModifiedTime($modifiedTime) {
 790    $this->modifiedTime = $modifiedTime;
 791  }
 792  public function getModifiedTime() {
 793    return $this->modifiedTime;
 794  }
 795  public function setAppendCount($appendCount) {
 796    $this->appendCount = $appendCount;
 797  }
 798  public function getAppendCount() {
 799    return $this->appendCount;
 800  }
 801  public function setCustomDataSourceId($customDataSourceId) {
 802    $this->customDataSourceId = $customDataSourceId;
 803  }
 804  public function getCustomDataSourceId() {
 805    return $this->customDataSourceId;
 806  }
 807  public function setDate($date) {
 808    $this->date = $date;
 809  }
 810  public function getDate() {
 811    return $this->date;
 812  }
 813  public function setWebPropertyId($webPropertyId) {
 814    $this->webPropertyId = $webPropertyId;
 815  }
 816  public function getWebPropertyId() {
 817    return $this->webPropertyId;
 818  }
 819  public function setCreatedTime($createdTime) {
 820    $this->createdTime = $createdTime;
 821  }
 822  public function getCreatedTime() {
 823    return $this->createdTime;
 824  }
 825  public function setParentLink(Google_DailyUploadParentLink $parentLink) {
 826    $this->parentLink = $parentLink;
 827  }
 828  public function getParentLink() {
 829    return $this->parentLink;
 830  }
 831  public function setSelfLink($selfLink) {
 832    $this->selfLink = $selfLink;
 833  }
 834  public function getSelfLink() {
 835    return $this->selfLink;
 836  }
 837  public function setAccountId($accountId) {
 838    $this->accountId = $accountId;
 839  }
 840  public function getAccountId() {
 841    return $this->accountId;
 842  }
 843}
 844
 845class Google_DailyUploadAppend extends Google_Model {
 846  public $kind;
 847  public $customDataSourceId;
 848  public $appendNumber;
 849  public $webPropertyId;
 850  public $date;
 851  public $nextAppendLink;
 852  public $accountId;
 853  public function setKind($kind) {
 854    $this->kind = $kind;
 855  }
 856  public function getKind() {
 857    return $this->kind;
 858  }
 859  public function setCustomDataSourceId($customDataSourceId) {
 860    $this->customDataSourceId = $customDataSourceId;
 861  }
 862  public function getCustomDataSourceId() {
 863    return $this->customDataSourceId;
 864  }
 865  public function setAppendNumber($appendNumber) {
 866    $this->appendNumber = $appendNumber;
 867  }
 868  public function getAppendNumber() {
 869    return $this->appendNumber;
 870  }
 871  public function setWebPropertyId($webPropertyId) {
 872    $this->webPropertyId = $webPropertyId;
 873  }
 874  public function getWebPropertyId() {
 875    return $this->webPropertyId;
 876  }
 877  public function setDate($date) {
 878    $this->date = $date;
 879  }
 880  public function getDate() {
 881    return $this->date;
 882  }
 883  public function setNextAppendLink($nextAppendLink) {
 884    $this->nextAppendLink = $nextAppendLink;
 885  }
 886  public function getNextAppendLink() {
 887    return $this->nextAppendLink;
 888  }
 889  public function setAccountId($accountId) {
 890    $this->accountId = $accountId;
 891  }
 892  public function getAccountId() {
 893    return $this->accountId;
 894  }
 895}
 896
 897class Google_DailyUploadParentLink extends Google_Model {
 898  public $href;
 899  public $type;
 900  public function setHref($href) {
 901    $this->href = $href;
 902  }
 903  public function getHref() {
 904    return $this->href;
 905  }
 906  public function setType($type) {
 907    $this->type = $type;
 908  }
 909  public function getType() {
 910    return $this->type;
 911  }
 912}
 913
 914class Google_DailyUploadRecentChanges extends Google_Model {
 915  public $change;
 916  public $time;
 917  public function setChange($change) {
 918    $this->change = $change;
 919  }
 920  public function getChange() {
 921    return $this->change;
 922  }
 923  public function setTime($time) {
 924    $this->time = $time;
 925  }
 926  public function getTime() {
 927    return $this->time;
 928  }
 929}
 930
 931class Google_DailyUploads extends Google_Model {
 932  public $username;
 933  public $kind;
 934  protected $__itemsType = 'Google_DailyUpload';
 935  protected $__itemsDataType = 'array';
 936  public $items;
 937  public $itemsPerPage;
 938  public $previousLink;
 939  public $startIndex;
 940  public $nextLink;
 941  public $totalResults;
 942  public function setUsername($username) {
 943    $this->username = $username;
 944  }
 945  public function getUsername() {
 946    return $this->username;
 947  }
 948  public function setKind($kind) {
 949    $this->kind = $kind;
 950  }
 951  public function getKind() {
 952    return $this->kind;
 953  }
 954  public function setItems(/* array(Google_DailyUpload) */ $items) {
 955    $this->assertIsArray($items, 'Google_DailyUpload', __METHOD__);
 956    $this->items = $items;
 957  }
 958  public function getItems() {
 959    return $this->items;
 960  }
 961  public function setItemsPerPage($itemsPerPage) {
 962    $this->itemsPerPage = $itemsPerPage;
 963  }
 964  public function getItemsPerPage() {
 965    return $this->itemsPerPage;
 966  }
 967  public function setPreviousLink($previousLink) {
 968    $this->previousLink = $previousLink;
 969  }
 970  public function getPreviousLink() {
 971    return $this->previousLink;
 972  }
 973  public function setStartIndex($startIndex) {
 974    $this->startIndex = $startIndex;
 975  }
 976  public function getStartIndex() {
 977    return $this->startIndex;
 978  }
 979  public function setNextLink($nextLink) {
 980    $this->nextLink = $nextLink;
 981  }
 982  public function getNextLink() {
 983    return $this->nextLink;
 984  }
 985  public function setTotalResults($totalResults) {
 986    $this->totalResults = $totalResults;
 987  }
 988  public function getTotalResults() {
 989    return $this->totalResults;
 990  }
 991}
 992
 993class Google_GaData extends Google_Model {
 994  public $kind;
 995  public $rows;
 996  public $containsSampledData;
 997  public $totalResults;
 998  public $itemsPerPage;
 999  public $totalsForAllResults;
1000  public $nextLink;
1001  public $id;
1002  protected $__queryType = 'Google_GaDataQuery';
1003  protected $__queryDataType = '';
1004  public $query;
1005  public $previousLink;
1006  protected $__profileInfoType = 'Google_GaDataProfileInfo';
1007  protected $__profileInfoDataType = '';
1008  public $profileInfo;
1009  protected $__columnHeadersType = 'Google_GaDataColumnHeaders';
1010  protected $__columnHeadersDataType = 'array';
1011  public $columnHeaders;
1012  public $selfLink;
1013  public function setKind($kind) {
1014    $this->kind = $kind;
1015  }
1016  public function getKind() {
1017    return $this->kind;
1018  }
1019  public function setRows($rows) {
1020    $this->rows = $rows;
1021  }
1022  public function getRows() {
1023    return $this->rows;
1024  }
1025  public function setContainsSampledData($containsSampledData) {
1026    $this->containsSampledData = $containsSampledData;
1027  }
1028  public function getContainsSampledData() {
1029    return $this->containsSampledData;
1030  }
1031  public function setTotalResults($totalResults) {
1032    $this->totalResults = $totalResults;
1033  }
1034  public function getTotalResults() {
1035    return $this->totalResults;
1036  }
1037  public function setItemsPerPage($itemsPerPage) {
1038    $this->itemsPerPage = $itemsPerPage;
1039  }
1040  public function getItemsPerPage() {
1041    return $this->itemsPerPage;
1042  }
1043  public function setTotalsForAllResults($totalsForAllResults) {
1044    $this->totalsForAllResults = $totalsForAllResults;
1045  }
1046  public function getTotalsForAllResults() {
1047    return $this->totalsForAllResults;
1048  }
1049  public function setNextLink($nextLink) {
1050    $this->nextLink = $nextLink;
1051  }
1052  public function getNextLink() {
1053    return $this->nextLink;
1054  }
1055  public function setId($id) {
1056    $this->id = $id;
1057  }
1058  public function getId() {
1059    return $this->id;
1060  }
1061  public function setQuery(Google_GaDataQuery $query) {
1062    $this->query = $query;
1063  }
1064  public function getQuery() {
1065    return $this->query;
1066  }
1067  public function setPreviousLink($previousLink) {
1068    $this->previousLink = $previousLink;
1069  }
1070  public function getPreviousLink() {
1071    return $this->previousLink;
1072  }
1073  public function setProfileInfo(Google_GaDataProfileInfo $profileInfo) {
1074    $this->profileInfo = $profileInfo;
1075  }
1076  public function getProfileInfo() {
1077    return $this->profileInfo;
1078  }
1079  public function setColumnHeaders(/* array(Google_GaDataColumnHeaders) */ $columnHeaders) {
1080    $this->assertIsArray($columnHeaders, 'Google_GaDataColumnHeaders', __METHOD__);
1081    $this->columnHeaders = $columnHeaders;
1082  }
1083  public function getColumnHeaders() {
1084    return $this->columnHeaders;
1085  }
1086  public function setSelfLink($selfLink) {
1087    $this->selfLink = $selfLink;
1088  }
1089  public function getSelfLink() {
1090    return $this->selfLink;
1091  }
1092}
1093
1094class Google_GaDataColumnHeaders extends Google_Model {
1095  public $dataType;
1096  public $columnType;
1097  public $name;
1098  public function setDataType($dataType) {
1099    $this->dataType = $dataType;
1100  }
1101  public function getDataType() {
1102    return $this->dataType;
1103  }
1104  public function setColumnType($columnType) {
1105    $this->columnType = $columnType;
1106  }
1107  public function getColumnType() {
1108    return $this->columnType;
1109  }
1110  public function setName($name) {
1111    $this->name = $name;
1112  }
1113  public function getName() {
1114    return $this->name;
1115  }
1116}
1117
1118class Google_GaDataProfileInfo extends Google_Model {
1119  public $webPropertyId;
1120  public $internalWebPropertyId;
1121  public $tableId;
1122  public $profileId;
1123  public $profileName;
1124  public $accountId;
1125  public function setWebPropertyId($webPropertyId) {
1126    $this->webPropertyId = $webPropertyId;
1127  }
1128  public function getWebPropertyId() {
1129    return $this->webPropertyId;
1130  }
1131  public function setInternalWebPropertyId($internalWebPropertyId) {
1132    $this->internalWebPropertyId = $internalWebPropertyId;
1133  }
1134  public function getInternalWebPropertyId() {
1135    return $this->internalWebPropertyId;
1136  }
1137  public function setTableId($tableId) {
1138    $this->tableId = $tableId;
1139  }
1140  public function getTableId() {
1141    return $this->tableId;
1142  }
1143  public function setProfileId($profileId) {
1144    $this->profileId = $profileId;
1145  }
1146  public function getProfileId() {
1147    return $this->profileId;
1148  }
1149  public function setProfileName($profileName) {
1150    $this->profileName = $profileName;
1151  }
1152  public function getProfileName() {
1153    return $this->profileName;
1154  }
1155  public function setAccountId($accountId) {
1156    $this->accountId = $accountId;
1157  }
1158  public function getAccountId() {
1159    return $this->accountId;
1160  }
1161}
1162
1163class Google_GaDataQuery extends Google_Model {
1164  public $max_results;
1165  public $sort;
1166  public $dimensions;
1167  public $start_date;
1168  public $start_index;
1169  public $segment;
1170  public $ids;
1171  public $metrics;
1172  public $filters;
1173  public $end_date;
1174  public function setMax_results($max_results) {
1175    $this->max_results = $max_results;
1176  }
1177  public function getMax_results() {
1178    return $this->max_results;
1179  }
1180  public function setSort($sort) {
1181    $this->sort = $sort;
1182  }
1183  public function getSort() {
1184    return $this->sort;
1185  }
1186  public function setDimensions($dimensions) {
1187    $this->dimensions = $dimensions;
1188  }
1189  public function getDimensions() {
1190    return $this->dimensions;
1191  }
1192  public function setStart_date($start_date) {
1193    $this->start_date = $start_date;
1194  }
1195  public function getStart_date() {
1196    return $this->start_date;
1197  }
1198  public function setStart_index($start_index) {
1199    $this->start_index = $start_index;
1200  }
1201  public function getStart_index() {
1202    return $this->start_index;
1203  }
1204  public function setSegment($segment) {
1205    $this->segment = $segment;
1206  }
1207  public function getSegment() {
1208    return $this->segment;
1209  }
1210  public function setIds($ids) {
1211    $this->ids = $ids;
1212  }
1213  public function getIds() {
1214    return $this->ids;
1215  }
1216  public function setMetrics($metrics) {
1217    $this->metrics = $metrics;
1218  }
1219  public function getMetrics() {
1220    return $this->metrics;
1221  }
1222  public function setFilters($filters) {
1223    $this->filters = $filters;
1224  }
1225  public function getFilters() {
1226    return $this->filters;
1227  }
1228  public function setEnd_date($end_date) {
1229    $this->end_date = $end_date;
1230  }
1231  public function getEnd_date() {
1232    return $this->end_date;
1233  }
1234}
1235
1236class Google_Goal extends Google_Model {
1237  public $kind;
1238  protected $__visitTimeOnSiteDetailsType = 'Google_GoalVisitTimeOnSiteDetails';
1239  protected $__visitTimeOnSiteDetailsDataType = '';
1240  public $visitTimeOnSiteDetails;
1241  public $name;
1242  public $created;
1243  protected $__urlDestinationDetailsType = 'Google_GoalUrlDestinationDetails';
1244  protected $__urlDestinationDetailsDataType = '';
1245  public $urlDestinationDetails;
1246  public $updated;
1247  public $value;
1248  protected $__visitNumPagesDetailsType = 'Google_GoalVisitNumPagesDetails';
1249  protected $__visitNumPagesDetailsDataType = '';
1250  public $visitNumPagesDetails;
1251  public $internalWebPropertyId;
1252  protected $__eventDetailsType = 'Google_GoalEventDetails';
1253  protected $__eventDetailsDataType = '';
1254  public $eventDetails;
1255  public $webPropertyId;
1256  public $active;
1257  public $profileId;
1258  protected $__parentLinkType = 'Google_GoalParentLink';
1259  protected $__parentLinkDataType = '';
1260  public $parentLink;
1261  public $type;
1262  public $id;
1263  public $selfLink;
1264  public $accountId;
1265  public function setKind($kind) {
1266    $this->kind = $kind;
1267  }
1268  public function getKind() {
1269    return $this->kind;
1270  }
1271  public function setVisitTimeOnSiteDetails(Google_GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails) {
1272    $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails;
1273  }
1274  public function getVisitTimeOnSiteDetails() {
1275    return $this->visitTimeOnSiteDetails;
1276  }
1277  public function setName($name) {
1278    $this->name = $name;
1279  }
1280  public function getName() {
1281    return $this->name;
1282  }
1283  public function setCreated($created) {
1284    $…

Large files files are truncated, but you can click here to view the full file