Initial commit

This commit is contained in:
Caribana
2017-05-26 11:41:26 +02:00
commit 61c24500af
6264 changed files with 645934 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "data" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $data = $analyticsService->data;
* </code>
*/
class Google_Service_Analytics_Resource_Data extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "ga" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $ga = $analyticsService->ga;
* </code>
*/
class Google_Service_Analytics_Resource_DataGa extends Google_Service_Resource
{
/**
* Returns Analytics data for a view (profile). (ga.get)
*
* @param string $ids Unique table ID for retrieving Analytics data. Table ID is
* of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
* @param string $startDate Start date for fetching Analytics data. Requests can
* specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g.,
* today, yesterday, or 7daysAgo). The default value is 7daysAgo.
* @param string $endDate End date for fetching Analytics data. Request can
* should specify an end date formatted as YYYY-MM-DD, or as a relative date
* (e.g., today, yesterday, or 7daysAgo). The default value is yesterday.
* @param string $metrics A comma-separated list of Analytics metrics. E.g.,
* 'ga:sessions,ga:pageviews'. At least one metric must be specified.
* @param array $optParams Optional parameters.
*
* @opt_param string dimensions A comma-separated list of Analytics dimensions.
* E.g., 'ga:browser,ga:city'.
* @opt_param string filters A comma-separated list of dimension or metric
* filters to be applied to Analytics data.
* @opt_param bool include-empty-rows The response will include empty rows if
* this parameter is set to true, the default is true
* @opt_param int max-results The maximum number of entries to include in this
* feed.
* @opt_param string output The selected format for the response. Default format
* is JSON.
* @opt_param string samplingLevel The desired sampling level.
* @opt_param string segment An Analytics segment to be applied to data.
* @opt_param string sort A comma-separated list of dimensions or metrics that
* determine the sort order for Analytics data.
* @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.
* @return Google_Service_Analytics_GaData
*/
public function get($ids, $startDate, $endDate, $metrics, $optParams = array())
{
$params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_GaData");
}
}

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "mcf" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $mcf = $analyticsService->mcf;
* </code>
*/
class Google_Service_Analytics_Resource_DataMcf extends Google_Service_Resource
{
/**
* Returns Analytics Multi-Channel Funnels data for a view (profile). (mcf.get)
*
* @param string $ids Unique table ID for retrieving Analytics data. Table ID is
* of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
* @param string $startDate Start date for fetching Analytics data. Requests can
* specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g.,
* today, yesterday, or 7daysAgo). The default value is 7daysAgo.
* @param string $endDate End date for fetching Analytics data. Requests can
* specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g.,
* today, yesterday, or 7daysAgo). The default value is 7daysAgo.
* @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.
* @param array $optParams Optional parameters.
*
* @opt_param string dimensions A comma-separated list of Multi-Channel Funnels
* dimensions. E.g., 'mcf:source,mcf:medium'.
* @opt_param string filters A comma-separated list of dimension or metric
* filters to be applied to the Analytics data.
* @opt_param int max-results The maximum number of entries to include in this
* feed.
* @opt_param string samplingLevel The desired sampling level.
* @opt_param string sort A comma-separated list of dimensions or metrics that
* determine the sort order for the Analytics data.
* @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.
* @return Google_Service_Analytics_McfData
*/
public function get($ids, $startDate, $endDate, $metrics, $optParams = array())
{
$params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_McfData");
}
}

View File

@@ -0,0 +1,53 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "realtime" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $realtime = $analyticsService->realtime;
* </code>
*/
class Google_Service_Analytics_Resource_DataRealtime extends Google_Service_Resource
{
/**
* Returns real time data for a view (profile). (realtime.get)
*
* @param string $ids Unique table ID for retrieving real time data. Table ID is
* of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
* @param string $metrics A comma-separated list of real time metrics. E.g.,
* 'rt:activeUsers'. At least one metric must be specified.
* @param array $optParams Optional parameters.
*
* @opt_param string dimensions A comma-separated list of real time dimensions.
* E.g., 'rt:medium,rt:city'.
* @opt_param string filters A comma-separated list of dimension or metric
* filters to be applied to real time data.
* @opt_param int max-results The maximum number of entries to include in this
* feed.
* @opt_param string sort A comma-separated list of dimensions or metrics that
* determine the sort order for real time data.
* @return Google_Service_Analytics_RealtimeData
*/
public function get($ids, $metrics, $optParams = array())
{
$params = array('ids' => $ids, 'metrics' => $metrics);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_RealtimeData");
}
}

View File

@@ -0,0 +1,28 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "management" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $management = $analyticsService->management;
* </code>
*/
class Google_Service_Analytics_Resource_Management extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,47 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "accountSummaries" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $accountSummaries = $analyticsService->accountSummaries;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementAccountSummaries extends Google_Service_Resource
{
/**
* Lists account summaries (lightweight tree comprised of
* accounts/properties/profiles) to which the user has access.
* (accountSummaries.listManagementAccountSummaries)
*
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of account summaries to include
* in this response, where the largest acceptable value is 1000.
* @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.
* @return Google_Service_Analytics_AccountSummaries
*/
public function listManagementAccountSummaries($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_AccountSummaries");
}
}

View File

