Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonPromotionBarcodeInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb

Overview

Barcode info to generate promotion barcode.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonPromotionBarcodeInfo

Returns a new instance of GoogleAdsSearchads360V23CommonPromotionBarcodeInfo.



9737
9738
9739
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9737

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

Instance Attribute Details

#barcode_contentString

Promotion message to be encoded in the barcode. Corresponds to the JSON property barcodeContent

Returns:

  • (String)


9730
9731
9732
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9730

def barcode_content
  @barcode_content
end

#typeString

Barcode type used to generate barcode with the correct format. Corresponds to the JSON property type

Returns:

  • (String)


9735
9736
9737
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9735

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9742
9743
9744
9745
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9742

def update!(**args)
  @barcode_content = args[:barcode_content] if args.key?(:barcode_content)
  @type = args[:type] if args.key?(:type)
end