Class: Google::Apis::ContentV2_1::MerchantCenterDestination
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::MerchantCenterDestination
- 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
"Merchant Center Destination" sources can be used to send conversion events from a website using a Google tag directly to a Merchant Center account where the source is created.
Instance Attribute Summary collapse
-
#attribution_settings ⇒ Google::Apis::ContentV2_1::AttributionSettings
Represents attribution settings for conversion sources receiving pre- attribution data.
-
#currency_code ⇒ String
Required.
-
#destination_id ⇒ String
Output only.
-
#display_name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MerchantCenterDestination
constructor
A new instance of MerchantCenterDestination.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MerchantCenterDestination
Returns a new instance of MerchantCenterDestination.
6818 6819 6820 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6818 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribution_settings ⇒ Google::Apis::ContentV2_1::AttributionSettings
Represents attribution settings for conversion sources receiving pre-
attribution data.
Corresponds to the JSON property attributionSettings
6797 6798 6799 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6797 def attribution_settings @attribution_settings end |
#currency_code ⇒ String
Required. Three-letter currency code (ISO 4217). The currency code defines in
which currency the conversions sent to this destination will be reported in
Merchant Center.
Corresponds to the JSON property currencyCode
6804 6805 6806 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6804 def currency_code @currency_code end |
#destination_id ⇒ String
Output only. Merchant Center Destination ID.
Corresponds to the JSON property destinationId
6809 6810 6811 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6809 def destination_id @destination_id end |
#display_name ⇒ String
Required. Merchant-specified display name for the destination. This is the
name that identifies the conversion source within the Merchant Center UI.
Limited to 64 characters.
Corresponds to the JSON property displayName
6816 6817 6818 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6816 def display_name @display_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6823 6824 6825 6826 6827 6828 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6823 def update!(**args) @attribution_settings = args[:attribution_settings] if args.key?(:attribution_settings) @currency_code = args[:currency_code] if args.key?(:currency_code) @destination_id = args[:destination_id] if args.key?(:destination_id) @display_name = args[:display_name] if args.key?(:display_name) end |