Class: Google::Apis::MerchantapiConversionsV1beta::ConversionSource
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiConversionsV1beta::ConversionSource
- 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
Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
Instance Attribute Summary collapse
-
#controller ⇒ String
Output only.
-
#expire_time ⇒ String
Output only.
-
#google_analytics_link ⇒ Google::Apis::MerchantapiConversionsV1beta::GoogleAnalyticsLink
"Google Analytics Link" sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account.
-
#merchant_center_destination ⇒ Google::Apis::MerchantapiConversionsV1beta::MerchantCenterDestination
"Merchant Center Destination" sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConversionSource
constructor
A new instance of ConversionSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConversionSource
Returns a new instance of ConversionSource.
106 107 108 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 106 def initialize(**args) update!(**args) end |
Instance Attribute Details
#controller ⇒ String
Output only. Controller of the conversion source.
Corresponds to the JSON property controller
68 69 70 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 68 def controller @controller end |
#expire_time ⇒ String
Output only. The time when an archived conversion source becomes permanently
deleted and is no longer available to undelete.
Corresponds to the JSON property expireTime
74 75 76 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 74 def expire_time @expire_time end |
#google_analytics_link ⇒ Google::Apis::MerchantapiConversionsV1beta::GoogleAnalyticsLink
"Google Analytics Link" sources can be used to get conversion data from an
existing Google Analytics property into the linked Merchant Center account.
Corresponds to the JSON property googleAnalyticsLink
80 81 82 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 80 def google_analytics_link @google_analytics_link end |
#merchant_center_destination ⇒ Google::Apis::MerchantapiConversionsV1beta::MerchantCenterDestination
"Merchant Center Destination" sources can be used to send conversion events
from an online store using a Google tag directly to a Merchant Center account
where the source is created.
Corresponds to the JSON property merchantCenterDestination
87 88 89 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 87 def merchant_center_destination @merchant_center_destination end |
#name ⇒ String
Output only. Identifier. Generated by the Content API upon creation of a new
ConversionSource
. Format: [a-z]4
:.+ The four characters before the colon
represent the type of conversio source. Content after the colon represents the
ID of the conversion source within that type. The ID of two different
conversion sources might be the same across different types. The following
type prefixes are supported: - galk: For GoogleAnalyticsLink sources. - mcdn:
For MerchantCenterDestination sources.
Corresponds to the JSON property name
98 99 100 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 98 def name @name end |
#state ⇒ String
Output only. Current state of this conversion source. Can't be edited through
the API.
Corresponds to the JSON property state
104 105 106 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 104 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
111 112 113 114 115 116 117 118 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 111 def update!(**args) @controller = args[:controller] if args.key?(:controller) @expire_time = args[:expire_time] if args.key?(:expire_time) @google_analytics_link = args[:google_analytics_link] if args.key?(:google_analytics_link) @merchant_center_destination = args[:merchant_center_destination] if args.key?(:merchant_center_destination) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) end |