Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb

Overview

Request for setting the opt out status for the automated GA4 setup process.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest

Returns a new instance of GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest.



5533
5534
5535
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 5533

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#opt_outBoolean Also known as: opt_out?

The status to set. Corresponds to the JSON property optOut

Returns:

  • (Boolean)


5523
5524
5525
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 5523

def opt_out
  @opt_out
end

#propertyString

Required. The UA property to set the opt out status. Note this request uses the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. Format: properties/internalWebPropertyId Example: properties/1234 Corresponds to the JSON property property

Returns:

  • (String)


5531
5532
5533
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 5531

def property
  @property
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5538
5539
5540
5541
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 5538

def update!(**args)
  @opt_out = args[:opt_out] if args.key?(:opt_out)
  @property = args[:property] if args.key?(:property)
end