Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonPriceAsset

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

An asset representing a list of price offers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonPriceAsset

Returns a new instance of GoogleAdsSearchads360V23CommonPriceAsset.



9284
9285
9286
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9284

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

Instance Attribute Details

#language_codeString

Required. The language of the price asset. Represented as BCP 47 language tag. Corresponds to the JSON property languageCode

Returns:

  • (String)


9266
9267
9268
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9266

def language_code
  @language_code
end

#price_offeringsArray<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonPriceOffering>

The price offerings of the price asset. The size of this collection should be between 3 and 8, inclusive. Corresponds to the JSON property priceOfferings



9272
9273
9274
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9272

def price_offerings
  @price_offerings
end

#price_qualifierString

The price qualifier of the price asset. Corresponds to the JSON property priceQualifier

Returns:

  • (String)


9277
9278
9279
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9277

def price_qualifier
  @price_qualifier
end

#typeString

Required. The type of the price asset. Corresponds to the JSON property type

Returns:

  • (String)


9282
9283
9284
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9282

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9289
9290
9291
9292
9293
9294
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9289

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