Class: Google::Apis::MerchantapiConversionsV1beta::GoogleAnalyticsLink
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiConversionsV1beta::GoogleAnalyticsLink
- 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
-
#attribution_settings ⇒ Google::Apis::MerchantapiConversionsV1beta::AttributionSettings
Represents attribution settings for conversion sources receiving pre- attribution data.
-
#property ⇒ String
Output only.
-
#property_id ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsLink
constructor
A new instance of GoogleAnalyticsLink.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_settings ⇒ Google::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 |
#property ⇒ String
Output only. Name of the Google Analytics property the merchant is linked to.
Corresponds to the JSON property property
178 179 180 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 178 def property @property end |
#property_id ⇒ Fixnum
Required. Immutable. ID of the Google Analytics property the merchant is
linked to.
Corresponds to the JSON property propertyId
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 |