Reference documentation and code samples for the Google Analytics Admin V1alpha API class Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.
Client for the AnalyticsAdminService service.
Service Interface for the Analytics Admin API (GA4).
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the AnalyticsAdminService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all AnalyticsAdminService clients ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.configure do |config| config.timeout = 10.0 end
#acknowledge_user_data_collection
def acknowledge_user_data_collection(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse
def acknowledge_user_data_collection(property: nil, acknowledgement: nil) -> ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponseAcknowledges the terms of user data collection for the specified property.
This acknowledgement must be completed (either in the Google Analytics UI or via this API) before MeasurementProtocolSecret resources may be created.
def acknowledge_user_data_collection(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponseacknowledge_user_data_collection via a request object, either of type
Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def acknowledge_user_data_collection(property: nil, acknowledgement: nil) -> ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponseacknowledge_user_data_collection via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- property (::String) — Required. The property for which to acknowledge user data collection.
-
acknowledgement (::String) — Required. An acknowledgement that the caller of this method understands the terms
of user data collection.
This field must contain the exact value: "I acknowledge that I have the necessary privacy disclosures and rights from my end users for the collection and processing of their data, including the association of such data with the visitation information Google Analytics collects from my site and/or app property."
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new # Call the acknowledge_user_data_collection method. result = client.acknowledge_user_data_collection request # The returned object is of type Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse. p result
#approve_display_video360_advertiser_link_proposal
def approve_display_video360_advertiser_link_proposal(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse
def approve_display_video360_advertiser_link_proposal(name: nil) -> ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponseApproves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal will be deleted and a new DisplayVideo360AdvertiserLink will be created.
def approve_display_video360_advertiser_link_proposal(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponseapprove_display_video360_advertiser_link_proposal via a request object, either of type
Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def approve_display_video360_advertiser_link_proposal(name: nil) -> ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponseapprove_display_video360_advertiser_link_proposal via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new # Call the approve_display_video360_advertiser_link_proposal method. result = client.approve_display_video360_advertiser_link_proposal request # The returned object is of type Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse. p result
#archive_custom_dimension
def archive_custom_dimension(request, options = nil) -> ::Google::Protobuf::Empty
def archive_custom_dimension(name: nil) -> ::Google::Protobuf::EmptyArchives a CustomDimension on a property.
def archive_custom_dimension(request, options = nil) -> ::Google::Protobuf::Emptyarchive_custom_dimension via a request object, either of type
Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def archive_custom_dimension(name: nil) -> ::Google::Protobuf::Emptyarchive_custom_dimension via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the CustomDimension to archive. Example format: properties/1234/customDimensions/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new # Call the archive_custom_dimension method. result = client.archive_custom_dimension request # The returned object is of type Google::Protobuf::Empty. p result
#archive_custom_metric
def archive_custom_metric(request, options = nil) -> ::Google::Protobuf::Empty
def archive_custom_metric(name: nil) -> ::Google::Protobuf::EmptyArchives a CustomMetric on a property.
def archive_custom_metric(request, options = nil) -> ::Google::Protobuf::Emptyarchive_custom_metric via a request object, either of type
Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def archive_custom_metric(name: nil) -> ::Google::Protobuf::Emptyarchive_custom_metric via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new # Call the archive_custom_metric method. result = client.archive_custom_metric request # The returned object is of type Google::Protobuf::Empty. p result
#audit_user_links
def audit_user_links(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AuditUserLink>
def audit_user_links(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AuditUserLink>Lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles.
If a returned user link does not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives them permissions, which is currently only usable/discoverable in the GA or GMP UIs.
def audit_user_links(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AuditUserLink>audit_user_links via a request object, either of type
Google::Analytics::Admin::V1alpha::AuditUserLinksRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::AuditUserLinksRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def audit_user_links(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AuditUserLink>audit_user_links via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: accounts/1234
- page_size (::Integer) — The maximum number of user links to return. The service may return fewer than this value. If unspecified, at most 1000 user links will be returned. The maximum value is 5000; values above 5000 will be coerced to 5000.
-
page_token (::String) — A page token, received from a previous
AuditUserLinkscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toAuditUserLinksmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AuditUserLink>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AuditUserLink>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::AuditUserLinksRequest.new # Call the audit_user_links method. result = client.audit_user_links request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::AuditUserLink. p response end
#batch_create_user_links
def batch_create_user_links(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponse
def batch_create_user_links(parent: nil, notify_new_users: nil, requests: nil) -> ::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponseCreates information about multiple users' links to an account or property.
This method is transactional. If any UserLink cannot be created, none of the UserLinks will be created.
def batch_create_user_links(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponsebatch_create_user_links via a request object, either of type
BatchCreateUserLinksRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def batch_create_user_links(parent: nil, notify_new_users: nil, requests: nil) -> ::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponsebatch_create_user_links via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The account or property that all user links in the request are for. This field is required. The parent field in the CreateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234
- notify_new_users (::Boolean) — Optional. If set, then email the new users notifying them that they've been granted permissions to the resource. Regardless of whether this is set or not, notify_new_user field inside each individual request is ignored.
- requests (::Array<::Google::Analytics::Admin::V1alpha::CreateUserLinkRequest, ::Hash>) — Required. The requests specifying the user links to create. A maximum of 1000 user links can be created in a batch.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::BatchCreateUserLinksRequest.new # Call the batch_create_user_links method. result = client.batch_create_user_links request # The returned object is of type Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponse. p result
#batch_delete_user_links
def batch_delete_user_links(request, options = nil) -> ::Google::Protobuf::Empty
def batch_delete_user_links(parent: nil, requests: nil) -> ::Google::Protobuf::EmptyDeletes information about multiple users' links to an account or property.
def batch_delete_user_links(request, options = nil) -> ::Google::Protobuf::Emptybatch_delete_user_links via a request object, either of type
BatchDeleteUserLinksRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::BatchDeleteUserLinksRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def batch_delete_user_links(parent: nil, requests: nil) -> ::Google::Protobuf::Emptybatch_delete_user_links via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The account or property that all user links in the request are for. The parent of all values for user link names to delete must match this field. Example format: accounts/1234
- requests (::Array<::Google::Analytics::Admin::V1alpha::DeleteUserLinkRequest, ::Hash>) — Required. The requests specifying the user links to update. A maximum of 1000 user links can be updated in a batch.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::BatchDeleteUserLinksRequest.new # Call the batch_delete_user_links method. result = client.batch_delete_user_links request # The returned object is of type Google::Protobuf::Empty. p result
#batch_get_user_links
def batch_get_user_links(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponse
def batch_get_user_links(parent: nil, names: nil) -> ::Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponseGets information about multiple users' links to an account or property.
def batch_get_user_links(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponsebatch_get_user_links via a request object, either of type
BatchGetUserLinksRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::BatchGetUserLinksRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def batch_get_user_links(parent: nil, names: nil) -> ::Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponsebatch_get_user_links via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The account or property that all user links in the request are for. The parent of all provided values for the 'names' field must match this field. Example format: accounts/1234
- names (::Array<::String>) — Required. The names of the user links to retrieve. A maximum of 1000 user links can be retrieved in a batch. Format: accounts/{accountId}/userLinks/{userLinkId}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::BatchGetUserLinksRequest.new # Call the batch_get_user_links method. result = client.batch_get_user_links request # The returned object is of type Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponse. p result
#batch_update_user_links
def batch_update_user_links(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponse
def batch_update_user_links(parent: nil, requests: nil) -> ::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponseUpdates information about multiple users' links to an account or property.
def batch_update_user_links(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponsebatch_update_user_links via a request object, either of type
BatchUpdateUserLinksRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def batch_update_user_links(parent: nil, requests: nil) -> ::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponsebatch_update_user_links via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The account or property that all user links in the request are for. The parent field in the UpdateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234
- requests (::Array<::Google::Analytics::Admin::V1alpha::UpdateUserLinkRequest, ::Hash>) — Required. The requests specifying the user links to update. A maximum of 1000 user links can be updated in a batch.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksRequest.new # Call the batch_update_user_links method. result = client.batch_update_user_links request # The returned object is of type Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponse. p result
#cancel_display_video360_advertiser_link_proposal
def cancel_display_video360_advertiser_link_proposal(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal
def cancel_display_video360_advertiser_link_proposal(name: nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposalCancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either:
- Declining a proposal initiated from Display & Video 360
- Withdrawing a proposal initiated from Google Analytics After being cancelled, a proposal will eventually be deleted automatically.
def cancel_display_video360_advertiser_link_proposal(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposalcancel_display_video360_advertiser_link_proposal via a request object, either of type
CancelDisplayVideo360AdvertiserLinkProposalRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def cancel_display_video360_advertiser_link_proposal(name: nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposalcancel_display_video360_advertiser_link_proposal via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new # Call the cancel_display_video360_advertiser_link_proposal method. result = client.cancel_display_video360_advertiser_link_proposal request # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. p result
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the AnalyticsAdminService Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_conversion_event
def create_conversion_event(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::ConversionEvent
def create_conversion_event(conversion_event: nil, parent: nil) -> ::Google::Analytics::Admin::V1alpha::ConversionEventCreates a conversion event with the specified attributes.
def create_conversion_event(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::ConversionEventcreate_conversion_event via a request object, either of type
CreateConversionEventRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_conversion_event(conversion_event: nil, parent: nil) -> ::Google::Analytics::Admin::V1alpha::ConversionEventcreate_conversion_event via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- conversion_event (::Google::Analytics::Admin::V1alpha::ConversionEvent, ::Hash) — Required. The conversion event to create.
- parent (::String) — Required. The resource name of the parent property where this conversion event will be created. Format: properties/123
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::ConversionEvent)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new # Call the create_conversion_event method. result = client.create_conversion_event request # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. p result
#create_custom_dimension
def create_custom_dimension(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::CustomDimension
def create_custom_dimension(parent: nil, custom_dimension: nil) -> ::Google::Analytics::Admin::V1alpha::CustomDimensionCreates a CustomDimension.
def create_custom_dimension(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::CustomDimensioncreate_custom_dimension via a request object, either of type
CreateCustomDimensionRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_custom_dimension(parent: nil, custom_dimension: nil) -> ::Google::Analytics::Admin::V1alpha::CustomDimensioncreate_custom_dimension via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: properties/1234
- custom_dimension (::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash) — Required. The CustomDimension to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::CustomDimension)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new # Call the create_custom_dimension method. result = client.create_custom_dimension request # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. p result
#create_custom_metric
def create_custom_metric(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::CustomMetric
def create_custom_metric(parent: nil, custom_metric: nil) -> ::Google::Analytics::Admin::V1alpha::CustomMetricCreates a CustomMetric.
def create_custom_metric(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::CustomMetriccreate_custom_metric via a request object, either of type
CreateCustomMetricRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_custom_metric(parent: nil, custom_metric: nil) -> ::Google::Analytics::Admin::V1alpha::CustomMetriccreate_custom_metric via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: properties/1234
- custom_metric (::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash) — Required. The CustomMetric to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::CustomMetric)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new # Call the create_custom_metric method. result = client.create_custom_metric request # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. p result
#create_data_stream
def create_data_stream(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DataStream
def create_data_stream(parent: nil, data_stream: nil) -> ::Google::Analytics::Admin::V1alpha::DataStreamCreates a DataStream.
def create_data_stream(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DataStreamcreate_data_stream via a request object, either of type
CreateDataStreamRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_data_stream(parent: nil, data_stream: nil) -> ::Google::Analytics::Admin::V1alpha::DataStreamcreate_data_stream via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: properties/1234
- data_stream (::Google::Analytics::Admin::V1alpha::DataStream, ::Hash) — Required. The DataStream to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::DataStream)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new # Call the create_data_stream method. result = client.create_data_stream request # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. p result
#create_display_video360_advertiser_link
def create_display_video360_advertiser_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink
def create_display_video360_advertiser_link(parent: nil, display_video_360_advertiser_link: nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkCreates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper authorization both on the Google Analytics property and on the Display & Video 360 advertiser. Users who do not have access to the Display & Video 360 advertiser should instead seek to create a DisplayVideo360LinkProposal.
def create_display_video360_advertiser_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkcreate_display_video360_advertiser_link via a request object, either of type
CreateDisplayVideo360AdvertiserLinkRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_display_video360_advertiser_link(parent: nil, display_video_360_advertiser_link: nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkcreate_display_video360_advertiser_link via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: properties/1234
- display_video_360_advertiser_link (::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash) — Required. The DisplayVideo360AdvertiserLink to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new # Call the create_display_video360_advertiser_link method. result = client.create_display_video360_advertiser_link request # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. p result
#create_display_video360_advertiser_link_proposal
def create_display_video360_advertiser_link_proposal(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal
def create_display_video360_advertiser_link_proposal(parent: nil, display_video_360_advertiser_link_proposal: nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposalCreates a DisplayVideo360AdvertiserLinkProposal.
def create_display_video360_advertiser_link_proposal(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposalcreate_display_video360_advertiser_link_proposal via a request object, either of type
CreateDisplayVideo360AdvertiserLinkProposalRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_display_video360_advertiser_link_proposal(parent: nil, display_video_360_advertiser_link_proposal: nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposalcreate_display_video360_advertiser_link_proposal via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: properties/1234
- display_video_360_advertiser_link_proposal (::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal, ::Hash) — Required. The DisplayVideo360AdvertiserLinkProposal to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new # Call the create_display_video360_advertiser_link_proposal method. result = client.create_display_video360_advertiser_link_proposal request # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. p result
#create_firebase_link
def create_firebase_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::FirebaseLink
def create_firebase_link(parent: nil, firebase_link: nil) -> ::Google::Analytics::Admin::V1alpha::FirebaseLinkCreates a FirebaseLink.
Properties can have at most one FirebaseLink.
def create_firebase_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::FirebaseLinkcreate_firebase_link via a request object, either of type
CreateFirebaseLinkRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_firebase_link(parent: nil, firebase_link: nil) -> ::Google::Analytics::Admin::V1alpha::FirebaseLinkcreate_firebase_link via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Format: properties/{property_id} Example: properties/1234
- firebase_link (::Google::Analytics::Admin::V1alpha::FirebaseLink, ::Hash) — Required. The Firebase link to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::FirebaseLink)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new # Call the create_firebase_link method. result = client.create_firebase_link request # The returned object is of type Google::Analytics::Admin::V1alpha::FirebaseLink. p result
#create_google_ads_link
def create_google_ads_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::GoogleAdsLink
def create_google_ads_link(parent: nil, google_ads_link: nil) -> ::Google::Analytics::Admin::V1alpha::GoogleAdsLinkCreates a GoogleAdsLink.
def create_google_ads_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::GoogleAdsLinkcreate_google_ads_link via a request object, either of type
CreateGoogleAdsLinkRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_google_ads_link(parent: nil, google_ads_link: nil) -> ::Google::Analytics::Admin::V1alpha::GoogleAdsLinkcreate_google_ads_link via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: properties/1234
- google_ads_link (::Google::Analytics::Admin::V1alpha::GoogleAdsLink, ::Hash) — Required. The GoogleAdsLink to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::GoogleAdsLink)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new # Call the create_google_ads_link method. result = client.create_google_ads_link request # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. p result
#create_measurement_protocol_secret
def create_measurement_protocol_secret(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret
def create_measurement_protocol_secret(parent: nil, measurement_protocol_secret: nil) -> ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecretCreates a measurement protocol secret.
def create_measurement_protocol_secret(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecretcreate_measurement_protocol_secret via a request object, either of type
CreateMeasurementProtocolSecretRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_measurement_protocol_secret(parent: nil, measurement_protocol_secret: nil) -> ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecretcreate_measurement_protocol_secret via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream}
- measurement_protocol_secret (::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret, ::Hash) — Required. The measurement protocol secret to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new # Call the create_measurement_protocol_secret method. result = client.create_measurement_protocol_secret request # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. p result
#create_property
def create_property(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::Property
def create_property(property: nil) -> ::Google::Analytics::Admin::V1alpha::PropertyCreates an "GA4" property with the specified location and attributes.
def create_property(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::Propertycreate_property via a request object, either of type
CreatePropertyRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::CreatePropertyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_property(property: nil) -> ::Google::Analytics::Admin::V1alpha::Propertycreate_property via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- property (::Google::Analytics::Admin::V1alpha::Property, ::Hash) — Required. The property to create. Note: the supplied property must specify its parent.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::Property)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new # Call the create_property method. result = client.create_property request # The returned object is of type Google::Analytics::Admin::V1alpha::Property. p result
#create_user_link
def create_user_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::UserLink
def create_user_link(parent: nil, notify_new_user: nil, user_link: nil) -> ::Google::Analytics::Admin::V1alpha::UserLinkCreates a user link on an account or property.
If the user with the specified email already has permissions on the account or property, then the user's existing permissions will be unioned with the permissions specified in the new UserLink.
def create_user_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::UserLinkcreate_user_link via a request object, either of type
CreateUserLinkRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::CreateUserLinkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_user_link(parent: nil, notify_new_user: nil, user_link: nil) -> ::Google::Analytics::Admin::V1alpha::UserLinkcreate_user_link via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: accounts/1234
- notify_new_user (::Boolean) — Optional. If set, then email the new user notifying them that they've been granted permissions to the resource.
- user_link (::Google::Analytics::Admin::V1alpha::UserLink, ::Hash) — Required. The user link to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::UserLink)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::CreateUserLinkRequest.new # Call the create_user_link method. result = client.create_user_link request # The returned object is of type Google::Analytics::Admin::V1alpha::UserLink. p result
#delete_account
def delete_account(request, options = nil) -> ::Google::Protobuf::Empty
def delete_account(name: nil) -> ::Google::Protobuf::EmptyMarks target Account as soft-deleted (ie: "trashed") and returns it.
This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI.
If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772
Returns an error if the target is not found.
def delete_account(request, options = nil) -> ::Google::Protobuf::Emptydelete_account via a request object, either of type
DeleteAccountRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::DeleteAccountRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_account(name: nil) -> ::Google::Protobuf::Emptydelete_account via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100"
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new # Call the delete_account method. result = client.delete_account request # The returned object is of type Google::Protobuf::Empty. p result
#delete_conversion_event
def delete_conversion_event(request, options = nil) -> ::Google::Protobuf::Empty
def delete_conversion_event(name: nil) -> ::Google::Protobuf::EmptyDeletes a conversion event in a property.
def delete_conversion_event(request, options = nil) -> ::Google::Protobuf::Emptydelete_conversion_event via a request object, either of type
DeleteConversionEventRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_conversion_event(name: nil) -> ::Google::Protobuf::Emptydelete_conversion_event via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The resource name of the conversion event to delete. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456"
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new # Call the delete_conversion_event method. result = client.delete_conversion_event request # The returned object is of type Google::Protobuf::Empty. p result
#delete_data_stream
def delete_data_stream(request, options = nil) -> ::Google::Protobuf::Empty
def delete_data_stream(name: nil) -> ::Google::Protobuf::EmptyDeletes a DataStream on a property.
def delete_data_stream(request, options = nil) -> ::Google::Protobuf::Emptydelete_data_stream via a request object, either of type
DeleteDataStreamRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_data_stream(name: nil) -> ::Google::Protobuf::Emptydelete_data_stream via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the DataStream to delete. Example format: properties/1234/dataStreams/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new # Call the delete_data_stream method. result = client.delete_data_stream request # The returned object is of type Google::Protobuf::Empty. p result
#delete_display_video360_advertiser_link
def delete_display_video360_advertiser_link(request, options = nil) -> ::Google::Protobuf::Empty
def delete_display_video360_advertiser_link(name: nil) -> ::Google::Protobuf::EmptyDeletes a DisplayVideo360AdvertiserLink on a property.
def delete_display_video360_advertiser_link(request, options = nil) -> ::Google::Protobuf::Emptydelete_display_video360_advertiser_link via a request object, either of type
DeleteDisplayVideo360AdvertiserLinkRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_display_video360_advertiser_link(name: nil) -> ::Google::Protobuf::Emptydelete_display_video360_advertiser_link via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format: properties/1234/displayVideo360AdvertiserLinks/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new # Call the delete_display_video360_advertiser_link method. result = client.delete_display_video360_advertiser_link request # The returned object is of type Google::Protobuf::Empty. p result
#delete_display_video360_advertiser_link_proposal
def delete_display_video360_advertiser_link_proposal(request, options = nil) -> ::Google::Protobuf::Empty
def delete_display_video360_advertiser_link_proposal(name: nil) -> ::Google::Protobuf::EmptyDeletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on cancelled proposals.
def delete_display_video360_advertiser_link_proposal(request, options = nil) -> ::Google::Protobuf::Emptydelete_display_video360_advertiser_link_proposal via a request object, either of type
DeleteDisplayVideo360AdvertiserLinkProposalRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_display_video360_advertiser_link_proposal(name: nil) -> ::Google::Protobuf::Emptydelete_display_video360_advertiser_link_proposal via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new # Call the delete_display_video360_advertiser_link_proposal method. result = client.delete_display_video360_advertiser_link_proposal request # The returned object is of type Google::Protobuf::Empty. p result
#delete_firebase_link
def delete_firebase_link(request, options = nil) -> ::Google::Protobuf::Empty
def delete_firebase_link(name: nil) -> ::Google::Protobuf::EmptyDeletes a FirebaseLink on a property
def delete_firebase_link(request, options = nil) -> ::Google::Protobuf::Emptydelete_firebase_link via a request object, either of type
DeleteFirebaseLinkRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_firebase_link(name: nil) -> ::Google::Protobuf::Emptydelete_firebase_link via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: properties/1234/firebaseLinks/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new # Call the delete_firebase_link method. result = client.delete_firebase_link request # The returned object is of type Google::Protobuf::Empty. p result
#delete_google_ads_link
def delete_google_ads_link(request, options = nil) -> ::Google::Protobuf::Empty
def delete_google_ads_link(name: nil) -> ::Google::Protobuf::EmptyDeletes a GoogleAdsLink on a property
def delete_google_ads_link(request, options = nil) -> ::Google::Protobuf::Emptydelete_google_ads_link via a request object, either of type
DeleteGoogleAdsLinkRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_google_ads_link(name: nil) -> ::Google::Protobuf::Emptydelete_google_ads_link via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Example format: properties/1234/googleAdsLinks/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new # Call the delete_google_ads_link method. result = client.delete_google_ads_link request # The returned object is of type Google::Protobuf::Empty. p result
#delete_measurement_protocol_secret
def delete_measurement_protocol_secret(request, options = nil) -> ::Google::Protobuf::Empty
def delete_measurement_protocol_secret(name: nil) -> ::Google::Protobuf::EmptyDeletes target MeasurementProtocolSecret.
def delete_measurement_protocol_secret(request, options = nil) -> ::Google::Protobuf::Emptydelete_measurement_protocol_secret via a request object, either of type
DeleteMeasurementProtocolSecretRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_measurement_protocol_secret(name: nil) -> ::Google::Protobuf::Emptydelete_measurement_protocol_secret via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the MeasurementProtocolSecret to delete. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new # Call the delete_measurement_protocol_secret method. result = client.delete_measurement_protocol_secret request # The returned object is of type Google::Protobuf::Empty. p result
#delete_property
def delete_property(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::Property
def delete_property(name: nil) -> ::Google::Analytics::Admin::V1alpha::PropertyMarks target Property as soft-deleted (ie: "trashed") and returns it.
This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI.
If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772
Returns an error if the target is not found, or is not an GA4 Property.
def delete_property(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::Propertydelete_property via a request object, either of type
DeletePropertyRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::DeletePropertyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_property(name: nil) -> ::Google::Analytics::Admin::V1alpha::Propertydelete_property via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000"
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::Property)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new # Call the delete_property method. result = client.delete_property request # The returned object is of type Google::Analytics::Admin::V1alpha::Property. p result
#delete_user_link
def delete_user_link(request, options = nil) -> ::Google::Protobuf::Empty
def delete_user_link(name: nil) -> ::Google::Protobuf::EmptyDeletes a user link on an account or property.
def delete_user_link(request, options = nil) -> ::Google::Protobuf::Emptydelete_user_link via a request object, either of type
DeleteUserLinkRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::DeleteUserLinkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_user_link(name: nil) -> ::Google::Protobuf::Emptydelete_user_link via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Example format: accounts/1234/userLinks/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::DeleteUserLinkRequest.new # Call the delete_user_link method. result = client.delete_user_link request # The returned object is of type Google::Protobuf::Empty. p result
#get_account
def get_account(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::Account
def get_account(name: nil) -> ::Google::Analytics::Admin::V1alpha::AccountLookup for a single Account.
def get_account(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::Accountget_account via a request object, either of type
GetAccountRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetAccountRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_account(name: nil) -> ::Google::Analytics::Admin::V1alpha::Accountget_account via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100"
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::Account)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetAccountRequest.new # Call the get_account method. result = client.get_account request # The returned object is of type Google::Analytics::Admin::V1alpha::Account. p result
#get_conversion_event
def get_conversion_event(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::ConversionEvent
def get_conversion_event(name: nil) -> ::Google::Analytics::Admin::V1alpha::ConversionEventRetrieve a single conversion event.
def get_conversion_event(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::ConversionEventget_conversion_event via a request object, either of type
GetConversionEventRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetConversionEventRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_conversion_event(name: nil) -> ::Google::Analytics::Admin::V1alpha::ConversionEventget_conversion_event via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The resource name of the conversion event to retrieve. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456"
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::ConversionEvent)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new # Call the get_conversion_event method. result = client.get_conversion_event request # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. p result
#get_custom_dimension
def get_custom_dimension(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::CustomDimension
def get_custom_dimension(name: nil) -> ::Google::Analytics::Admin::V1alpha::CustomDimensionLookup for a single CustomDimension.
def get_custom_dimension(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::CustomDimensionget_custom_dimension via a request object, either of type
GetCustomDimensionRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_custom_dimension(name: nil) -> ::Google::Analytics::Admin::V1alpha::CustomDimensionget_custom_dimension via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the CustomDimension to get. Example format: properties/1234/customDimensions/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::CustomDimension)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new # Call the get_custom_dimension method. result = client.get_custom_dimension request # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. p result
#get_custom_metric
def get_custom_metric(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::CustomMetric
def get_custom_metric(name: nil) -> ::Google::Analytics::Admin::V1alpha::CustomMetricLookup for a single CustomMetric.
def get_custom_metric(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::CustomMetricget_custom_metric via a request object, either of type
GetCustomMetricRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_custom_metric(name: nil) -> ::Google::Analytics::Admin::V1alpha::CustomMetricget_custom_metric via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::CustomMetric)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new # Call the get_custom_metric method. result = client.get_custom_metric request # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. p result
#get_data_retention_settings
def get_data_retention_settings(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DataRetentionSettings
def get_data_retention_settings(name: nil) -> ::Google::Analytics::Admin::V1alpha::DataRetentionSettingsReturns the singleton data retention settings for this property.
def get_data_retention_settings(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DataRetentionSettingsget_data_retention_settings via a request object, either of type
GetDataRetentionSettingsRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_data_retention_settings(name: nil) -> ::Google::Analytics::Admin::V1alpha::DataRetentionSettingsget_data_retention_settings via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: "properties/1000/dataRetentionSettings"
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::DataRetentionSettings)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new # Call the get_data_retention_settings method. result = client.get_data_retention_settings request # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. p result
#get_data_sharing_settings
def get_data_sharing_settings(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DataSharingSettings
def get_data_sharing_settings(name: nil) -> ::Google::Analytics::Admin::V1alpha::DataSharingSettingsGet data sharing settings on an account. Data sharing settings are singletons.
def get_data_sharing_settings(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DataSharingSettingsget_data_sharing_settings via a request object, either of type
GetDataSharingSettingsRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_data_sharing_settings(name: nil) -> ::Google::Analytics::Admin::V1alpha::DataSharingSettingsget_data_sharing_settings via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings"
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::DataSharingSettings)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new # Call the get_data_sharing_settings method. result = client.get_data_sharing_settings request # The returned object is of type Google::Analytics::Admin::V1alpha::DataSharingSettings. p result
#get_data_stream
def get_data_stream(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DataStream
def get_data_stream(name: nil) -> ::Google::Analytics::Admin::V1alpha::DataStreamLookup for a single DataStream.
def get_data_stream(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DataStreamget_data_stream via a request object, either of type
GetDataStreamRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetDataStreamRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_data_stream(name: nil) -> ::Google::Analytics::Admin::V1alpha::DataStreamget_data_stream via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the DataStream to get. Example format: properties/1234/dataStreams/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::DataStream)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new # Call the get_data_stream method. result = client.get_data_stream request # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. p result
#get_display_video360_advertiser_link
def get_display_video360_advertiser_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink
def get_display_video360_advertiser_link(name: nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkLook up a single DisplayVideo360AdvertiserLink
def get_display_video360_advertiser_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkget_display_video360_advertiser_link via a request object, either of type
GetDisplayVideo360AdvertiserLinkRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_display_video360_advertiser_link(name: nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkget_display_video360_advertiser_link via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the DisplayVideo360AdvertiserLink to get. Example format: properties/1234/displayVideo360AdvertiserLink/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new # Call the get_display_video360_advertiser_link method. result = client.get_display_video360_advertiser_link request # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. p result
#get_display_video360_advertiser_link_proposal
def get_display_video360_advertiser_link_proposal(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal
def get_display_video360_advertiser_link_proposal(name: nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposalLookup for a single DisplayVideo360AdvertiserLinkProposal.
def get_display_video360_advertiser_link_proposal(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposalget_display_video360_advertiser_link_proposal via a request object, either of type
GetDisplayVideo360AdvertiserLinkProposalRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_display_video360_advertiser_link_proposal(name: nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposalget_display_video360_advertiser_link_proposal via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new # Call the get_display_video360_advertiser_link_proposal method. result = client.get_display_video360_advertiser_link_proposal request # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. p result
#get_global_site_tag
def get_global_site_tag(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::GlobalSiteTag
def get_global_site_tag(name: nil) -> ::Google::Analytics::Admin::V1alpha::GlobalSiteTagReturns the Site Tag for the specified web stream. Site Tags are immutable singletons.
def get_global_site_tag(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::GlobalSiteTagget_global_site_tag via a request object, either of type
GetGlobalSiteTagRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_global_site_tag(name: nil) -> ::Google::Analytics::Admin::V1alpha::GlobalSiteTagget_global_site_tag via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the site tag to lookup. Note that site tags are singletons and do not have unique IDs. Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: "properties/123/dataStreams/456/globalSiteTag"
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::GlobalSiteTag)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new # Call the get_global_site_tag method. result = client.get_global_site_tag request # The returned object is of type Google::Analytics::Admin::V1alpha::GlobalSiteTag. p result
#get_google_signals_settings
def get_google_signals_settings(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings
def get_google_signals_settings(name: nil) -> ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettingsLookup for Google Signals settings for a property.
def get_google_signals_settings(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettingsget_google_signals_settings via a request object, either of type
GetGoogleSignalsSettingsRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_google_signals_settings(name: nil) -> ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettingsget_google_signals_settings via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the google signals settings to retrieve. Format: properties/{property}/googleSignalsSettings
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new # Call the get_google_signals_settings method. result = client.get_google_signals_settings request # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. p result
#get_measurement_protocol_secret
def get_measurement_protocol_secret(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret
def get_measurement_protocol_secret(name: nil) -> ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecretLookup for a single "GA4" MeasurementProtocolSecret.
def get_measurement_protocol_secret(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecretget_measurement_protocol_secret via a request object, either of type
GetMeasurementProtocolSecretRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_measurement_protocol_secret(name: nil) -> ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecretget_measurement_protocol_secret via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the measurement protocol secret to lookup. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new # Call the get_measurement_protocol_secret method. result = client.get_measurement_protocol_secret request # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. p result
#get_property
def get_property(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::Property
def get_property(name: nil) -> ::Google::Analytics::Admin::V1alpha::PropertyLookup for a single "GA4" Property.
def get_property(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::Propertyget_property via a request object, either of type
GetPropertyRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetPropertyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_property(name: nil) -> ::Google::Analytics::Admin::V1alpha::Propertyget_property via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000"
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::Property)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetPropertyRequest.new # Call the get_property method. result = client.get_property request # The returned object is of type Google::Analytics::Admin::V1alpha::Property. p result
#get_user_link
def get_user_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::UserLink
def get_user_link(name: nil) -> ::Google::Analytics::Admin::V1alpha::UserLinkGets information about a user's link to an account or property.
def get_user_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::UserLinkget_user_link via a request object, either of type
GetUserLinkRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::GetUserLinkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_user_link(name: nil) -> ::Google::Analytics::Admin::V1alpha::UserLinkget_user_link via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Example format: accounts/1234/userLinks/5678
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::UserLink)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::GetUserLinkRequest.new # Call the get_user_link method. result = client.get_user_link request # The returned object is of type Google::Analytics::Admin::V1alpha::UserLink. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new AnalyticsAdminService client object.
- (config) — Configure the AnalyticsAdminService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a client using a custom configuration client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| config.timeout = 10.0 end
#list_account_summaries
def list_account_summaries(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>
def list_account_summaries(page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>Returns summaries of all accounts accessible by the caller.
def list_account_summaries(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>list_account_summaries via a request object, either of type
ListAccountSummariesRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_account_summaries(page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>list_account_summaries via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- page_size (::Integer) — The maximum number of AccountSummary resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
-
page_token (::String) — A page token, received from a previous
ListAccountSummariescall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListAccountSummariesmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new # Call the list_account_summaries method. result = client.list_account_summaries request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::AccountSummary. p response end
#list_accounts
def list_accounts(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>
def list_accounts(page_size: nil, page_token: nil, show_deleted: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>Returns all accounts accessible by the caller.
Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are found.
def list_accounts(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>list_accounts via a request object, either of type
ListAccountsRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ListAccountsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_accounts(page_size: nil, page_token: nil, show_deleted: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>list_accounts via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- page_size (::Integer) — The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
-
page_token (::String) — A page token, received from a previous
ListAccountscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListAccountsmust match the call that provided the page token. - show_deleted (::Boolean) — Whether to include soft-deleted (ie: "trashed") Accounts in the results. Accounts can be inspected to determine whether they are deleted or not.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ListAccountsRequest.new # Call the list_accounts method. result = client.list_accounts request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::Account. p response end
#list_conversion_events
def list_conversion_events(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>
def list_conversion_events(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>Returns a list of conversion events in the specified parent property.
Returns an empty list if no conversion events are found.
def list_conversion_events(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>list_conversion_events via a request object, either of type
ListConversionEventsRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_conversion_events(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>list_conversion_events via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The resource name of the parent property. Example: 'properties/123'
- page_size (::Integer) — The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
-
page_token (::String) — A page token, received from a previous
ListConversionEventscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListConversionEventsmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new # Call the list_conversion_events method. result = client.list_conversion_events request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::ConversionEvent. p response end
#list_custom_dimensions
def list_custom_dimensions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>
def list_custom_dimensions(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>Lists CustomDimensions on a property.
def list_custom_dimensions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>list_custom_dimensions via a request object, either of type
ListCustomDimensionsRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_custom_dimensions(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>list_custom_dimensions via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: properties/1234
- page_size (::Integer) — The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
-
page_token (::String) — A page token, received from a previous
ListCustomDimensionscall. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to
ListCustomDimensionsmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new # Call the list_custom_dimensions method. result = client.list_custom_dimensions request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomDimension. p response end
#list_custom_metrics
def list_custom_metrics(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>
def list_custom_metrics(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>Lists CustomMetrics on a property.
def list_custom_metrics(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>list_custom_metrics via a request object, either of type
ListCustomMetricsRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_custom_metrics(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>list_custom_metrics via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: properties/1234
- page_size (::Integer) — The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
-
page_token (::String) — A page token, received from a previous
ListCustomMetricscall. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to
ListCustomMetricsmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new # Call the list_custom_metrics method. result = client.list_custom_metrics request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomMetric. p response end
#list_data_streams
def list_data_streams(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>
def list_data_streams(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>Lists DataStreams on a property.
def list_data_streams(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>list_data_streams via a request object, either of type
ListDataStreamsRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_data_streams(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>list_data_streams via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: properties/1234
- page_size (::Integer) — The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
-
page_token (::String) — A page token, received from a previous
ListDataStreamscall. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to
ListDataStreamsmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new # Call the list_data_streams method. result = client.list_data_streams request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::DataStream. p response end
#list_display_video360_advertiser_link_proposals
def list_display_video360_advertiser_link_proposals(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>
def list_display_video360_advertiser_link_proposals(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>Lists DisplayVideo360AdvertiserLinkProposals on a property.
def list_display_video360_advertiser_link_proposals(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>list_display_video360_advertiser_link_proposals via a request object, either of type
ListDisplayVideo360AdvertiserLinkProposalsRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_display_video360_advertiser_link_proposals(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>list_display_video360_advertiser_link_proposals via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: properties/1234
- page_size (::Integer) — The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
-
page_token (::String) — A page token, received from a previous
ListDisplayVideo360AdvertiserLinkProposalscall. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to
ListDisplayVideo360AdvertiserLinkProposalsmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new # Call the list_display_video360_advertiser_link_proposals method. result = client.list_display_video360_advertiser_link_proposals request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. p response end
#list_display_video360_advertiser_links
def list_display_video360_advertiser_links(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>
def list_display_video360_advertiser_links(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>Lists all DisplayVideo360AdvertiserLinks on a property.
def list_display_video360_advertiser_links(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>list_display_video360_advertiser_links via a request object, either of type
ListDisplayVideo360AdvertiserLinksRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_display_video360_advertiser_links(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>list_display_video360_advertiser_links via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: properties/1234
- page_size (::Integer) — The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
-
page_token (::String) — A page token, received from a previous
ListDisplayVideo360AdvertiserLinkscall. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to
ListDisplayVideo360AdvertiserLinksmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new # Call the list_display_video360_advertiser_links method. result = client.list_display_video360_advertiser_links request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. p response end
#list_firebase_links
def list_firebase_links(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>
def list_firebase_links(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
def list_firebase_links(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>list_firebase_links via a request object, either of type
ListFirebaseLinksRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_firebase_links(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>list_firebase_links via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Format: properties/{property_id} Example: properties/1234
- page_size (::Integer) — The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
-
page_token (::String) — A page token, received from a previous
ListFirebaseLinkscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListPropertiesmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new # Call the list_firebase_links method. result = client.list_firebase_links request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::FirebaseLink. p response end
#list_google_ads_links
def list_google_ads_links(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>
def list_google_ads_links(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>Lists GoogleAdsLinks on a property.
def list_google_ads_links(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>list_google_ads_links via a request object, either of type
ListGoogleAdsLinksRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_google_ads_links(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>list_google_ads_links via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: properties/1234
- page_size (::Integer) — The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
-
page_token (::String) — A page token, received from a previous
ListGoogleAdsLinkscall. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to
ListGoogleAdsLinksmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new # Call the list_google_ads_links method. result = client.list_google_ads_links request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::GoogleAdsLink. p response end
#list_measurement_protocol_secrets
def list_measurement_protocol_secrets(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>
def list_measurement_protocol_secrets(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>Returns child MeasurementProtocolSecrets under the specified parent Property.
def list_measurement_protocol_secrets(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>list_measurement_protocol_secrets via a request object, either of type
ListMeasurementProtocolSecretsRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_measurement_protocol_secrets(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>list_measurement_protocol_secrets via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The resource name of the parent stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
- page_size (::Integer) — The maximum number of resources to return. If unspecified, at most 10 resources will be returned. The maximum value is 10. Higher values will be coerced to the maximum.
-
page_token (::String) — A page token, received from a previous
ListMeasurementProtocolSecretscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListMeasurementProtocolSecretsmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new # Call the list_measurement_protocol_secrets method. result = client.list_measurement_protocol_secrets request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. p response end
#list_properties
def list_properties(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>
def list_properties(filter: nil, page_size: nil, page_token: nil, show_deleted: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>Returns child Properties under the specified parent Account.
Only "GA4" properties will be returned. Properties will be excluded if the caller does not have access. Soft-deleted (ie: "trashed") properties are excluded by default. Returns an empty list if no relevant properties are found.
def list_properties(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>list_properties via a request object, either of type
ListPropertiesRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ListPropertiesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_properties(filter: nil, page_size: nil, page_token: nil, show_deleted: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>list_properties via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
filter (::String) — Required. An expression for filtering the results of the request.
Fields eligible for filtering are:
parent:(The resource name of the parent account/property) orancestor:(The resource name of the parent account) orfirebase_project:(The id or number of the linked firebase project). Some examples of filters:| Filter | Description | |-----------------------------|-------------------------------------------| | parent:accounts/123 | The account with account id: 123. | | parent:properties/123 | The property with property id: 123. | | ancestor:accounts/123 | The account with account id: 123. | | firebase_project:project-id | The firebase project with id: project-id. | | firebase_project:123 | The firebase project with number: 123. | - page_size (::Integer) — The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
-
page_token (::String) — A page token, received from a previous
ListPropertiescall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListPropertiesmust match the call that provided the page token. - show_deleted (::Boolean) — Whether to include soft-deleted (ie: "trashed") Properties in the results. Properties can be inspected to determine whether they are deleted or not.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new # Call the list_properties method. result = client.list_properties request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::Property. p response end
#list_user_links
def list_user_links(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::UserLink>
def list_user_links(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::UserLink>Lists all user links on an account or property.
def list_user_links(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::UserLink>list_user_links via a request object, either of type
ListUserLinksRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ListUserLinksRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_user_links(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::UserLink>list_user_links via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Example format: accounts/1234
- page_size (::Integer) — The maximum number of user links to return. The service may return fewer than this value. If unspecified, at most 200 user links will be returned. The maximum value is 500; values above 500 will be coerced to 500.
-
page_token (::String) — A page token, received from a previous
ListUserLinkscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListUserLinksmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::UserLink>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::UserLink>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ListUserLinksRequest.new # Call the list_user_links method. result = client.list_user_links request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::UserLink. p response end
#provision_account_ticket
def provision_account_ticket(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse
def provision_account_ticket(account: nil, redirect_uri: nil) -> ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponseRequests a ticket for creating an account.
def provision_account_ticket(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponseprovision_account_ticket via a request object, either of type
ProvisionAccountTicketRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def provision_account_ticket(account: nil, redirect_uri: nil) -> ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponseprovision_account_ticket via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- account (::Google::Analytics::Admin::V1alpha::Account, ::Hash) — The account to create.
- redirect_uri (::String) — Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in Developers Console as a Redirect URI
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new # Call the provision_account_ticket method. result = client.provision_account_ticket request # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse. p result
#search_change_history_events
def search_change_history_events(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>
def search_change_history_events(account: nil, property: nil, resource_type: nil, action: nil, actor_email: nil, earliest_change_time: nil, latest_change_time: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>Searches through all changes to an account or its children given the specified set of filters.
def search_change_history_events(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>search_change_history_events via a request object, either of type
SearchChangeHistoryEventsRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def search_change_history_events(account: nil, property: nil, resource_type: nil, action: nil, actor_email: nil, earliest_change_time: nil, latest_change_time: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>search_change_history_events via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- account (::String) — Required. The account resource for which to return change history resources.
- property (::String) — Optional. Resource name for a child property. If set, only return changes made to this property or its child resources.
- resource_type (::Array<::Google::Analytics::Admin::V1alpha::ChangeHistoryResourceType>) — Optional. If set, only return changes if they are for a resource that matches at least one of these types.
- action (::Array<::Google::Analytics::Admin::V1alpha::ActionType>) — Optional. If set, only return changes that match one or more of these types of actions.
- actor_email (::Array<::String>) — Optional. If set, only return changes if they are made by a user in this list.
- earliest_change_time (::Google::Protobuf::Timestamp, ::Hash) — Optional. If set, only return changes made after this time (inclusive).
- latest_change_time (::Google::Protobuf::Timestamp, ::Hash) — Optional. If set, only return changes made before this time (inclusive).
- page_size (::Integer) — Optional. The maximum number of ChangeHistoryEvent items to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 items will be returned. The maximum value is 200 (higher values will be coerced to the maximum).
-
page_token (::String) — Optional. A page token, received from a previous
SearchChangeHistoryEventscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toSearchChangeHistoryEventsmust match the call that provided the page token.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new # Call the search_change_history_events method. result = client.search_change_history_events request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent. p response end
#update_account
def update_account(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::Account
def update_account(account: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::AccountUpdates an account.
def update_account(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::Accountupdate_account via a request object, either of type
UpdateAccountRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::UpdateAccountRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_account(account: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::Accountupdate_account via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
account (::Google::Analytics::Admin::V1alpha::Account, ::Hash) — Required. The account to update.
The account's
namefield is used to identify the account. - update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::Account)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new # Call the update_account method. result = client.update_account request # The returned object is of type Google::Analytics::Admin::V1alpha::Account. p result
#update_custom_dimension
def update_custom_dimension(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::CustomDimension
def update_custom_dimension(custom_dimension: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::CustomDimensionUpdates a CustomDimension on a property.
def update_custom_dimension(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::CustomDimensionupdate_custom_dimension via a request object, either of type
UpdateCustomDimensionRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_custom_dimension(custom_dimension: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::CustomDimensionupdate_custom_dimension via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- custom_dimension (::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash) — The CustomDimension to update
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::CustomDimension)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new # Call the update_custom_dimension method. result = client.update_custom_dimension request # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. p result
#update_custom_metric
def update_custom_metric(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::CustomMetric
def update_custom_metric(custom_metric: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::CustomMetricUpdates a CustomMetric on a property.
def update_custom_metric(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::CustomMetricupdate_custom_metric via a request object, either of type
UpdateCustomMetricRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_custom_metric(custom_metric: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::CustomMetricupdate_custom_metric via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- custom_metric (::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash) — The CustomMetric to update
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::CustomMetric)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new # Call the update_custom_metric method. result = client.update_custom_metric request # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. p result
#update_data_retention_settings
def update_data_retention_settings(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DataRetentionSettings
def update_data_retention_settings(data_retention_settings: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::DataRetentionSettingsUpdates the singleton data retention settings for this property.
def update_data_retention_settings(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DataRetentionSettingsupdate_data_retention_settings via a request object, either of type
UpdateDataRetentionSettingsRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_data_retention_settings(data_retention_settings: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::DataRetentionSettingsupdate_data_retention_settings via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
data_retention_settings (::Google::Analytics::Admin::V1alpha::DataRetentionSettings, ::Hash) — Required. The settings to update.
The
namefield is used to identify the settings to be updated. - update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::DataRetentionSettings)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new # Call the update_data_retention_settings method. result = client.update_data_retention_settings request # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. p result
#update_data_stream
def update_data_stream(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DataStream
def update_data_stream(data_stream: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::DataStreamUpdates a DataStream on a property.
def update_data_stream(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DataStreamupdate_data_stream via a request object, either of type
UpdateDataStreamRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_data_stream(data_stream: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::DataStreamupdate_data_stream via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- data_stream (::Google::Analytics::Admin::V1alpha::DataStream, ::Hash) — The DataStream to update
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::DataStream)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new # Call the update_data_stream method. result = client.update_data_stream request # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. p result
#update_display_video360_advertiser_link
def update_display_video360_advertiser_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink
def update_display_video360_advertiser_link(display_video_360_advertiser_link: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkUpdates a DisplayVideo360AdvertiserLink on a property.
def update_display_video360_advertiser_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkupdate_display_video360_advertiser_link via a request object, either of type
UpdateDisplayVideo360AdvertiserLinkRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_display_video360_advertiser_link(display_video_360_advertiser_link: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkupdate_display_video360_advertiser_link via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- display_video_360_advertiser_link (::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash) — The DisplayVideo360AdvertiserLink to update
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new # Call the update_display_video360_advertiser_link method. result = client.update_display_video360_advertiser_link request # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. p result
#update_google_ads_link
def update_google_ads_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::GoogleAdsLink
def update_google_ads_link(google_ads_link: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::GoogleAdsLinkUpdates a GoogleAdsLink on a property
def update_google_ads_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::GoogleAdsLinkupdate_google_ads_link via a request object, either of type
UpdateGoogleAdsLinkRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_google_ads_link(google_ads_link: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::GoogleAdsLinkupdate_google_ads_link via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- google_ads_link (::Google::Analytics::Admin::V1alpha::GoogleAdsLink, ::Hash) — The GoogleAdsLink to update
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::GoogleAdsLink)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new # Call the update_google_ads_link method. result = client.update_google_ads_link request # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. p result
#update_google_signals_settings
def update_google_signals_settings(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings
def update_google_signals_settings(google_signals_settings: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettingsUpdates Google Signals settings for a property.
def update_google_signals_settings(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettingsupdate_google_signals_settings via a request object, either of type
UpdateGoogleSignalsSettingsRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_google_signals_settings(google_signals_settings: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettingsupdate_google_signals_settings via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
google_signals_settings (::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings, ::Hash) — Required. The settings to update.
The
namefield is used to identify the settings to be updated. - update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new # Call the update_google_signals_settings method. result = client.update_google_signals_settings request # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. p result
#update_measurement_protocol_secret
def update_measurement_protocol_secret(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret
def update_measurement_protocol_secret(measurement_protocol_secret: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecretUpdates a measurement protocol secret.
def update_measurement_protocol_secret(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecretupdate_measurement_protocol_secret via a request object, either of type
UpdateMeasurementProtocolSecretRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_measurement_protocol_secret(measurement_protocol_secret: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecretupdate_measurement_protocol_secret via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- measurement_protocol_secret (::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret, ::Hash) — Required. The measurement protocol secret to update.
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — The list of fields to be updated. Omitted fields will not be updated.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new # Call the update_measurement_protocol_secret method. result = client.update_measurement_protocol_secret request # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. p result
#update_property
def update_property(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::Property
def update_property(property: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::PropertyUpdates a property.
def update_property(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::Propertyupdate_property via a request object, either of type
UpdatePropertyRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_property(property: nil, update_mask: nil) -> ::Google::Analytics::Admin::V1alpha::Propertyupdate_property via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
property (::Google::Analytics::Admin::V1alpha::Property, ::Hash) — Required. The property to update.
The property's
namefield is used to identify the property to be updated. - update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::Property)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new # Call the update_property method. result = client.update_property request # The returned object is of type Google::Analytics::Admin::V1alpha::Property. p result
#update_user_link
def update_user_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::UserLink
def update_user_link(user_link: nil) -> ::Google::Analytics::Admin::V1alpha::UserLinkUpdates a user link on an account or property.
def update_user_link(request, options = nil) -> ::Google::Analytics::Admin::V1alpha::UserLinkupdate_user_link via a request object, either of type
UpdateUserLinkRequest or an equivalent Hash.
- request (::Google::Analytics::Admin::V1alpha::UpdateUserLinkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_user_link(user_link: nil) -> ::Google::Analytics::Admin::V1alpha::UserLinkupdate_user_link via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- user_link (::Google::Analytics::Admin::V1alpha::UserLink, ::Hash) — Required. The user link to update.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Analytics::Admin::V1alpha::UserLink)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/analytics/admin/v1alpha" # Create a client object. The client can be reused for multiple calls. client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Analytics::Admin::V1alpha::UpdateUserLinkRequest.new # Call the update_user_link method. result = client.update_user_link request # The returned object is of type Google::Analytics::Admin::V1alpha::UserLink. p result