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.
6866 6867 6868 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6866 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
6845 6846 6847 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6845 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
6852 6853 6854 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6852 def currency_code @currency_code end |
#destination_id ⇒ String
Output only. Merchant Center Destination ID.
Corresponds to the JSON property destinationId
6857 6858 6859 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6857 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
6864 6865 6866 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6864 def display_name @display_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6871 6872 6873 6874 6875 6876 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6871 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 |