Class: Google::Apis::MerchantapiConversionsV1beta::MerchantCenterDestination

Inherits:
Object
  • Object
show all
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

"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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MerchantCenterDestination

Returns a new instance of MerchantCenterDestination.



254
255
256
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 254

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attribution_settingsGoogle::Apis::MerchantapiConversionsV1beta::AttributionSettings

Represents attribution settings for conversion sources receiving pre- attribution data. Corresponds to the JSON property attributionSettings



233
234
235
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 233

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)


240
241
242
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 240

def currency_code
  @currency_code
end

#destinationString

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

Returns:

  • (String)


245
246
247
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 245

def destination
  @destination
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)


252
253
254
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 252

def display_name
  @display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



259
260
261
262
263
264
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 259

def update!(**args)
  @attribution_settings = args[:attribution_settings] if args.key?(:attribution_settings)
  @currency_code = args[:currency_code] if args.key?(:currency_code)
  @destination = args[:destination] if args.key?(:destination)
  @display_name = args[:display_name] if args.key?(:display_name)
end