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.



9805
9806
9807
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9805

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)


9798
9799
9800
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9798

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)


9803
9804
9805
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9803

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9810
9811
9812
9813
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9810

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