Class: Google::Apis::MerchantapiConversionsV1beta::GoogleAnalyticsLink

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

Overview

"Google Analytics Link" sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsLink

Returns a new instance of GoogleAnalyticsLink.



186
187
188
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 186

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

Instance Attribute Details

#attribution_settingsGoogle::Apis::MerchantapiConversionsV1beta::AttributionSettings

Represents attribution settings for conversion sources receiving pre- attribution data. Corresponds to the JSON property attributionSettings



173
174
175
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 173

def attribution_settings
  @attribution_settings
end

#propertyString

Output only. Name of the Google Analytics property the merchant is linked to. Corresponds to the JSON property property

Returns:

  • (String)


178
179
180
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 178

def property
  @property
end

#property_idFixnum

Required. Immutable. ID of the Google Analytics property the merchant is linked to. Corresponds to the JSON property propertyId

Returns:

  • (Fixnum)


184
185
186
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 184

def property_id
  @property_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



191
192
193
194
195
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 191

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