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.



5092
5093
5094
# File 'lib/google/apis/content_v2_1/classes.rb', line 5092

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



5079
5080
5081
# File 'lib/google/apis/content_v2_1/classes.rb', line 5079

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)


5085
5086
5087
# File 'lib/google/apis/content_v2_1/classes.rb', line 5085

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)


5090
5091
5092
# File 'lib/google/apis/content_v2_1/classes.rb', line 5090

def property_name
  @property_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5097
5098
5099
5100
5101
# File 'lib/google/apis/content_v2_1/classes.rb', line 5097

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