Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonProductCategoryInfo

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

Category of a product offer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonProductCategoryInfo

Returns a new instance of GoogleAdsSearchads360V23CommonProductCategoryInfo.



9391
9392
9393
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9391

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

Instance Attribute Details

#category_idFixnum

ID of the product category. This ID is equivalent to the google_product_category ID as described in this article: https://support. google.com/merchants/answer/6324436 Corresponds to the JSON property categoryId

Returns:

  • (Fixnum)


9384
9385
9386
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9384

def category_id
  @category_id
end

#levelString

Level of the product category. Corresponds to the JSON property level

Returns:

  • (String)


9389
9390
9391
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9389

def level
  @level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9396
9397
9398
9399
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9396

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