Class: Google::Apis::AnalyticsV3::AnalyticsService

Inherits:
Core::BaseService show all
Defined in:
generated/google/apis/analytics_v3/service.rb

Overview

Google Analytics API

Views and manages your Google Analytics data.

Examples:

require 'google/apis/analytics_v3'

Analytics = Google::Apis::AnalyticsV3 # Alias the module
service = Analytics::AnalyticsService.new

See Also:

Instance Attribute Summary collapse

Attributes inherited from Core::BaseService

#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path

Instance Method Summary collapse

Methods inherited from Core::BaseService

#batch, #batch_upload, #fetch_all, #http

Methods included from Core::Logging

#logger

Constructor Details

#initializeAnalyticsService

Returns a new instance of AnalyticsService



49
50
51
52
# File 'generated/google/apis/analytics_v3/service.rb', line 49

def initialize
  super('https://www.googleapis.com/', 'analytics/v3/')
  @batch_path = 'batch/analytics/v3'
end

Instance Attribute Details

#keyString

Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

Returns:

  • (String)

    API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.



38
39
40
# File 'generated/google/apis/analytics_v3/service.rb', line 38

def key
  @key
end

#quota_userString

Returns An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

Returns:

  • (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.



43
44
45
# File 'generated/google/apis/analytics_v3/service.rb', line 43

def quota_user
  @quota_user
end

#user_ipString

Returns Deprecated. Please use quotaUser instead.

Returns:

  • (String)

    Deprecated. Please use quotaUser instead.



47
48
49
# File 'generated/google/apis/analytics_v3/service.rb', line 47

def user_ip
  @user_ip
end

Instance Method Details

#create_account_ticket(account_ticket_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::AccountTicket

Creates an account ticket.

Parameters:

  • account_ticket_object (Google::Apis::AnalyticsV3::AccountTicket) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
# File 'generated/google/apis/analytics_v3/service.rb', line 3631

def ( = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'provisioning/createAccountTicket', options)
  command.request_representation = Google::Apis::AnalyticsV3::AccountTicket::Representation
  command.request_object = 
  command.response_representation = Google::Apis::AnalyticsV3::AccountTicket::Representation
  command.response_class = Google::Apis::AnalyticsV3::AccountTicket
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#create_provisioning_account_tree(account_tree_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::AccountTreeResponse

Provision account.

Parameters:

  • account_tree_request_object (Google::Apis::AnalyticsV3::AccountTreeRequest) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
# File 'generated/google/apis/analytics_v3/service.rb', line 3664

def ( = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'provisioning/createAccountTree', options)
  command.request_representation = Google::Apis::AnalyticsV3::AccountTreeRequest::Representation
  command.request_object = 
  command.response_representation = Google::Apis::AnalyticsV3::AccountTreeResponse::Representation
  command.response_class = Google::Apis::AnalyticsV3::AccountTreeResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

This method returns an undefined value.

Removes a user from the given account.

Parameters:

  • account_id (String)

    Account ID to delete the user link for.

  • link_id (String)

    Link ID to delete the user link for.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



319
320
321
322
323
324
325
326
327
# File 'generated/google/apis/analytics_v3/service.rb', line 319

def (, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, 'management/accounts/{accountId}/entityUserLinks/{linkId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['linkId'] = link_id unless link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Delete an experiment.

Parameters:

  • account_id (String)

    Account ID to which the experiment belongs

  • web_property_id (String)

    Web property ID to which the experiment belongs

  • profile_id (String)

    View (Profile) ID to which the experiment belongs

  • experiment_id (String)

    ID of the experiment to delete

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



978
979
980
981
982
983
984
985
986
987
988
# File 'generated/google/apis/analytics_v3/service.rb', line 978

def delete_experiment(, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['experimentId'] = experiment_id unless experiment_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Filter

Delete a filter.

Parameters:

  • account_id (String)

    Account ID to delete the filter for.

  • filter_id (String)

    ID of the filter to be deleted.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
# File 'generated/google/apis/analytics_v3/service.rb', line 1234

def delete_filter(, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, 'management/accounts/{accountId}/filters/{filterId}', options)
  command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
  command.response_class = Google::Apis::AnalyticsV3::Filter
  command.params['accountId'] =  unless .nil?
  command.params['filterId'] = filter_id unless filter_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_management_remarketing_audience(account_id, web_property_id, remarketing_audience_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Delete a remarketing audience.

Parameters:

  • account_id (String)

    Account ID to which the remarketing audience belongs.

  • web_property_id (String)

    Web property ID to which the remarketing audience belongs.

  • remarketing_audience_id (String)

    The ID of the remarketing audience to delete.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
# File 'generated/google/apis/analytics_v3/service.rb', line 2372

def delete_management_remarketing_audience(, web_property_id, remarketing_audience_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['remarketingAudienceId'] = remarketing_audience_id unless remarketing_audience_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a view (profile).

Parameters:

  • account_id (String)

    Account ID to delete the view (profile) for.

  • web_property_id (String)

    Web property ID to delete the view (profile) for.

  • profile_id (String)

    ID of the view (profile) to be deleted.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
# File 'generated/google/apis/analytics_v3/service.rb', line 2126

def delete_profile(, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

This method returns an undefined value.

Delete a profile filter link.

Parameters:

  • account_id (String)

    Account ID to which the profile filter link belongs.

  • web_property_id (String)

    Web property Id to which the profile filter link belongs.

  • profile_id (String)

    Profile ID to which the filter link belongs.

  • link_id (String)

    ID of the profile filter link to delete.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
# File 'generated/google/apis/analytics_v3/service.rb', line 1688

def delete_profile_filter_link(, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['linkId'] = link_id unless link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

This method returns an undefined value.

Removes a user from the given view (profile).

Parameters:

  • account_id (String)

    Account ID to delete the user link for.

  • web_property_id (String)

    Web Property ID to delete the user link for.

  • profile_id (String)

    View (Profile) ID to delete the user link for.

  • link_id (String)

    Link ID to delete the user link for.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
# File 'generated/google/apis/analytics_v3/service.rb', line 1951

def delete_profile_user_link(, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['linkId'] = link_id unless link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes an unsampled report.

Parameters:

  • account_id (String)

    Account ID to delete the unsampled report for.

  • web_property_id (String)

    Web property ID to delete the unsampled reports for.

  • profile_id (String)

    View (Profile) ID to delete the unsampled report for.

  • unsampled_report_id (String)

    ID of the unsampled report to be deleted.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
# File 'generated/google/apis/analytics_v3/service.rb', line 2655

def delete_unsampled_report(, web_property_id, profile_id, unsampled_report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['unsampledReportId'] = unsampled_report_id unless unsampled_report_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_upload_data(account_id, web_property_id, custom_data_source_id, delete_upload_data_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Delete data associated with a previous upload.

Parameters:

  • account_id (String)

    Account Id for the uploads to be deleted.

  • web_property_id (String)

    Web property Id for the uploads to be deleted.

  • custom_data_source_id (String)

    Custom data source Id for the uploads to be deleted.

  • delete_upload_data_request_object (Google::Apis::AnalyticsV3::DeleteUploadDataRequest) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
# File 'generated/google/apis/analytics_v3/service.rb', line 2827

def delete_upload_data(, web_property_id, custom_data_source_id, delete_upload_data_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData', options)
  command.request_representation = Google::Apis::AnalyticsV3::DeleteUploadDataRequest::Representation
  command.request_object = delete_upload_data_request_object
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['customDataSourceId'] = custom_data_source_id unless custom_data_source_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

This method returns an undefined value.

Deletes a web property-AdWords link.

Parameters:

  • account_id (String)

    ID of the account which the given web property belongs to.

  • web_property_id (String)

    Web property ID to delete the AdWords link for.

  • web_property_ad_words_link_id (String)

    Web property AdWords link ID.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
# File 'generated/google/apis/analytics_v3/service.rb', line 3003

def delete_web_property_ad_words_link(, web_property_id, web_property_ad_words_link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['webPropertyAdWordsLinkId'] = web_property_ad_words_link_id unless web_property_ad_words_link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

This method returns an undefined value.

Removes a user from the given web property.

Parameters:

  • account_id (String)

    Account ID to delete the user link for.

  • web_property_id (String)

    Web Property ID to delete the user link for.

  • link_id (String)

    Link ID to delete the user link for.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:



3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
# File 'generated/google/apis/analytics_v3/service.rb', line 3439

def delete_web_property_user_link(, web_property_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', options)
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['linkId'] = link_id unless link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_custom_dimension(account_id, web_property_id, custom_dimension_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::CustomDimension

Get a custom dimension to which the user has access.

Parameters:

  • account_id (String)

    Account ID for the custom dimension to retrieve.

  • web_property_id (String)

    Web property ID for the custom dimension to retrieve.

  • custom_dimension_id (String)

    The ID of the custom dimension to retrieve.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



550
551
552
553
554
555
556
557
558
559
560
561
# File 'generated/google/apis/analytics_v3/service.rb', line 550

def get_custom_dimension(, web_property_id, custom_dimension_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options)
  command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
  command.response_class = Google::Apis::AnalyticsV3::CustomDimension
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['customDimensionId'] = custom_dimension_id unless custom_dimension_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_custom_metric(account_id, web_property_id, custom_metric_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::CustomMetric

Get a custom metric to which the user has access.

Parameters:

  • account_id (String)

    Account ID for the custom metric to retrieve.

  • web_property_id (String)

    Web property ID for the custom metric to retrieve.

  • custom_metric_id (String)

    The ID of the custom metric to retrieve.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



763
764
765
766
767
768
769
770
771
772
773
774
# File 'generated/google/apis/analytics_v3/service.rb', line 763

def get_custom_metric(, web_property_id, custom_metric_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options)
  command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
  command.response_class = Google::Apis::AnalyticsV3::CustomMetric
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['customMetricId'] = custom_metric_id unless custom_metric_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_experiment(account_id, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Experiment

Returns an experiment to which the user has access.

Parameters:

  • account_id (String)

    Account ID to retrieve the experiment for.

  • web_property_id (String)

    Web property ID to retrieve the experiment for.

  • profile_id (String)

    View (Profile) ID to retrieve the experiment for.

  • experiment_id (String)

    Experiment ID to retrieve the experiment for.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
# File 'generated/google/apis/analytics_v3/service.rb', line 1018

def get_experiment(, web_property_id, profile_id, experiment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options)
  command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
  command.response_class = Google::Apis::AnalyticsV3::Experiment
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['experimentId'] = experiment_id unless experiment_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_filter(account_id, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Filter

Returns a filters to which the user has access.

Parameters:

  • account_id (String)

    Account ID to retrieve filters for.

  • filter_id (String)

    Filter ID to retrieve filters for.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
# File 'generated/google/apis/analytics_v3/service.rb', line 1270

def get_filter(, filter_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/filters/{filterId}', options)
  command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
  command.response_class = Google::Apis::AnalyticsV3::Filter
  command.params['accountId'] =  unless .nil?
  command.params['filterId'] = filter_id unless filter_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_ga_data(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, include_empty_rows: nil, max_results: nil, output: nil, sampling_level: nil, segment: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::GaData

Returns Analytics data for a view (profile).

Parameters:

  • ids (String)

    Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.

  • start_date (String)

    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.

  • end_date (String)

    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.

  • metrics (String)

    A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified.

  • dimensions (String)

    A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.

  • filters (String)

    A comma-separated list of dimension or metric filters to be applied to Analytics data.

  • include_empty_rows (Boolean)

    The response will include empty rows if this parameter is set to true, the default is true

  • max_results (Fixnum)

    The maximum number of entries to include in this feed.

  • output (String)

    The selected format for the response. Default format is JSON.

  • sampling_level (String)

    The desired sampling level.

  • segment (String)

    An Analytics segment to be applied to data.

  • sort (String)

    A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.

  • start_index (Fixnum)

    An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# File 'generated/google/apis/analytics_v3/service.rb', line 110

def get_ga_data(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, include_empty_rows: nil, max_results: nil, output: nil, sampling_level: nil, segment: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'data/ga', options)
  command.response_representation = Google::Apis::AnalyticsV3::GaData::Representation
  command.response_class = Google::Apis::AnalyticsV3::GaData
  command.query['dimensions'] = dimensions unless dimensions.nil?
  command.query['end-date'] = end_date unless end_date.nil?
  command.query['filters'] = filters unless filters.nil?
  command.query['ids'] = ids unless ids.nil?
  command.query['include-empty-rows'] = include_empty_rows unless include_empty_rows.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['metrics'] = metrics unless metrics.nil?
  command.query['output'] = output unless output.nil?
  command.query['samplingLevel'] = sampling_level unless sampling_level.nil?
  command.query['segment'] = segment unless segment.nil?
  command.query['sort'] = sort unless sort.nil?
  command.query['start-date'] = start_date unless start_date.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_goal(account_id, web_property_id, profile_id, goal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Goal

Gets a goal to which the user has access.

Parameters:

  • account_id (String)

    Account ID to retrieve the goal for.

  • web_property_id (String)

    Web property ID to retrieve the goal for.

  • profile_id (String)

    View (Profile) ID to retrieve the goal for.

  • goal_id (String)

    Goal ID to retrieve the goal for.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
# File 'generated/google/apis/analytics_v3/service.rb', line 1464

def get_goal(, web_property_id, profile_id, goal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options)
  command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
  command.response_class = Google::Apis::AnalyticsV3::Goal
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['goalId'] = goal_id unless goal_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_management_remarketing_audience(account_id, web_property_id, remarketing_audience_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::RemarketingAudience

Gets a remarketing audience to which the user has access.

Parameters:

  • account_id (String)

    The account ID of the remarketing audience to retrieve.

  • web_property_id (String)

    The web property ID of the remarketing audience to retrieve.

  • remarketing_audience_id (String)

    The ID of the remarketing audience to retrieve.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
# File 'generated/google/apis/analytics_v3/service.rb', line 2409

def get_management_remarketing_audience(, web_property_id, remarketing_audience_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', options)
  command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
  command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['remarketingAudienceId'] = remarketing_audience_id unless remarketing_audience_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_mcf_data(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, max_results: nil, sampling_level: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::McfData

Returns Analytics Multi-Channel Funnels data for a view (profile).

Parameters:

  • ids (String)

    Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.

  • start_date (String)

    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.

  • end_date (String)

    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.

  • metrics (String)

    A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf: totalConversions,mcf:totalConversionValue'. At least one metric must be specified.

  • dimensions (String)

    A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source, mcf:medium'.

  • filters (String)

    A comma-separated list of dimension or metric filters to be applied to the Analytics data.

  • max_results (Fixnum)

    The maximum number of entries to include in this feed.

  • sampling_level (String)

    The desired sampling level.

  • sort (String)

    A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.

  • start_index (Fixnum)

    An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'generated/google/apis/analytics_v3/service.rb', line 184

def get_mcf_data(ids, start_date, end_date, metrics, dimensions: nil, filters: nil, max_results: nil, sampling_level: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'data/mcf', options)
  command.response_representation = Google::Apis::AnalyticsV3::McfData::Representation
  command.response_class = Google::Apis::AnalyticsV3::McfData
  command.query['dimensions'] = dimensions unless dimensions.nil?
  command.query['end-date'] = end_date unless end_date.nil?
  command.query['filters'] = filters unless filters.nil?
  command.query['ids'] = ids unless ids.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['metrics'] = metrics unless metrics.nil?
  command.query['samplingLevel'] = sampling_level unless sampling_level.nil?
  command.query['sort'] = sort unless sort.nil?
  command.query['start-date'] = start_date unless start_date.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_profile(account_id, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Profile

Gets a view (profile) to which the user has access.

Parameters:

  • account_id (String)

    Account ID to retrieve the view (profile) for.

  • web_property_id (String)

    Web property ID to retrieve the view (profile) for.

  • profile_id (String)

    View (Profile) ID to retrieve the view (profile) for.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
# File 'generated/google/apis/analytics_v3/service.rb', line 2163

def get_profile(, web_property_id, profile_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
  command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
  command.response_class = Google::Apis::AnalyticsV3::Profile
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Returns a single profile filter link.

Parameters:

  • account_id (String)

    Account ID to retrieve profile filter link for.

  • web_property_id (String)

    Web property Id to retrieve profile filter link for.

  • profile_id (String)

    Profile ID to retrieve filter link for.

  • link_id (String)

    ID of the profile filter link.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
# File 'generated/google/apis/analytics_v3/service.rb', line 1728

def get_profile_filter_link(, web_property_id, profile_id, link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options)
  command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLink
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['linkId'] = link_id unless link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_realtime_data(ids, metrics, dimensions: nil, filters: nil, max_results: nil, sort: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::RealtimeData

Returns real time data for a view (profile).

Parameters:

  • ids (String)

    Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.

  • metrics (String)

    A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least one metric must be specified.

  • dimensions (String)

    A comma-separated list of real time dimensions. E.g., 'rt:medium,rt:city'.

  • filters (String)

    A comma-separated list of dimension or metric filters to be applied to real time data.

  • max_results (Fixnum)

    The maximum number of entries to include in this feed.

  • sort (String)

    A comma-separated list of dimensions or metrics that determine the sort order for real time data.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
# File 'generated/google/apis/analytics_v3/service.rb', line 240

def get_realtime_data(ids, metrics, dimensions: nil, filters: nil, max_results: nil, sort: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'data/realtime', options)
  command.response_representation = Google::Apis::AnalyticsV3::RealtimeData::Representation
  command.response_class = Google::Apis::AnalyticsV3::RealtimeData
  command.query['dimensions'] = dimensions unless dimensions.nil?
  command.query['filters'] = filters unless filters.nil?
  command.query['ids'] = ids unless ids.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['metrics'] = metrics unless metrics.nil?
  command.query['sort'] = sort unless sort.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::UnsampledReport

Returns a single unsampled report.

Parameters:

  • account_id (String)

    Account ID to retrieve unsampled report for.

  • web_property_id (String)

    Web property ID to retrieve unsampled reports for.

  • profile_id (String)

    View (Profile) ID to retrieve unsampled report for.

  • unsampled_report_id (String)

    ID of the unsampled report to retrieve.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
# File 'generated/google/apis/analytics_v3/service.rb', line 2695

def get_unsampled_report(, web_property_id, profile_id, unsampled_report_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', options)
  command.response_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation
  command.response_class = Google::Apis::AnalyticsV3::UnsampledReport
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['unsampledReportId'] = unsampled_report_id unless unsampled_report_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_upload(account_id, web_property_id, custom_data_source_id, upload_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Upload

List uploads to which the user has access.

Parameters:

  • account_id (String)

    Account Id for the upload to retrieve.

  • web_property_id (String)

    Web property Id for the upload to retrieve.

  • custom_data_source_id (String)

    Custom data source Id for upload to retrieve.

  • upload_id (String)

    Upload Id to retrieve.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
# File 'generated/google/apis/analytics_v3/service.rb', line 2868

def get_upload(, web_property_id, custom_data_source_id, upload_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}', options)
  command.response_representation = Google::Apis::AnalyticsV3::Upload::Representation
  command.response_class = Google::Apis::AnalyticsV3::Upload
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['customDataSourceId'] = custom_data_source_id unless custom_data_source_id.nil?
  command.params['uploadId'] = upload_id unless upload_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_web_property(account_id, web_property_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Webproperty

Gets a web property to which the user has access.

Parameters:

  • account_id (String)

    Account ID to retrieve the web property for.

  • web_property_id (String)

    ID to retrieve the web property for.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
# File 'generated/google/apis/analytics_v3/service.rb', line 3244

def get_web_property(, web_property_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options)
  command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
  command.response_class = Google::Apis::AnalyticsV3::Webproperty
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Returns a web property-AdWords link to which the user has access.

Parameters:

  • account_id (String)

    ID of the account which the given web property belongs to.

  • web_property_id (String)

    Web property ID to retrieve the AdWords link for.

  • web_property_ad_words_link_id (String)

    Web property-AdWords link ID.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
# File 'generated/google/apis/analytics_v3/service.rb', line 3040

def get_web_property_ad_words_link(, web_property_id, web_property_ad_words_link_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
  command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLink
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['webPropertyAdWordsLinkId'] = web_property_ad_words_link_id unless web_property_ad_words_link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Adds a new user to the given account.

Parameters:

  • account_id (String)

    Account ID to create the user link for.

  • entity_user_link_object (Google::Apis::AnalyticsV3::EntityUserLink) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



352
353
354
355
356
357
358
359
360
361
362
363
# File 'generated/google/apis/analytics_v3/service.rb', line 352

def (, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/entityUserLinks', options)
  command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
  command.request_object = entity_user_link_object
  command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityUserLink
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_custom_dimension(account_id, web_property_id, custom_dimension_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::CustomDimension

Create a new custom dimension.

Parameters:

  • account_id (String)

    Account ID for the custom dimension to create.

  • web_property_id (String)

    Web property ID for the custom dimension to create.

  • custom_dimension_object (Google::Apis::AnalyticsV3::CustomDimension) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



588
589
590
591
592
593
594
595
596
597
598
599
600
# File 'generated/google/apis/analytics_v3/service.rb', line 588

def insert_custom_dimension(, web_property_id, custom_dimension_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', options)
  command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
  command.request_object = custom_dimension_object
  command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
  command.response_class = Google::Apis::AnalyticsV3::CustomDimension
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_custom_metric(account_id, web_property_id, custom_metric_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::CustomMetric

Create a new custom metric.

Parameters:

  • account_id (String)

    Account ID for the custom metric to create.

  • web_property_id (String)

    Web property ID for the custom dimension to create.

  • custom_metric_object (Google::Apis::AnalyticsV3::CustomMetric) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



801
802
803
804
805
806
807
808
809
810
811
812
813
# File 'generated/google/apis/analytics_v3/service.rb', line 801

def insert_custom_metric(, web_property_id, custom_metric_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', options)
  command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
  command.request_object = custom_metric_object
  command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
  command.response_class = Google::Apis::AnalyticsV3::CustomMetric
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_experiment(account_id, web_property_id, profile_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Experiment

Create a new experiment.

Parameters:

  • account_id (String)

    Account ID to create the experiment for.

  • web_property_id (String)

    Web property ID to create the experiment for.

  • profile_id (String)

    View (Profile) ID to create the experiment for.

  • experiment_object (Google::Apis::AnalyticsV3::Experiment) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
# File 'generated/google/apis/analytics_v3/service.rb', line 1059

def insert_experiment(, web_property_id, profile_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', options)
  command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation
  command.request_object = experiment_object
  command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
  command.response_class = Google::Apis::AnalyticsV3::Experiment
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_filter(account_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Filter

Create a new filter.

Parameters:

  • account_id (String)

    Account ID to create filter for.

  • filter_object (Google::Apis::AnalyticsV3::Filter) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
# File 'generated/google/apis/analytics_v3/service.rb', line 1305

def insert_filter(, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/filters', options)
  command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
  command.request_object = filter_object
  command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
  command.response_class = Google::Apis::AnalyticsV3::Filter
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_goal(account_id, web_property_id, profile_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Goal

Create a new goal.

Parameters:

  • account_id (String)

    Account ID to create the goal for.

  • web_property_id (String)

    Web property ID to create the goal for.

  • profile_id (String)

    View (Profile) ID to create the goal for.

  • goal_object (Google::Apis::AnalyticsV3::Goal) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
# File 'generated/google/apis/analytics_v3/service.rb', line 1505

def insert_goal(, web_property_id, profile_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', options)
  command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation
  command.request_object = goal_object
  command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
  command.response_class = Google::Apis::AnalyticsV3::Goal
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_management_remarketing_audience(account_id, web_property_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::RemarketingAudience

Creates a new remarketing audience.

Parameters:

  • account_id (String)

    The account ID for which to create the remarketing audience.

  • web_property_id (String)

    Web property ID for which to create the remarketing audience.

  • remarketing_audience_object (Google::Apis::AnalyticsV3::RemarketingAudience) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
# File 'generated/google/apis/analytics_v3/service.rb', line 2447

def insert_management_remarketing_audience(, web_property_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences', options)
  command.request_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
  command.request_object = remarketing_audience_object
  command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
  command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_profile(account_id, web_property_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Profile

Create a new view (profile).

Parameters:

  • account_id (String)

    Account ID to create the view (profile) for.

  • web_property_id (String)

    Web property ID to create the view (profile) for.

  • profile_object (Google::Apis::AnalyticsV3::Profile) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
# File 'generated/google/apis/analytics_v3/service.rb', line 2201

def insert_profile(, web_property_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', options)
  command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
  command.request_object = profile_object
  command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
  command.response_class = Google::Apis::AnalyticsV3::Profile
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Create a new profile filter link.

Parameters:

  • account_id (String)

    Account ID to create profile filter link for.

  • web_property_id (String)

    Web property Id to create profile filter link for.

  • profile_id (String)

    Profile ID to create filter link for.

  • profile_filter_link_object (Google::Apis::AnalyticsV3::ProfileFilterLink) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
# File 'generated/google/apis/analytics_v3/service.rb', line 1769

def insert_profile_filter_link(, web_property_id, profile_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', options)
  command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
  command.request_object = profile_filter_link_object
  command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLink
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Adds a new user to the given view (profile).

Parameters:

  • account_id (String)

    Account ID to create the user link for.

  • web_property_id (String)

    Web Property ID to create the user link for.

  • profile_id (String)

    View (Profile) ID to create the user link for.

  • entity_user_link_object (Google::Apis::AnalyticsV3::EntityUserLink) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
# File 'generated/google/apis/analytics_v3/service.rb', line 1990

def insert_profile_user_link(, web_property_id, profile_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', options)
  command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
  command.request_object = entity_user_link_object
  command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityUserLink
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_unsampled_report(account_id, web_property_id, profile_id, unsampled_report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::UnsampledReport

Create a new unsampled report.

Parameters:

  • account_id (String)

    Account ID to create the unsampled report for.

  • web_property_id (String)

    Web property ID to create the unsampled report for.

  • profile_id (String)

    View (Profile) ID to create the unsampled report for.

  • unsampled_report_object (Google::Apis::AnalyticsV3::UnsampledReport) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
# File 'generated/google/apis/analytics_v3/service.rb', line 2736

def insert_unsampled_report(, web_property_id, profile_id, unsampled_report_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', options)
  command.request_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation
  command.request_object = unsampled_report_object
  command.response_representation = Google::Apis::AnalyticsV3::UnsampledReport::Representation
  command.response_class = Google::Apis::AnalyticsV3::UnsampledReport
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_web_property(account_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::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.

Parameters:

  • account_id (String)

    Account ID to create the web property for.

  • webproperty_object (Google::Apis::AnalyticsV3::Webproperty) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
# File 'generated/google/apis/analytics_v3/service.rb', line 3281

def insert_web_property(, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties', options)
  command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
  command.request_object = webproperty_object
  command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
  command.response_class = Google::Apis::AnalyticsV3::Webproperty
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Creates a webProperty-AdWords link.

Parameters:

  • account_id (String)

    ID of the Google Analytics account to create the link for.

  • web_property_id (String)

    Web property ID to create the link for.

  • entity_ad_words_link_object (Google::Apis::AnalyticsV3::EntityAdWordsLink) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
# File 'generated/google/apis/analytics_v3/service.rb', line 3078

def insert_web_property_ad_words_link(, web_property_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', options)
  command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
  command.request_object = entity_ad_words_link_object
  command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLink
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Adds a new user to the given web property.

Parameters:

  • account_id (String)

    Account ID to create the user link for.

  • web_property_id (String)

    Web Property ID to create the user link for.

  • entity_user_link_object (Google::Apis::AnalyticsV3::EntityUserLink) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
# File 'generated/google/apis/analytics_v3/service.rb', line 3475

def insert_web_property_user_link(, web_property_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', options)
  command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
  command.request_object = entity_user_link_object
  command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityUserLink
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_account_summaries(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::AccountSummaries

Lists account summaries (lightweight tree comprised of accounts/properties/ profiles) to which the user has access.

Parameters:

  • max_results (Fixnum)

    The maximum number of account summaries to include in this response, where the largest acceptable value is 1000.

  • start_index (Fixnum)

    An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



283
284
285
286
287
288
289
290
291
292
293
# File 'generated/google/apis/analytics_v3/service.rb', line 283

def (max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accountSummaries', options)
  command.response_representation = Google::Apis::AnalyticsV3::AccountSummaries::Representation
  command.response_class = Google::Apis::AnalyticsV3::AccountSummaries
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Lists account-user links for a given account.

Parameters:

  • account_id (String)

    Account ID to retrieve the user links for.

  • max_results (Fixnum)

    The maximum number of account-user links to include in this response.

  • start_index (Fixnum)

    An index of the first account-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



392
393
394
395
396
397
398
399
400
401
402
403
# File 'generated/google/apis/analytics_v3/service.rb', line 392

def (, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/entityUserLinks', options)
  command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks
  command.params['accountId'] =  unless .nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_accounts(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Accounts

Lists all accounts to which the user has access.

Parameters:

  • max_results (Fixnum)

    The maximum number of accounts to include in this response.

  • start_index (Fixnum)

    An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



469
470
471
472
473
474
475
476
477
478
479
# File 'generated/google/apis/analytics_v3/service.rb', line 469

def list_accounts(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts', options)
  command.response_representation = Google::Apis::AnalyticsV3::Accounts::Representation
  command.response_class = Google::Apis::AnalyticsV3::Accounts
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_custom_data_sources(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::CustomDataSources

List custom data sources to which the user has access.

Parameters:

  • account_id (String)

    Account Id for the custom data sources to retrieve.

  • web_property_id (String)

    Web property Id for the custom data sources to retrieve.

  • max_results (Fixnum)

    The maximum number of custom data sources to include in this response.

  • start_index (Fixnum)

    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.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



510
511
512
513
514
515
516
517
518
519
520
521
522
# File 'generated/google/apis/analytics_v3/service.rb', line 510

def list_custom_data_sources(, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources', options)
  command.response_representation = Google::Apis::AnalyticsV3::CustomDataSources::Representation
  command.response_class = Google::Apis::AnalyticsV3::CustomDataSources
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_custom_dimensions(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::CustomDimensions

Lists custom dimensions to which the user has access.

Parameters:

  • account_id (String)

    Account ID for the custom dimensions to retrieve.

  • web_property_id (String)

    Web property ID for the custom dimensions to retrieve.

  • max_results (Fixnum)

    The maximum number of custom dimensions to include in this response.

  • start_index (Fixnum)

    An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



631
632
633
634
635
636
637
638
639
640
641
642
643
# File 'generated/google/apis/analytics_v3/service.rb', line 631

def list_custom_dimensions(, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', options)
  command.response_representation = Google::Apis::AnalyticsV3::CustomDimensions::Representation
  command.response_class = Google::Apis::AnalyticsV3::CustomDimensions
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_custom_metrics(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::CustomMetrics

Lists custom metrics to which the user has access.

Parameters:

  • account_id (String)

    Account ID for the custom metrics to retrieve.

  • web_property_id (String)

    Web property ID for the custom metrics to retrieve.

  • max_results (Fixnum)

    The maximum number of custom metrics to include in this response.

  • start_index (Fixnum)

    An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



844
845
846
847
848
849
850
851
852
853
854
855
856
# File 'generated/google/apis/analytics_v3/service.rb', line 844

def list_custom_metrics(, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', options)
  command.response_representation = Google::Apis::AnalyticsV3::CustomMetrics::Representation
  command.response_class = Google::Apis::AnalyticsV3::CustomMetrics
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_experiments(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Experiments

Lists experiments to which the user has access.

Parameters:

  • account_id (String)

    Account ID to retrieve experiments for.

  • web_property_id (String)

    Web property ID to retrieve experiments for.

  • profile_id (String)

    View (Profile) ID to retrieve experiments for.

  • max_results (Fixnum)

    The maximum number of experiments to include in this response.

  • start_index (Fixnum)

    An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
# File 'generated/google/apis/analytics_v3/service.rb', line 1105

def list_experiments(, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', options)
  command.response_representation = Google::Apis::AnalyticsV3::Experiments::Representation
  command.response_class = Google::Apis::AnalyticsV3::Experiments
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_filters(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Filters

Lists all filters for an account

Parameters:

  • account_id (String)

    Account ID to retrieve filters for.

  • max_results (Fixnum)

    The maximum number of filters to include in this response.

  • start_index (Fixnum)

    An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
# File 'generated/google/apis/analytics_v3/service.rb', line 1345

def list_filters(, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/filters', options)
  command.response_representation = Google::Apis::AnalyticsV3::Filters::Representation
  command.response_class = Google::Apis::AnalyticsV3::Filters
  command.params['accountId'] =  unless .nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_goals(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Goals

Lists goals to which the user has access.

Parameters:

  • account_id (String)

    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.

  • web_property_id (String)

    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.

  • profile_id (String)

    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.

  • max_results (Fixnum)

    The maximum number of goals to include in this response.

  • start_index (Fixnum)

    An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
# File 'generated/google/apis/analytics_v3/service.rb', line 1555

def list_goals(, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', options)
  command.response_representation = Google::Apis::AnalyticsV3::Goals::Representation
  command.response_class = Google::Apis::AnalyticsV3::Goals
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_management_remarketing_audiences(account_id, web_property_id, max_results: nil, start_index: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::RemarketingAudiences

Lists remarketing audiences to which the user has access.

Parameters:

  • account_id (String)

    The account ID of the remarketing audiences to retrieve.

  • web_property_id (String)

    The web property ID of the remarketing audiences to retrieve.

  • max_results (Fixnum)

    The maximum number of remarketing audiences to include in this response.

  • start_index (Fixnum)

    An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • type (String)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
# File 'generated/google/apis/analytics_v3/service.rb', line 2491

def list_management_remarketing_audiences(, web_property_id, max_results: nil, start_index: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences', options)
  command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudiences::Representation
  command.response_class = Google::Apis::AnalyticsV3::RemarketingAudiences
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['type'] = type unless type.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_metadata_columns(report_type, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Columns

Lists all columns for a report type

Parameters:

  • report_type (String)

    Report type. Allowed Values: 'ga'. Where 'ga' corresponds to the Core Reporting API

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
# File 'generated/google/apis/analytics_v3/service.rb', line 3599

def (report_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'metadata/{reportType}/columns', options)
  command.response_representation = Google::Apis::AnalyticsV3::Columns::Representation
  command.response_class = Google::Apis::AnalyticsV3::Columns
  command.params['reportType'] = report_type unless report_type.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Lists all profile filter links for a profile.

Parameters:

  • account_id (String)

    Account ID to retrieve profile filter links for.

  • web_property_id (String)

    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.

  • profile_id (String)

    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.

  • max_results (Fixnum)

    The maximum number of profile filter links to include in this response.

  • start_index (Fixnum)

    An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
# File 'generated/google/apis/analytics_v3/service.rb', line 1818

def list_profile_filter_links(, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', options)
  command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLinks::Representation
  command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLinks
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Lists profile-user links for a given view (profile).

Parameters:

  • account_id (String)

    Account ID which the given view (profile) belongs to.

  • web_property_id (String)

    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.

  • profile_id (String)

    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.

  • max_results (Fixnum)

    The maximum number of profile-user links to include in this response.

  • start_index (Fixnum)

    An index of the first profile-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
# File 'generated/google/apis/analytics_v3/service.rb', line 2040

def list_profile_user_links(, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', options)
  command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_profiles(account_id, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Profiles

Lists views (profiles) to which the user has access.

Parameters:

  • account_id (String)

    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.

  • web_property_id (String)

    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.

  • max_results (Fixnum)

    The maximum number of views (profiles) to include in this response.

  • start_index (Fixnum)

    An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
# File 'generated/google/apis/analytics_v3/service.rb', line 2248

def list_profiles(, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', options)
  command.response_representation = Google::Apis::AnalyticsV3::Profiles::Representation
  command.response_class = Google::Apis::AnalyticsV3::Profiles
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_segments(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Segments

Lists segments to which the user has access.

Parameters:

  • max_results (Fixnum)

    The maximum number of segments to include in this response.

  • start_index (Fixnum)

    An index of the first segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
# File 'generated/google/apis/analytics_v3/service.rb', line 2615

def list_segments(max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/segments', options)
  command.response_representation = Google::Apis::AnalyticsV3::Segments::Representation
  command.response_class = Google::Apis::AnalyticsV3::Segments
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_unsampled_reports(account_id, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::UnsampledReports

Lists unsampled reports to which the user has access.

Parameters:

  • account_id (String)

    Account ID to retrieve unsampled reports for. Must be a specific account ID, ~ all is not supported.

  • web_property_id (String)

    Web property ID to retrieve unsampled reports for. Must be a specific web property ID, ~all is not supported.

  • profile_id (String)

    View (Profile) ID to retrieve unsampled reports for. Must be a specific view ( profile) ID, ~all is not supported.

  • max_results (Fixnum)

    The maximum number of unsampled reports to include in this response.

  • start_index (Fixnum)

    An index of the first unsampled report to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
# File 'generated/google/apis/analytics_v3/service.rb', line 2785

def list_unsampled_reports(, web_property_id, profile_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', options)
  command.response_representation = Google::Apis::AnalyticsV3::UnsampledReports::Representation
  command.response_class = Google::Apis::AnalyticsV3::UnsampledReports
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_uploads(account_id, web_property_id, custom_data_source_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Uploads

List uploads to which the user has access.

Parameters:

  • account_id (String)

    Account Id for the uploads to retrieve.

  • web_property_id (String)

    Web property Id for the uploads to retrieve.

  • custom_data_source_id (String)

    Custom data source Id for uploads to retrieve.

  • max_results (Fixnum)

    The maximum number of uploads to include in this response.

  • start_index (Fixnum)

    A 1-based index of the first upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
# File 'generated/google/apis/analytics_v3/service.rb', line 2913

def list_uploads(, web_property_id, custom_data_source_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options)
  command.response_representation = Google::Apis::AnalyticsV3::Uploads::Representation
  command.response_class = Google::Apis::AnalyticsV3::Uploads
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['customDataSourceId'] = custom_data_source_id unless custom_data_source_id.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_web_properties(account_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Webproperties

Lists web properties to which the user has access.

Parameters:

  • account_id (String)

    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.

  • max_results (Fixnum)

    The maximum number of web properties to include in this response.

  • start_index (Fixnum)

    An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
# File 'generated/google/apis/analytics_v3/service.rb', line 3322

def list_web_properties(, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties', options)
  command.response_representation = Google::Apis::AnalyticsV3::Webproperties::Representation
  command.response_class = Google::Apis::AnalyticsV3::Webproperties
  command.params['accountId'] =  unless .nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Lists webProperty-AdWords links for a given web property.

Parameters:

  • account_id (String)

    ID of the account which the given web property belongs to.

  • web_property_id (String)

    Web property ID to retrieve the AdWords links for.

  • max_results (Fixnum)

    The maximum number of webProperty-AdWords links to include in this response.

  • start_index (Fixnum)

    An index of the first webProperty-AdWords link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
# File 'generated/google/apis/analytics_v3/service.rb', line 3121

def list_web_property_ad_words_links(, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', options)
  command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLinks::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLinks
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Lists webProperty-user links for a given web property.

Parameters:

  • account_id (String)

    Account ID which the given web property belongs to.

  • web_property_id (String)

    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.

  • max_results (Fixnum)

    The maximum number of webProperty-user Links to include in this response.

  • start_index (Fixnum)

    An index of the first webProperty-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
# File 'generated/google/apis/analytics_v3/service.rb', line 3520

def list_web_property_user_links(, web_property_id, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', options)
  command.response_representation = Google::Apis::AnalyticsV3::EntityUserLinks::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityUserLinks
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['max-results'] = max_results unless max_results.nil?
  command.query['start-index'] = start_index unless start_index.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#patch_custom_dimension(account_id, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::CustomDimension

Updates an existing custom dimension. This method supports patch semantics.

Parameters:

  • account_id (String)

    Account ID for the custom dimension to update.

  • web_property_id (String)

    Web property ID for the custom dimension to update.

  • custom_dimension_id (String)

    Custom dimension ID for the custom dimension to update.

  • custom_dimension_object (Google::Apis::AnalyticsV3::CustomDimension) (defaults to: nil)
  • ignore_custom_data_source_links (Boolean)

    Force the update and ignore any warnings related to the custom dimension being linked to a custom data source / data set.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
# File 'generated/google/apis/analytics_v3/service.rb', line 675

def patch_custom_dimension(, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
  command.request_object = custom_dimension_object
  command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
  command.response_class = Google::Apis::AnalyticsV3::CustomDimension
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['customDimensionId'] = custom_dimension_id unless custom_dimension_id.nil?
  command.query['ignoreCustomDataSourceLinks'] = ignore_custom_data_source_links unless ignore_custom_data_source_links.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#patch_custom_metric(account_id, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::CustomMetric

Updates an existing custom metric. This method supports patch semantics.

Parameters:

  • account_id (String)

    Account ID for the custom metric to update.

  • web_property_id (String)

    Web property ID for the custom metric to update.

  • custom_metric_id (String)

    Custom metric ID for the custom metric to update.

  • custom_metric_object (Google::Apis::AnalyticsV3::CustomMetric) (defaults to: nil)
  • ignore_custom_data_source_links (Boolean)

    Force the update and ignore any warnings related to the custom metric being linked to a custom data source / data set.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
# File 'generated/google/apis/analytics_v3/service.rb', line 888

def patch_custom_metric(, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
  command.request_object = custom_metric_object
  command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
  command.response_class = Google::Apis::AnalyticsV3::CustomMetric
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['customMetricId'] = custom_metric_id unless custom_metric_id.nil?
  command.query['ignoreCustomDataSourceLinks'] = ignore_custom_data_source_links unless ignore_custom_data_source_links.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#patch_experiment(account_id, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Experiment

Update an existing experiment. This method supports patch semantics.

Parameters:

  • account_id (String)

    Account ID of the experiment to update.

  • web_property_id (String)

    Web property ID of the experiment to update.

  • profile_id (String)

    View (Profile) ID of the experiment to update.

  • experiment_id (String)

    Experiment ID of the experiment to update.

  • experiment_object (Google::Apis::AnalyticsV3::Experiment) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
# File 'generated/google/apis/analytics_v3/service.rb', line 1149

def patch_experiment(, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation
  command.request_object = experiment_object
  command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
  command.response_class = Google::Apis::AnalyticsV3::Experiment
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['experimentId'] = experiment_id unless experiment_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#patch_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Filter

Updates an existing filter. This method supports patch semantics.

Parameters:

  • account_id (String)

    Account ID to which the filter belongs.

  • filter_id (String)

    ID of the filter to be updated.

  • filter_object (Google::Apis::AnalyticsV3::Filter) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
# File 'generated/google/apis/analytics_v3/service.rb', line 1383

def patch_filter(, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:patch, 'management/accounts/{accountId}/filters/{filterId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
  command.request_object = filter_object
  command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
  command.response_class = Google::Apis::AnalyticsV3::Filter
  command.params['accountId'] =  unless .nil?
  command.params['filterId'] = filter_id unless filter_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#patch_goal(account_id, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Goal

Updates an existing goal. This method supports patch semantics.

Parameters:

  • account_id (String)

    Account ID to update the goal.

  • web_property_id (String)

    Web property ID to update the goal.

  • profile_id (String)

    View (Profile) ID to update the goal.

  • goal_id (String)

    Index of the goal to be updated.

  • goal_object (Google::Apis::AnalyticsV3::Goal) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
# File 'generated/google/apis/analytics_v3/service.rb', line 1599

def patch_goal(, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation
  command.request_object = goal_object
  command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
  command.response_class = Google::Apis::AnalyticsV3::Goal
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['goalId'] = goal_id unless goal_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#patch_management_remarketing_audience(account_id, web_property_id, remarketing_audience_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::RemarketingAudience

Updates an existing remarketing audience. This method supports patch semantics.

Parameters:

  • account_id (String)

    The account ID of the remarketing audience to update.

  • web_property_id (String)

    The web property ID of the remarketing audience to update.

  • remarketing_audience_id (String)

    The ID of the remarketing audience to update.

  • remarketing_audience_object (Google::Apis::AnalyticsV3::RemarketingAudience) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
# File 'generated/google/apis/analytics_v3/service.rb', line 2533

def patch_management_remarketing_audience(, web_property_id, remarketing_audience_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
  command.request_object = remarketing_audience_object
  command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
  command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['remarketingAudienceId'] = remarketing_audience_id unless remarketing_audience_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#patch_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Profile

Updates an existing view (profile). This method supports patch semantics.

Parameters:

  • account_id (String)

    Account ID to which the view (profile) belongs

  • web_property_id (String)

    Web property ID to which the view (profile) belongs

  • profile_id (String)

    ID of the view (profile) to be updated.

  • profile_object (Google::Apis::AnalyticsV3::Profile) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
# File 'generated/google/apis/analytics_v3/service.rb', line 2289

def patch_profile(, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
  command.request_object = profile_object
  command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
  command.response_class = Google::Apis::AnalyticsV3::Profile
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Update an existing profile filter link. This method supports patch semantics.

Parameters:

  • account_id (String)

    Account ID to which profile filter link belongs.

  • web_property_id (String)

    Web property Id to which profile filter link belongs

  • profile_id (String)

    Profile ID to which filter link belongs

  • link_id (String)

    ID of the profile filter link to be updated.

  • profile_filter_link_object (Google::Apis::AnalyticsV3::ProfileFilterLink) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
# File 'generated/google/apis/analytics_v3/service.rb', line 1862

def patch_profile_filter_link(, web_property_id, profile_id, link_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
  command.request_object = profile_filter_link_object
  command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLink
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['linkId'] = link_id unless link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#patch_web_property(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Webproperty

Updates an existing web property. This method supports patch semantics.

Parameters:

  • account_id (String)

    Account ID to which the web property belongs

  • web_property_id (String)

    Web property ID

  • webproperty_object (Google::Apis::AnalyticsV3::Webproperty) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
# File 'generated/google/apis/analytics_v3/service.rb', line 3360

def patch_web_property(, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
  command.request_object = webproperty_object
  command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
  command.response_class = Google::Apis::AnalyticsV3::Webproperty
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Updates an existing webProperty-AdWords link. This method supports patch semantics.

Parameters:

  • account_id (String)

    ID of the account which the given web property belongs to.

  • web_property_id (String)

    Web property ID to retrieve the AdWords link for.

  • web_property_ad_words_link_id (String)

    Web property-AdWords link ID.

  • entity_ad_words_link_object (Google::Apis::AnalyticsV3::EntityAdWordsLink) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
# File 'generated/google/apis/analytics_v3/service.rb', line 3163

def patch_web_property_ad_words_link(, web_property_id, web_property_ad_words_link_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:patch, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
  command.request_object = entity_ad_words_link_object
  command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLink
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['webPropertyAdWordsLinkId'] = web_property_ad_words_link_id unless web_property_ad_words_link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Updates permissions for an existing user on the given account.

Parameters:

  • account_id (String)

    Account ID to update the account-user link for.

  • link_id (String)

    Link ID to update the account-user link for.

  • entity_user_link_object (Google::Apis::AnalyticsV3::EntityUserLink) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



430
431
432
433
434
435
436
437
438
439
440
441
442
# File 'generated/google/apis/analytics_v3/service.rb', line 430

def (, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'management/accounts/{accountId}/entityUserLinks/{linkId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
  command.request_object = entity_user_link_object
  command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityUserLink
  command.params['accountId'] =  unless .nil?
  command.params['linkId'] = link_id unless link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_custom_dimension(account_id, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::CustomDimension

Updates an existing custom dimension.

Parameters:

  • account_id (String)

    Account ID for the custom dimension to update.

  • web_property_id (String)

    Web property ID for the custom dimension to update.

  • custom_dimension_id (String)

    Custom dimension ID for the custom dimension to update.

  • custom_dimension_object (Google::Apis::AnalyticsV3::CustomDimension) (defaults to: nil)
  • ignore_custom_data_source_links (Boolean)

    Force the update and ignore any warnings related to the custom dimension being linked to a custom data source / data set.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
# File 'generated/google/apis/analytics_v3/service.rb', line 721

def update_custom_dimension(, web_property_id, custom_dimension_id, custom_dimension_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
  command.request_object = custom_dimension_object
  command.response_representation = Google::Apis::AnalyticsV3::CustomDimension::Representation
  command.response_class = Google::Apis::AnalyticsV3::CustomDimension
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['customDimensionId'] = custom_dimension_id unless custom_dimension_id.nil?
  command.query['ignoreCustomDataSourceLinks'] = ignore_custom_data_source_links unless ignore_custom_data_source_links.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_custom_metric(account_id, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::CustomMetric

Updates an existing custom metric.

Parameters:

  • account_id (String)

    Account ID for the custom metric to update.

  • web_property_id (String)

    Web property ID for the custom metric to update.

  • custom_metric_id (String)

    Custom metric ID for the custom metric to update.

  • custom_metric_object (Google::Apis::AnalyticsV3::CustomMetric) (defaults to: nil)
  • ignore_custom_data_source_links (Boolean)

    Force the update and ignore any warnings related to the custom metric being linked to a custom data source / data set.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
# File 'generated/google/apis/analytics_v3/service.rb', line 934

def update_custom_metric(, web_property_id, custom_metric_id, custom_metric_object = nil, ignore_custom_data_source_links: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
  command.request_object = custom_metric_object
  command.response_representation = Google::Apis::AnalyticsV3::CustomMetric::Representation
  command.response_class = Google::Apis::AnalyticsV3::CustomMetric
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['customMetricId'] = custom_metric_id unless custom_metric_id.nil?
  command.query['ignoreCustomDataSourceLinks'] = ignore_custom_data_source_links unless ignore_custom_data_source_links.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_experiment(account_id, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Experiment

Update an existing experiment.

Parameters:

  • account_id (String)

    Account ID of the experiment to update.

  • web_property_id (String)

    Web property ID of the experiment to update.

  • profile_id (String)

    View (Profile) ID of the experiment to update.

  • experiment_id (String)

    Experiment ID of the experiment to update.

  • experiment_object (Google::Apis::AnalyticsV3::Experiment) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
# File 'generated/google/apis/analytics_v3/service.rb', line 1194

def update_experiment(, web_property_id, profile_id, experiment_id, experiment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::Experiment::Representation
  command.request_object = experiment_object
  command.response_representation = Google::Apis::AnalyticsV3::Experiment::Representation
  command.response_class = Google::Apis::AnalyticsV3::Experiment
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['experimentId'] = experiment_id unless experiment_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_filter(account_id, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Filter

Updates an existing filter.

Parameters:

  • account_id (String)

    Account ID to which the filter belongs.

  • filter_id (String)

    ID of the filter to be updated.

  • filter_object (Google::Apis::AnalyticsV3::Filter) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
# File 'generated/google/apis/analytics_v3/service.rb', line 1422

def update_filter(, filter_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'management/accounts/{accountId}/filters/{filterId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::Filter::Representation
  command.request_object = filter_object
  command.response_representation = Google::Apis::AnalyticsV3::Filter::Representation
  command.response_class = Google::Apis::AnalyticsV3::Filter
  command.params['accountId'] =  unless .nil?
  command.params['filterId'] = filter_id unless filter_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_goal(account_id, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Goal

Updates an existing goal.

Parameters:

  • account_id (String)

    Account ID to update the goal.

  • web_property_id (String)

    Web property ID to update the goal.

  • profile_id (String)

    View (Profile) ID to update the goal.

  • goal_id (String)

    Index of the goal to be updated.

  • goal_object (Google::Apis::AnalyticsV3::Goal) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
# File 'generated/google/apis/analytics_v3/service.rb', line 1644

def update_goal(, web_property_id, profile_id, goal_id, goal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::Goal::Representation
  command.request_object = goal_object
  command.response_representation = Google::Apis::AnalyticsV3::Goal::Representation
  command.response_class = Google::Apis::AnalyticsV3::Goal
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['goalId'] = goal_id unless goal_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_management_remarketing_audience(account_id, web_property_id, remarketing_audience_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::RemarketingAudience

Updates an existing remarketing audience.

Parameters:

  • account_id (String)

    The account ID of the remarketing audience to update.

  • web_property_id (String)

    The web property ID of the remarketing audience to update.

  • remarketing_audience_id (String)

    The ID of the remarketing audience to update.

  • remarketing_audience_object (Google::Apis::AnalyticsV3::RemarketingAudience) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
# File 'generated/google/apis/analytics_v3/service.rb', line 2575

def update_management_remarketing_audience(, web_property_id, remarketing_audience_id, remarketing_audience_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
  command.request_object = remarketing_audience_object
  command.response_representation = Google::Apis::AnalyticsV3::RemarketingAudience::Representation
  command.response_class = Google::Apis::AnalyticsV3::RemarketingAudience
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['remarketingAudienceId'] = remarketing_audience_id unless remarketing_audience_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_profile(account_id, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Profile

Updates an existing view (profile).

Parameters:

  • account_id (String)

    Account ID to which the view (profile) belongs

  • web_property_id (String)

    Web property ID to which the view (profile) belongs

  • profile_id (String)

    ID of the view (profile) to be updated.

  • profile_object (Google::Apis::AnalyticsV3::Profile) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
# File 'generated/google/apis/analytics_v3/service.rb', line 2331

def update_profile(, web_property_id, profile_id, profile_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::Profile::Representation
  command.request_object = profile_object
  command.response_representation = Google::Apis::AnalyticsV3::Profile::Representation
  command.response_class = Google::Apis::AnalyticsV3::Profile
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Update an existing profile filter link.

Parameters:

  • account_id (String)

    Account ID to which profile filter link belongs.

  • web_property_id (String)

    Web property Id to which profile filter link belongs

  • profile_id (String)

    Profile ID to which filter link belongs

  • link_id (String)

    ID of the profile filter link to be updated.

  • profile_filter_link_object (Google::Apis::AnalyticsV3::ProfileFilterLink) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
# File 'generated/google/apis/analytics_v3/service.rb', line 1907

def update_profile_filter_link(, web_property_id, profile_id, link_id, profile_filter_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
  command.request_object = profile_filter_link_object
  command.response_representation = Google::Apis::AnalyticsV3::ProfileFilterLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::ProfileFilterLink
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['linkId'] = link_id unless link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Updates permissions for an existing user on the given view (profile).

Parameters:

  • account_id (String)

    Account ID to update the user link for.

  • web_property_id (String)

    Web Property ID to update the user link for.

  • profile_id (String)

    View (Profile ID) to update the user link for.

  • link_id (String)

    Link ID to update the user link for.

  • entity_user_link_object (Google::Apis::AnalyticsV3::EntityUserLink) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
# File 'generated/google/apis/analytics_v3/service.rb', line 2084

def update_profile_user_link(, web_property_id, profile_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
  command.request_object = entity_user_link_object
  command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityUserLink
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['profileId'] = profile_id unless profile_id.nil?
  command.params['linkId'] = link_id unless link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_web_property(account_id, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Webproperty

Updates an existing web property.

Parameters:

  • account_id (String)

    Account ID to which the web property belongs

  • web_property_id (String)

    Web property ID

  • webproperty_object (Google::Apis::AnalyticsV3::Webproperty) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
# File 'generated/google/apis/analytics_v3/service.rb', line 3399

def update_web_property(, web_property_id, webproperty_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
  command.request_object = webproperty_object
  command.response_representation = Google::Apis::AnalyticsV3::Webproperty::Representation
  command.response_class = Google::Apis::AnalyticsV3::Webproperty
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Updates an existing webProperty-AdWords link.

Parameters:

  • account_id (String)

    ID of the account which the given web property belongs to.

  • web_property_id (String)

    Web property ID to retrieve the AdWords link for.

  • web_property_ad_words_link_id (String)

    Web property-AdWords link ID.

  • entity_ad_words_link_object (Google::Apis::AnalyticsV3::EntityAdWordsLink) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
# File 'generated/google/apis/analytics_v3/service.rb', line 3205

def update_web_property_ad_words_link(, web_property_id, web_property_ad_words_link_id, entity_ad_words_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
  command.request_object = entity_ad_words_link_object
  command.response_representation = Google::Apis::AnalyticsV3::EntityAdWordsLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityAdWordsLink
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['webPropertyAdWordsLinkId'] = web_property_ad_words_link_id unless web_property_ad_words_link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Updates permissions for an existing user on the given web property.

Parameters:

  • account_id (String)

    Account ID to update the account-user link for.

  • web_property_id (String)

    Web property ID to update the account-user link for.

  • link_id (String)

    Link ID to update the account-user link for.

  • entity_user_link_object (Google::Apis::AnalyticsV3::EntityUserLink) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
# File 'generated/google/apis/analytics_v3/service.rb', line 3561

def update_web_property_user_link(, web_property_id, link_id, entity_user_link_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', options)
  command.request_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
  command.request_object = entity_user_link_object
  command.response_representation = Google::Apis::AnalyticsV3::EntityUserLink::Representation
  command.response_class = Google::Apis::AnalyticsV3::EntityUserLink
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['linkId'] = link_id unless link_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#upload_data(account_id, web_property_id, custom_data_source_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::Upload

Upload data for a custom data source.

Parameters:

  • account_id (String)

    Account Id associated with the upload.

  • web_property_id (String)

    Web property UA-string associated with the upload.

  • custom_data_source_id (String)

    Custom data source Id to which the data being uploaded belongs.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • upload_source (IO, String)

    IO stream or filename containing content to upload

  • content_type (String)

    Content type of the uploaded content.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
# File 'generated/google/apis/analytics_v3/service.rb', line 2958

def upload_data(, web_property_id, custom_data_source_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
  if upload_source.nil?
    command =  make_simple_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options)
  else
    command = make_upload_command(:post, 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', options)
    command.upload_source = upload_source
    command.upload_content_type = content_type
  end
  command.response_representation = Google::Apis::AnalyticsV3::Upload::Representation
  command.response_class = Google::Apis::AnalyticsV3::Upload
  command.params['accountId'] =  unless .nil?
  command.params['webPropertyId'] = web_property_id unless web_property_id.nil?
  command.params['customDataSourceId'] = custom_data_source_id unless custom_data_source_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#upsert_user_deletion_user_deletion_request(user_deletion_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::AnalyticsV3::UserDeletionRequest

Insert or update a user deletion requests.

Parameters:

  • user_deletion_request_object (Google::Apis::AnalyticsV3::UserDeletionRequest) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
# File 'generated/google/apis/analytics_v3/service.rb', line 3697

def upsert_user_deletion_user_deletion_request(user_deletion_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'userDeletion/userDeletionRequests:upsert', options)
  command.request_representation = Google::Apis::AnalyticsV3::UserDeletionRequest::Representation
  command.request_object = user_deletion_request_object
  command.response_representation = Google::Apis::AnalyticsV3::UserDeletionRequest::Representation
  command.response_class = Google::Apis::AnalyticsV3::UserDeletionRequest
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end