@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "accountUserLinks" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $accountUserLinks = $analyticsService->accountUserLinks;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementAccountUserLinks extends Google_Service_Resource
{
/**
* Removes a user from the given account. (accountUserLinks.delete)
*
* @param string $accountId Account ID to delete the user link for.
* @param string $linkId Link ID to delete the user link for.
* @param array $optParams Optional parameters.
*/
public function delete($accountId, $linkId, $optParams = array())
{
$params = array('accountId' => $accountId, 'linkId' => $linkId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Adds a new user to the given account. (accountUserLinks.insert)
*
* @param string $accountId Account ID to create the user link for.
* @param Google_Service_Analytics_EntityUserLink $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_EntityUserLink
*/
public function insert($accountId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink");
}
/**
* Lists account-user links for a given account.
* (accountUserLinks.listManagementAccountUserLinks)
*
* @param string $accountId Account ID to retrieve the user links for.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of account-user links to
* include in this response.
* @opt_param int start-index An index of the first account-user link to
* retrieve. Use this parameter as a pagination mechanism along with the max-
* results parameter.
* @return Google_Service_Analytics_EntityUserLinks
*/
public function listManagementAccountUserLinks($accountId, $optParams = array())
{
$params = array('accountId' => $accountId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks");
}
/**
* Updates permissions for an existing user on the given account.
* (accountUserLinks.update)
*
* @param string $accountId Account ID to update the account-user link for.
* @param string $linkId Link ID to update the account-user link for.
* @param Google_Service_Analytics_EntityUserLink $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_EntityUserLink
*/
public function update($accountId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'linkId' => $linkId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink");
}
}

View File

@@ -0,0 +1,47 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $accounts = $analyticsService->accounts;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementAccounts extends Google_Service_Resource
{
/**
* Lists all accounts to which the user has access.
* (accounts.listManagementAccounts)
*
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of accounts to include in this
* response.
* @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.
* @return Google_Service_Analytics_Accounts
*/
public function listManagementAccounts($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_Accounts");
}
}

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "customDataSources" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $customDataSources = $analyticsService->customDataSources;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementCustomDataSources extends Google_Service_Resource
{
/**
* List custom data sources to which the user has access.
* (customDataSources.listManagementCustomDataSources)
*
* @param string $accountId Account Id for the custom data sources to retrieve.
* @param string $webPropertyId Web property Id for the custom data sources to
* retrieve.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of custom data sources to
* include in this response.
* @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.
* @return Google_Service_Analytics_CustomDataSources
*/
public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_CustomDataSources");
}
}

View File

@@ -0,0 +1,126 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "customDimensions" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $customDimensions = $analyticsService->customDimensions;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementCustomDimensions extends Google_Service_Resource
{
/**
* Get a custom dimension to which the user has access. (customDimensions.get)
*
* @param string $accountId Account ID for the custom dimension to retrieve.
* @param string $webPropertyId Web property ID for the custom dimension to
* retrieve.
* @param string $customDimensionId The ID of the custom dimension to retrieve.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_CustomDimension
*/
public function get($accountId, $webPropertyId, $customDimensionId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_CustomDimension");
}
/**
* Create a new custom dimension. (customDimensions.insert)
*
* @param string $accountId Account ID for the custom dimension to create.
* @param string $webPropertyId Web property ID for the custom dimension to
* create.
* @param Google_Service_Analytics_CustomDimension $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_CustomDimension
*/
public function insert($accountId, $webPropertyId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_CustomDimension");
}
/**
* Lists custom dimensions to which the user has access.
* (customDimensions.listManagementCustomDimensions)
*
* @param string $accountId Account ID for the custom dimensions to retrieve.
* @param string $webPropertyId Web property ID for the custom dimensions to
* retrieve.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of custom dimensions to include
* in this response.
* @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.
* @return Google_Service_Analytics_CustomDimensions
*/
public function listManagementCustomDimensions($accountId, $webPropertyId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_CustomDimensions");
}
/**
* Updates an existing custom dimension. This method supports patch semantics.
* (customDimensions.patch)
*
* @param string $accountId Account ID for the custom dimension to update.
* @param string $webPropertyId Web property ID for the custom dimension to
* update.
* @param string $customDimensionId Custom dimension ID for the custom dimension
* to update.
* @param Google_Service_Analytics_CustomDimension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any
* warnings related to the custom dimension being linked to a custom data source
* / data set.
* @return Google_Service_Analytics_CustomDimension
*/
public function patch($accountId, $webPropertyId, $customDimensionId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Analytics_CustomDimension");
}
/**
* Updates an existing custom dimension. (customDimensions.update)
*
* @param string $accountId Account ID for the custom dimension to update.
* @param string $webPropertyId Web property ID for the custom dimension to
* update.
* @param string $customDimensionId Custom dimension ID for the custom dimension
* to update.
* @param Google_Service_Analytics_CustomDimension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any
* warnings related to the custom dimension being linked to a custom data source
* / data set.
* @return Google_Service_Analytics_CustomDimension
*/
public function update($accountId, $webPropertyId, $customDimensionId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Analytics_CustomDimension");
}
}

View File

@@ -0,0 +1,124 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "customMetrics" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $customMetrics = $analyticsService->customMetrics;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementCustomMetrics extends Google_Service_Resource
{
/**
* Get a custom metric to which the user has access. (customMetrics.get)
*
* @param string $accountId Account ID for the custom metric to retrieve.
* @param string $webPropertyId Web property ID for the custom metric to
* retrieve.
* @param string $customMetricId The ID of the custom metric to retrieve.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_CustomMetric
*/
public function get($accountId, $webPropertyId, $customMetricId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_CustomMetric");
}
/**
* Create a new custom metric. (customMetrics.insert)
*
* @param string $accountId Account ID for the custom metric to create.
* @param string $webPropertyId Web property ID for the custom dimension to
* create.
* @param Google_Service_Analytics_CustomMetric $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_CustomMetric
*/
public function insert($accountId, $webPropertyId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_CustomMetric");
}
/**
* Lists custom metrics to which the user has access.
* (customMetrics.listManagementCustomMetrics)
*
* @param string $accountId Account ID for the custom metrics to retrieve.
* @param string $webPropertyId Web property ID for the custom metrics to
* retrieve.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of custom metrics to include in
* this response.
* @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.
* @return Google_Service_Analytics_CustomMetrics
*/
public function listManagementCustomMetrics($accountId, $webPropertyId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_CustomMetrics");
}
/**
* Updates an existing custom metric. This method supports patch semantics.
* (customMetrics.patch)
*
* @param string $accountId Account ID for the custom metric to update.
* @param string $webPropertyId Web property ID for the custom metric to update.
* @param string $customMetricId Custom metric ID for the custom metric to
* update.
* @param Google_Service_Analytics_CustomMetric $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any
* warnings related to the custom metric being linked to a custom data source /
* data set.
* @return Google_Service_Analytics_CustomMetric
*/
public function patch($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Analytics_CustomMetric");
}
/**
* Updates an existing custom metric. (customMetrics.update)
*
* @param string $accountId Account ID for the custom metric to update.
* @param string $webPropertyId Web property ID for the custom metric to update.
* @param string $customMetricId Custom metric ID for the custom metric to
* update.
* @param Google_Service_Analytics_CustomMetric $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any
* warnings related to the custom metric being linked to a custom data source /
* data set.
* @return Google_Service_Analytics_CustomMetric
*/
public function update($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Analytics_CustomMetric");
}
}

View File

@@ -0,0 +1,132 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "experiments" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $experiments = $analyticsService->experiments;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementExperiments extends Google_Service_Resource
{
/**
* Delete an experiment. (experiments.delete)
*
* @param string $accountId Account ID to which the experiment belongs
* @param string $webPropertyId Web property ID to which the experiment belongs
* @param string $profileId View (Profile) ID to which the experiment belongs
* @param string $experimentId ID of the experiment to delete
* @param array $optParams Optional parameters.
*/
public function delete($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Returns an experiment to which the user has access. (experiments.get)
*
* @param string $accountId Account ID to retrieve the experiment for.
* @param string $webPropertyId Web property ID to retrieve the experiment for.
* @param string $profileId View (Profile) ID to retrieve the experiment for.
* @param string $experimentId Experiment ID to retrieve the experiment for.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Experiment
*/
public function get($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_Experiment");
}
/**
* Create a new experiment. (experiments.insert)
*
* @param string $accountId Account ID to create the experiment for.
* @param string $webPropertyId Web property ID to create the experiment for.
* @param string $profileId View (Profile) ID to create the experiment for.
* @param Google_Service_Analytics_Experiment $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Experiment
*/
public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Experiment $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_Experiment");
}
/**
* Lists experiments to which the user has access.
* (experiments.listManagementExperiments)
*
* @param string $accountId Account ID to retrieve experiments for.
* @param string $webPropertyId Web property ID to retrieve experiments for.
* @param string $profileId View (Profile) ID to retrieve experiments for.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of experiments to include in
* this response.
* @opt_param int start-index An index of the first experiment to retrieve. Use
* this parameter as a pagination mechanism along with the max-results
* parameter.
* @return Google_Service_Analytics_Experiments
*/
public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_Experiments");
}
/**
* Update an existing experiment. This method supports patch semantics.
* (experiments.patch)
*
* @param string $accountId Account ID of the experiment to update.
* @param string $webPropertyId Web property ID of the experiment to update.
* @param string $profileId View (Profile) ID of the experiment to update.
* @param string $experimentId Experiment ID of the experiment to update.
* @param Google_Service_Analytics_Experiment $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Experiment
*/
public function patch($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Analytics_Experiment");
}
/**
* Update an existing experiment. (experiments.update)
*
* @param string $accountId Account ID of the experiment to update.
* @param string $webPropertyId Web property ID of the experiment to update.
* @param string $profileId View (Profile) ID of the experiment to update.
* @param string $experimentId Experiment ID of the experiment to update.
* @param Google_Service_Analytics_Experiment $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Experiment
*/
public function update($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Analytics_Experiment");
}
}

View File

@@ -0,0 +1,119 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "filters" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $filters = $analyticsService->filters;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementFilters extends Google_Service_Resource
{
/**
* Delete a filter. (filters.delete)
*
* @param string $accountId Account ID to delete the filter for.
* @param string $filterId ID of the filter to be deleted.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Filter
*/
public function delete($accountId, $filterId, $optParams = array())
{
$params = array('accountId' => $accountId, 'filterId' => $filterId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Analytics_Filter");
}
/**
* Returns a filters to which the user has access. (filters.get)
*
* @param string $accountId Account ID to retrieve filters for.
* @param string $filterId Filter ID to retrieve filters for.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Filter
*/
public function get($accountId, $filterId, $optParams = array())
{
$params = array('accountId' => $accountId, 'filterId' => $filterId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_Filter");
}
/**
* Create a new filter. (filters.insert)
*
* @param string $accountId Account ID to create filter for.
* @param Google_Service_Analytics_Filter $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Filter
*/
public function insert($accountId, Google_Service_Analytics_Filter $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_Filter");
}
/**
* Lists all filters for an account (filters.listManagementFilters)
*
* @param string $accountId Account ID to retrieve filters for.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of filters to include in this
* response.
* @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.
* @return Google_Service_Analytics_Filters
*/
public function listManagementFilters($accountId, $optParams = array())
{
$params = array('accountId' => $accountId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_Filters");
}
/**
* Updates an existing filter. This method supports patch semantics.
* (filters.patch)
*
* @param string $accountId Account ID to which the filter belongs.
* @param string $filterId ID of the filter to be updated.
* @param Google_Service_Analytics_Filter $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Filter
*/
public function patch($accountId, $filterId, Google_Service_Analytics_Filter $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Analytics_Filter");
}
/**
* Updates an existing filter. (filters.update)
*
* @param string $accountId Account ID to which the filter belongs.
* @param string $filterId ID of the filter to be updated.
* @param Google_Service_Analytics_Filter $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Filter
*/
public function update($accountId, $filterId, Google_Service_Analytics_Filter $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Analytics_Filter");
}
}

View File

@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "goals" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $goals = $analyticsService->goals;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementGoals extends Google_Service_Resource
{
/**
* Gets a goal to which the user has access. (goals.get)
*
* @param string $accountId Account ID to retrieve the goal for.
* @param string $webPropertyId Web property ID to retrieve the goal for.
* @param string $profileId View (Profile) ID to retrieve the goal for.
* @param string $goalId Goal ID to retrieve the goal for.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Goal
*/
public function get($accountId, $webPropertyId, $profileId, $goalId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_Goal");
}
/**
* Create a new goal. (goals.insert)
*
* @param string $accountId Account ID to create the goal for.
* @param string $webPropertyId Web property ID to create the goal for.
* @param string $profileId View (Profile) ID to create the goal for.
* @param Google_Service_Analytics_Goal $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Goal
*/
public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Goal $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_Goal");
}
/**
* Lists goals to which the user has access. (goals.listManagementGoals)
*
* @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.
* @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.
* @param string $profileId View (Profile) ID to retrieve goals for. Can either
* be a specific view (profile) ID or '~all', which refers to all the views
* (profiles) that user has access to.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of goals to include in this
* response.
* @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.
* @return Google_Service_Analytics_Goals
*/
public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_Goals");
}
/**
* Updates an existing goal. This method supports patch semantics. (goals.patch)
*
* @param string $accountId Account ID to update the goal.
* @param string $webPropertyId Web property ID to update the goal.
* @param string $profileId View (Profile) ID to update the goal.
* @param string $goalId Index of the goal to be updated.
* @param Google_Service_Analytics_Goal $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Goal
*/
public function patch($accountId, $webPropertyId, $profileId, $goalId, Google_Service_Analytics_Goal $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Analytics_Goal");
}
/**
* Updates an existing goal. (goals.update)
*
* @param string $accountId Account ID to update the goal.
* @param string $webPropertyId Web property ID to update the goal.
* @param string $profileId View (Profile) ID to update the goal.
* @param string $goalId Index of the goal to be updated.
* @param Google_Service_Analytics_Goal $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Goal
*/
public function update($accountId, $webPropertyId, $profileId, $goalId, Google_Service_Analytics_Goal $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Analytics_Goal");
}
}

View File

@@ -0,0 +1,140 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "profileFilterLinks" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $profileFilterLinks = $analyticsService->profileFilterLinks;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementProfileFilterLinks extends Google_Service_Resource
{
/**
* Delete a profile filter link. (profileFilterLinks.delete)
*
* @param string $accountId Account ID to which the profile filter link belongs.
* @param string $webPropertyId Web property Id to which the profile filter link
* belongs.
* @param string $profileId Profile ID to which the filter link belongs.
* @param string $linkId ID of the profile filter link to delete.
* @param array $optParams Optional parameters.
*/
public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Returns a single profile filter link. (profileFilterLinks.get)
*
* @param string $accountId Account ID to retrieve profile filter link for.
* @param string $webPropertyId Web property Id to retrieve profile filter link
* for.
* @param string $profileId Profile ID to retrieve filter link for.
* @param string $linkId ID of the profile filter link.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_ProfileFilterLink
*/
public function get($accountId, $webPropertyId, $profileId, $linkId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_ProfileFilterLink");
}
/**
* Create a new profile filter link. (profileFilterLinks.insert)
*
* @param string $accountId Account ID to create profile filter link for.
* @param string $webPropertyId Web property Id to create profile filter link
* for.
* @param string $profileId Profile ID to create filter link for.
* @param Google_Service_Analytics_ProfileFilterLink $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_ProfileFilterLink
*/
public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_ProfileFilterLink");
}
/**
* Lists all profile filter links for a profile.
* (profileFilterLinks.listManagementProfileFilterLinks)
*
* @param string $accountId Account ID to retrieve profile filter links for.
* @param string $webPropertyId Web property Id for profile filter links for.
* Can either be a specific web property ID or '~all', which refers to all the
* web properties that user has access to.
* @param string $profileId Profile ID to retrieve filter links for. Can either
* be a specific profile ID or '~all', which refers to all the profiles that
* user has access to.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of profile filter links to
* include in this response.
* @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.
* @return Google_Service_Analytics_ProfileFilterLinks
*/
public function listManagementProfileFilterLinks($accountId, $webPropertyId, $profileId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_ProfileFilterLinks");
}
/**
* Update an existing profile filter link. This method supports patch semantics.
* (profileFilterLinks.patch)
*
* @param string $accountId Account ID to which profile filter link belongs.
* @param string $webPropertyId Web property Id to which profile filter link
* belongs
* @param string $profileId Profile ID to which filter link belongs
* @param string $linkId ID of the profile filter link to be updated.
* @param Google_Service_Analytics_ProfileFilterLink $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_ProfileFilterLink
*/
public function patch($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Analytics_ProfileFilterLink");
}
/**
* Update an existing profile filter link. (profileFilterLinks.update)
*
* @param string $accountId Account ID to which profile filter link belongs.
* @param string $webPropertyId Web property Id to which profile filter link
* belongs
* @param string $profileId Profile ID to which filter link belongs
* @param string $linkId ID of the profile filter link to be updated.
* @param Google_Service_Analytics_ProfileFilterLink $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_ProfileFilterLink
*/
public function update($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Analytics_ProfileFilterLink");
}
}

View File

@@ -0,0 +1,104 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "profileUserLinks" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $profileUserLinks = $analyticsService->profileUserLinks;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementProfileUserLinks extends Google_Service_Resource
{
/**
* Removes a user from the given view (profile). (profileUserLinks.delete)
*
* @param string $accountId Account ID to delete the user link for.
* @param string $webPropertyId Web Property ID to delete the user link for.
* @param string $profileId View (Profile) ID to delete the user link for.
* @param string $linkId Link ID to delete the user link for.
* @param array $optParams Optional parameters.
*/
public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Adds a new user to the given view (profile). (profileUserLinks.insert)
*
* @param string $accountId Account ID to create the user link for.
* @param string $webPropertyId Web Property ID to create the user link for.
* @param string $profileId View (Profile) ID to create the user link for.
* @param Google_Service_Analytics_EntityUserLink $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_EntityUserLink
*/
public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink");
}
/**
* Lists profile-user links for a given view (profile).
* (profileUserLinks.listManagementProfileUserLinks)
*
* @param string $accountId Account ID which the given view (profile) belongs
* to.
* @param string $webPropertyId Web Property ID which the given view (profile)
* belongs to. Can either be a specific web property ID or '~all', which refers
* to all the web properties that user has access to.
* @param string $profileId View (Profile) ID to retrieve the profile-user links
* for. Can either be a specific profile ID or '~all', which refers to all the
* profiles that user has access to.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of profile-user links to
* include in this response.
* @opt_param int start-index An index of the first profile-user link to
* retrieve. Use this parameter as a pagination mechanism along with the max-
* results parameter.
* @return Google_Service_Analytics_EntityUserLinks
*/
public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks");
}
/**
* Updates permissions for an existing user on the given view (profile).
* (profileUserLinks.update)
*
* @param string $accountId Account ID to update the user link for.
* @param string $webPropertyId Web Property ID to update the user link for.
* @param string $profileId View (Profile ID) to update the user link for.
* @param string $linkId Link ID to update the user link for.
* @param Google_Service_Analytics_EntityUserLink $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_EntityUserLink
*/
public function update($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink");
}
}

