Class: Google::Apis::ContentV2_1::MerchantCenterDestination

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

"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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MerchantCenterDestination

Returns a new instance of MerchantCenterDestination.



6809
6810
6811
# File 'lib/google/apis/content_v2_1/classes.rb', line 6809

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



6788
6789
6790
# File 'lib/google/apis/content_v2_1/classes.rb', line 6788

def attribution_settings
  @attribution_settings
end

#currency_codeString

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

Returns:

  • (String)


6795
6796
6797
# File 'lib/google/apis/content_v2_1/classes.rb', line 6795

def currency_code
  @currency_code
end

#destination_idString

Output only. Merchant Center Destination ID. Corresponds to the JSON property destinationId

Returns:

  • (String)


6800
6801
6802
# File 'lib/google/apis/content_v2_1/classes.rb', line 6800

def destination_id
  @destination_id
end

#display_nameString

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

Returns:

  • (String)


6807
6808
6809
# File 'lib/google/apis/content_v2_1/classes.rb', line 6807

def display_name
  @display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6814
6815
6816
6817
6818
6819
# File 'lib/google/apis/content_v2_1/classes.rb', line 6814

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