Class: Google::Apis::ContentV2_1::GoogleAnalyticsLink

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/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.



5044
5045
5046
# File 'lib/google/apis/content_v2_1/classes.rb', line 5044

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

Instance Attribute Details

#attribution_settingsGoogle::Apis::ContentV2_1::AttributionSettings

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



5031
5032
5033
# File 'lib/google/apis/content_v2_1/classes.rb', line 5031

def attribution_settings
  @attribution_settings
end

#property_idFixnum

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

Returns:

  • (Fixnum)


5037
5038
5039
# File 'lib/google/apis/content_v2_1/classes.rb', line 5037

def property_id
  @property_id
end

#property_nameString

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

Returns:

  • (String)


5042
5043
5044
# File 'lib/google/apis/content_v2_1/classes.rb', line 5042

def property_name
  @property_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5049
5050
5051
5052
5053
# File 'lib/google/apis/content_v2_1/classes.rb', line 5049

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