View File

@@ -0,0 +1,135 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "profiles" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $profiles = $analyticsService->profiles;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementProfiles extends Google_Service_Resource
{
/**
* Deletes a view (profile). (profiles.delete)
*
* @param string $accountId Account ID to delete the view (profile) for.
* @param string $webPropertyId Web property ID to delete the view (profile)
* for.
* @param string $profileId ID of the view (profile) to be deleted.
* @param array $optParams Optional parameters.
*/
public function delete($accountId, $webPropertyId, $profileId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Gets a view (profile) to which the user has access. (profiles.get)
*
* @param string $accountId Account ID to retrieve the view (profile) for.
* @param string $webPropertyId Web property ID to retrieve the view (profile)
* for.
* @param string $profileId View (Profile) ID to retrieve the view (profile)
* for.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Profile
*/
public function get($accountId, $webPropertyId, $profileId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_Profile");
}
/**
* Create a new view (profile). (profiles.insert)
*
* @param string $accountId Account ID to create the view (profile) for.
* @param string $webPropertyId Web property ID to create the view (profile)
* for.
* @param Google_Service_Analytics_Profile $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Profile
*/
public function insert($accountId, $webPropertyId, Google_Service_Analytics_Profile $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_Profile");
}
/**
* Lists views (profiles) to which the user has access.
* (profiles.listManagementProfiles)
*
* @param string $accountId Account ID for the view (profiles) to retrieve. Can
* either be a specific account ID or '~all', which refers to all the accounts
* to which the user has access.
* @param string $webPropertyId Web property ID for the views (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.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of views (profiles) to include
* in this response.
* @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.
* @return Google_Service_Analytics_Profiles
*/
public function listManagementProfiles($accountId, $webPropertyId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_Profiles");
}
/**
* Updates an existing view (profile). This method supports patch semantics.
* (profiles.patch)
*
* @param string $accountId Account ID to which the view (profile) belongs
* @param string $webPropertyId Web property ID to which the view (profile)
* belongs
* @param string $profileId ID of the view (profile) to be updated.
* @param Google_Service_Analytics_Profile $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Profile
*/
public function patch($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Analytics_Profile");
}
/**
* Updates an existing view (profile). (profiles.update)
*
* @param string $accountId Account ID to which the view (profile) belongs
* @param string $webPropertyId Web property ID to which the view (profile)
* belongs
* @param string $profileId ID of the view (profile) to be updated.
* @param Google_Service_Analytics_Profile $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Profile
*/
public function update($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Analytics_Profile");
}
}

View File

@@ -0,0 +1,126 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "remarketingAudience" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $remarketingAudience = $analyticsService->remarketingAudience;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementRemarketingAudience extends Google_Service_Resource
{
/**
* Gets a remarketing audience to which the user has access.
* (remarketingAudience.get)
*
* @param string $accountId The account ID of the remarketing audience to
* retrieve.
* @param string $webPropertyId The web property ID of the remarketing audience
* to retrieve.
* @param string $remarketingAudienceId The ID of the remarketing audience to
* retrieve.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_RemarketingAudience
*/
public function get($accountId, $webPropertyId, $remarketingAudienceId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'remarketingAudienceId' => $remarketingAudienceId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_RemarketingAudience");
}
/**
* Creates a new remarketing audience. (remarketingAudience.insert)
*
* @param string $accountId The account ID for which to create the remarketing
* audience.
* @param string $webPropertyId Web property ID for which to create the
* remarketing audience.
* @param Google_Service_Analytics_RemarketingAudience $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_RemarketingAudience
*/
public function insert($accountId, $webPropertyId, Google_Service_Analytics_RemarketingAudience $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_RemarketingAudience");
}
/**
* Lists remarketing audiences to which the user has access.
* (remarketingAudience.listManagementRemarketingAudience)
*
* @param string $accountId The account ID of the remarketing audiences to
* retrieve.
* @param string $webPropertyId The web property ID of the remarketing audiences
* to retrieve.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of remarketing audiences to
* include in this response.
* @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.
* @opt_param string type
* @return Google_Service_Analytics_RemarketingAudiences
*/
public function listManagementRemarketingAudience($accountId, $webPropertyId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_RemarketingAudiences");
}
/**
* Updates an existing remarketing audience. This method supports patch
* semantics. (remarketingAudience.patch)
*
* @param string $accountId The account ID of the remarketing audience to
* update.
* @param string $webPropertyId The web property ID of the remarketing audience
* to update.
* @param string $remarketingAudienceId The ID of the remarketing audience to
* update.
* @param Google_Service_Analytics_RemarketingAudience $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_RemarketingAudience
*/
public function patch($accountId, $webPropertyId, $remarketingAudienceId, Google_Service_Analytics_RemarketingAudience $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'remarketingAudienceId' => $remarketingAudienceId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Analytics_RemarketingAudience");
}
/**
* Updates an existing remarketing audience. (remarketingAudience.update)
*
* @param string $accountId The account ID of the remarketing audience to
* update.
* @param string $webPropertyId The web property ID of the remarketing audience
* to update.
* @param string $remarketingAudienceId The ID of the remarketing audience to
* update.
* @param Google_Service_Analytics_RemarketingAudience $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_RemarketingAudience
*/
public function update($accountId, $webPropertyId, $remarketingAudienceId, Google_Service_Analytics_RemarketingAudience $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'remarketingAudienceId' => $remarketingAudienceId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Analytics_RemarketingAudience");
}
}

View File

@@ -0,0 +1,47 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "segments" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $segments = $analyticsService->segments;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementSegments extends Google_Service_Resource
{
/**
* Lists segments to which the user has access.
* (segments.listManagementSegments)
*
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of segments to include in this
* response.
* @opt_param int start-index An index of the first segment to retrieve. Use
* this parameter as a pagination mechanism along with the max-results
* parameter.
* @return Google_Service_Analytics_Segments
*/
public function listManagementSegments($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_Segments");
}
}

View File

@@ -0,0 +1,105 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "unsampledReports" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $unsampledReports = $analyticsService->unsampledReports;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementUnsampledReports extends Google_Service_Resource
{
/**
* Deletes an unsampled report. (unsampledReports.delete)
*
* @param string $accountId Account ID to delete the unsampled report for.
* @param string $webPropertyId Web property ID to delete the unsampled reports
* for.
* @param string $profileId View (Profile) ID to delete the unsampled report
* for.
* @param string $unsampledReportId ID of the unsampled report to be deleted.
* @param array $optParams Optional parameters.
*/
public function delete($accountId, $webPropertyId, $profileId, $unsampledReportId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'unsampledReportId' => $unsampledReportId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Returns a single unsampled report. (unsampledReports.get)
*
* @param string $accountId Account ID to retrieve unsampled report for.
* @param string $webPropertyId Web property ID to retrieve unsampled reports
* for.
* @param string $profileId View (Profile) ID to retrieve unsampled report for.
* @param string $unsampledReportId ID of the unsampled report to retrieve.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_UnsampledReport
*/
public function get($accountId, $webPropertyId, $profileId, $unsampledReportId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'unsampledReportId' => $unsampledReportId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_UnsampledReport");
}
/**
* Create a new unsampled report. (unsampledReports.insert)
*
* @param string $accountId Account ID to create the unsampled report for.
* @param string $webPropertyId Web property ID to create the unsampled report
* for.
* @param string $profileId View (Profile) ID to create the unsampled report
* for.
* @param Google_Service_Analytics_UnsampledReport $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_UnsampledReport
*/
public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_UnsampledReport $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_UnsampledReport");
}
/**
* Lists unsampled reports to which the user has access.
* (unsampledReports.listManagementUnsampledReports)
*
* @param string $accountId Account ID to retrieve unsampled reports for. Must
* be a specific account ID, ~all is not supported.
* @param string $webPropertyId Web property ID to retrieve unsampled reports
* for. Must be a specific web property ID, ~all is not supported.
* @param string $profileId View (Profile) ID to retrieve unsampled reports for.
* Must be a specific view (profile) ID, ~all is not supported.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of unsampled reports to include
* in this response.
* @opt_param int start-index An index of the first unsampled report to
* retrieve. Use this parameter as a pagination mechanism along with the max-
* results parameter.
* @return Google_Service_Analytics_UnsampledReports
*/
public function listManagementUnsampledReports($accountId, $webPropertyId, $profileId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_UnsampledReports");
}
}

View File

@@ -0,0 +1,100 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "uploads" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $uploads = $analyticsService->uploads;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementUploads extends Google_Service_Resource
{
/**
* Delete data associated with a previous upload. (uploads.deleteUploadData)
*
* @param string $accountId Account Id for the uploads to be deleted.
* @param string $webPropertyId Web property Id for the uploads to be deleted.
* @param string $customDataSourceId Custom data source Id for the uploads to be
* deleted.
* @param Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest $postBody
* @param array $optParams Optional parameters.
*/
public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId, Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('deleteUploadData', array($params));
}
/**
* List uploads to which the user has access. (uploads.get)
*
* @param string $accountId Account Id for the upload to retrieve.
* @param string $webPropertyId Web property Id for the upload to retrieve.
* @param string $customDataSourceId Custom data source Id for upload to
* retrieve.
* @param string $uploadId Upload Id to retrieve.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Upload
*/
public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'uploadId' => $uploadId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_Upload");
}
/**
* List uploads to which the user has access. (uploads.listManagementUploads)
*
* @param string $accountId Account Id for the uploads to retrieve.
* @param string $webPropertyId Web property Id for the uploads to retrieve.
* @param string $customDataSourceId Custom data source Id for uploads to
* retrieve.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of uploads to include in this
* response.
* @opt_param int start-index A 1-based index of the first upload to retrieve.
* Use this parameter as a pagination mechanism along with the max-results
* parameter.
* @return Google_Service_Analytics_Uploads
*/
public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_Uploads");
}
/**
* Upload data for a custom data source. (uploads.uploadData)
*
* @param string $accountId Account Id associated with the upload.
* @param string $webPropertyId Web property UA-string associated with the
* upload.
* @param string $customDataSourceId Custom data source Id to which the data
* being uploaded belongs.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Upload
*/
public function uploadData($accountId, $webPropertyId, $customDataSourceId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
$params = array_merge($params, $optParams);
return $this->call('uploadData', array($params), "Google_Service_Analytics_Upload");
}
}

View File

@@ -0,0 +1,138 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "webPropertyAdWordsLinks" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $webPropertyAdWordsLinks = $analyticsService->webPropertyAdWordsLinks;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementWebPropertyAdWordsLinks extends Google_Service_Resource
{
/**
* Deletes a web property-AdWords link. (webPropertyAdWordsLinks.delete)
*
* @param string $accountId ID of the account which the given web property
* belongs to.
* @param string $webPropertyId Web property ID to delete the AdWords link for.
* @param string $webPropertyAdWordsLinkId Web property AdWords link ID.
* @param array $optParams Optional parameters.
*/
public function delete($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Returns a web property-AdWords link to which the user has access.
* (webPropertyAdWordsLinks.get)
*
* @param string $accountId ID of the account which the given web property
* belongs to.
* @param string $webPropertyId Web property ID to retrieve the AdWords link
* for.
* @param string $webPropertyAdWordsLinkId Web property-AdWords link ID.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_EntityAdWordsLink
*/
public function get($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_EntityAdWordsLink");
}
/**
* Creates a webProperty-AdWords link. (webPropertyAdWordsLinks.insert)
*
* @param string $accountId ID of the Google Analytics account to create the
* link for.
* @param string $webPropertyId Web property ID to create the link for.
* @param Google_Service_Analytics_EntityAdWordsLink $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_EntityAdWordsLink
*/
public function insert($accountId, $webPropertyId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_EntityAdWordsLink");
}
/**
* Lists webProperty-AdWords links for a given web property.
* (webPropertyAdWordsLinks.listManagementWebPropertyAdWordsLinks)
*
* @param string $accountId ID of the account which the given web property
* belongs to.
* @param string $webPropertyId Web property ID to retrieve the AdWords links
* for.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of webProperty-AdWords links to
* include in this response.
* @opt_param int start-index An index of the first webProperty-AdWords link to
* retrieve. Use this parameter as a pagination mechanism along with the max-
* results parameter.
* @return Google_Service_Analytics_EntityAdWordsLinks
*/
public function listManagementWebPropertyAdWordsLinks($accountId, $webPropertyId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_EntityAdWordsLinks");
}
/**
* Updates an existing webProperty-AdWords link. This method supports patch
* semantics. (webPropertyAdWordsLinks.patch)
*
* @param string $accountId ID of the account which the given web property
* belongs to.
* @param string $webPropertyId Web property ID to retrieve the AdWords link
* for.
* @param string $webPropertyAdWordsLinkId Web property-AdWords link ID.
* @param Google_Service_Analytics_EntityAdWordsLink $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_EntityAdWordsLink
*/
public function patch($accountId, $webPropertyId, $webPropertyAdWordsLinkId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Analytics_EntityAdWordsLink");
}
/**
* Updates an existing webProperty-AdWords link.
* (webPropertyAdWordsLinks.update)
*
* @param string $accountId ID of the account which the given web property
* belongs to.
* @param string $webPropertyId Web property ID to retrieve the AdWords link
* for.
* @param string $webPropertyAdWordsLinkId Web property-AdWords link ID.
* @param Google_Service_Analytics_EntityAdWordsLink $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_EntityAdWordsLink
*/
public function update($accountId, $webPropertyId, $webPropertyAdWordsLinkId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Analytics_EntityAdWordsLink");
}
}

View File

@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "webproperties" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $webproperties = $analyticsService->webproperties;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementWebproperties extends Google_Service_Resource
{
/**
* Gets a web property to which the user has access. (webproperties.get)
*
* @param string $accountId Account ID to retrieve the web property for.
* @param string $webPropertyId ID to retrieve the web property for.
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Webproperty
*/
public function get($accountId, $webPropertyId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Analytics_Webproperty");
}
/**
* Create a new property if the account has fewer than 20 properties. Web
* properties are visible in the Google Analytics interface only if they have at
* least one profile. (webproperties.insert)
*
* @param string $accountId Account ID to create the web property for.
* @param Google_Service_Analytics_Webproperty $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Webproperty
*/
public function insert($accountId, Google_Service_Analytics_Webproperty $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_Webproperty");
}
/**
* Lists web properties to which the user has access.
* (webproperties.listManagementWebproperties)
*
* @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.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of web properties to include in
* this response.
* @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.
* @return Google_Service_Analytics_Webproperties
*/
public function listManagementWebproperties($accountId, $optParams = array())
{
$params = array('accountId' => $accountId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_Webproperties");
}
/**
* Updates an existing web property. This method supports patch semantics.
* (webproperties.patch)
*
* @param string $accountId Account ID to which the web property belongs
* @param string $webPropertyId Web property ID
* @param Google_Service_Analytics_Webproperty $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Webproperty
*/
public function patch($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Analytics_Webproperty");
}
/**
* Updates an existing web property. (webproperties.update)
*
* @param string $accountId Account ID to which the web property belongs
* @param string $webPropertyId Web property ID
* @param Google_Service_Analytics_Webproperty $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Webproperty
*/
public function update($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Analytics_Webproperty");
}
}

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "webpropertyUserLinks" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $webpropertyUserLinks = $analyticsService->webpropertyUserLinks;
* </code>
*/
class Google_Service_Analytics_Resource_ManagementWebpropertyUserLinks extends Google_Service_Resource
{
/**
* Removes a user from the given web property. (webpropertyUserLinks.delete)
*
* @param string $accountId Account ID to delete the user link for.
* @param string $webPropertyId Web Property ID to delete the user link for.
* @param string $linkId Link ID to delete the user link for.
* @param array $optParams Optional parameters.
*/
public function delete($accountId, $webPropertyId, $linkId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Adds a new user to the given web property. (webpropertyUserLinks.insert)
*
* @param string $accountId Account ID to create the user link for.
* @param string $webPropertyId Web Property ID to create the user link for.
* @param Google_Service_Analytics_EntityUserLink $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_EntityUserLink
*/
public function insert($accountId, $webPropertyId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink");
}
/**
* Lists webProperty-user links for a given web property.
* (webpropertyUserLinks.listManagementWebpropertyUserLinks)
*
* @param string $accountId Account ID which the given web property belongs to.
* @param string $webPropertyId Web Property ID for the webProperty-user links
* to retrieve. Can either be a specific web property ID or '~all', which refers
* to all the web properties that user has access to.
* @param array $optParams Optional parameters.
*
* @opt_param int max-results The maximum number of webProperty-user Links to
* include in this response.
* @opt_param int start-index An index of the first webProperty-user link to
* retrieve. Use this parameter as a pagination mechanism along with the max-
* results parameter.
* @return Google_Service_Analytics_EntityUserLinks
*/
public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks");
}
/**
* Updates permissions for an existing user on the given web property.
* (webpropertyUserLinks.update)
*
* @param string $accountId Account ID to update the account-user link for.
* @param string $webPropertyId Web property ID to update the account-user link
* for.
* @param string $linkId Link ID to update the account-user link for.
* @param Google_Service_Analytics_EntityUserLink $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_EntityUserLink
*/
public function update($accountId, $webPropertyId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
{
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink");
}
}

View File

@@ -0,0 +1,28 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "metadata" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $metadata = $analyticsService->metadata;
* </code>
*/
class Google_Service_Analytics_Resource_Metadata extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "columns" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $columns = $analyticsService->columns;
* </code>
*/
class Google_Service_Analytics_Resource_MetadataColumns extends Google_Service_Resource
{
/**
* Lists all columns for a report type (columns.listMetadataColumns)
*
* @param string $reportType Report type. Allowed Values: 'ga'. Where 'ga'
* corresponds to the Core Reporting API
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_Columns
*/
public function listMetadataColumns($reportType, $optParams = array())
{
$params = array('reportType' => $reportType);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Analytics_Columns");
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "provisioning" collection of methods.
* Typical usage is:
* <code>
* $analyticsService = new Google_Service_Analytics(...);
* $provisioning = $analyticsService->provisioning;
* </code>
*/
class Google_Service_Analytics_Resource_Provisioning extends Google_Service_Resource
{
/**
* Creates an account ticket. (provisioning.createAccountTicket)
*
* @param Google_Service_Analytics_AccountTicket $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Analytics_AccountTicket
*/
public function createAccountTicket(Google_Service_Analytics_AccountTicket $postBody, $optParams = array())
{
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('createAccountTicket', array($params), "Google_Service_Analytics_AccountTicket");
}
}